DHCP server com compartilhamento de internet

1. DHCP server com compartilhamento de internet

Wilson Gomes da Silva
wgomes

(usa Debian)

Enviado em 28/12/2016 - 14:45h

Ola! Tenho um debain 8 configurado com duas placas de rede com dhcp instalado e configurado para compartilhar internet, estava funcionando de boa e quando instalei o iRedMail e reiniciei parou de compartilhar a internet do nada.
Já tentei de tudo, inclusive dúvidas semelhantes aqui e nada.
Configurações:
############################

# nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

#Rede ETH1
#allow-hotplug eth1
auto eth1
iface eth1 inet static
address 192.168.10.100
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255


####################################
# nano /etc/dhcp/dhcpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;

option domain-name "gomes.br";
option domain-name-servers 8.8.8.8, 8.8.4.4;
option subnet-mask 255.255.255.0;
option broadcast-address 255.255.255.255;
option routers 192.168.10.100;

subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.110 192.168.10.254;

}
####################################
# nano /etc/rc.local

iptables -F
iptables -t nat -F

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE




  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts