surfings
(usa CentOS)
Enviado em 05/05/2011 - 17:54h
Caros Colegas,
Tenho o seguinte senário:
servidor proxy Centos 5,6
ADSL eth0 - dhcp eth1 - 172.16.0.1/24
Firewall - iptables
onde o meu firewall
-I PREROUTING 1-i eth1-p tcp - dport 80-j REDIRECT - to-port 3128
-A POSTROUTING-o eth0-j MASQUERADE
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;
}
#SERVIDORES
group {
{host dataserver.local
deny client-updates;
deny unknown-clients;
hardware ethernet xx:xx:xx:xx:xx;
fixed-address 172.16.0.10;
}
{host devserver.local
ddns-updates on;
deny client-updates;
deny unknown-clients;
hardware ethernet yy:yy:yy:yy:yy;
fixed-address 172.16.0.11;
}
}
servidor dev Centos 5,6 eth0 - 172.16.0.11
Aqui que vai criar domínios internos
todos os meus clientes 172.16.0/24 sub-rede pode acessar os domínios criados no servidor dev
ex: programador1.local, programador2.local, projeto1.local, projeto2.local ...
Quem puder ajudar ficarei grato.