valtermenegolo
usa Debian
Post recolhido
Enviado em 19/08/2014 - 09:16h
Olá! Fiz e meu arquivo /etc/rc.local ficou assim
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
exit 0
Mas mesmo assim não resolveu, tenho que continuar dando ifup eth0 e os comandos do iptables para a conexão voltar.