Server domain client dhcp server

1 post / 0 new
#1 Thu, 05/05/2011 - 10:04
surfings

Server domain client dhcp server

Hi,

I have the following senary:

proxy server Centos 5.6

eth0 - dhcp DSL eth1 - 172.16.0.1/24

Firewall - iptables

where my firewall

-I PREROUTING 1-i eth1-p tcp - dport 80-j REDIRECT - to-port 3128 -A POSTROUTING-o eth0-j MASQUERADE # Forward HTTP connections to Squid proxy

Dhcp3 server

ddns-update-style interim; default-lease-time 6000; # Define the maximum time that an IP max-lease-time 72000; # locked into one equipment authoritative; # Define this serdar DHCP is the main network log-facility local7; # Define which category of the log will use DHCP option domain-name-servers 172.16.0.1;

subnet 172.16.0.0 netmask 255.255.255.0 { allow client-updates; range 172.16.0.100 172.16.0.254; option routers 172.16.0.1; option subnet-mask 255.255.255.0; option broadcast-address 172.16.0.255; option domain-name "proxyserver"; one-lease-per-client on; option netbios-name-servers 172.16.0.1; } SERVERS

group { deny client-updates; deny unknown-clients; dataserver.com

{host dataserver.com deny client-updates; deny unknown-clients; hardware ethernet xx:xx:xx:xx:xx; fixed-address 172.16.0.10; } devserver.com

{host devserver.com ddns-updates on; deny client-updates; deny unknown-clients; hardware ethernet yy:yy:yy:yy:yy; fixed-address 172.16.0.11; } }

dev server Centos 5.6 eth0 - 172.16.0.11

virtualmin here that will create internal domains

all my clients 172.16.0/24 ​​subnet can access the domains created on this server

example:www.site1.com,site2,com ... any

tks