root@game-zone:~# cat /etc/rc.d/rc.firewall #!/bin/bash #Setando ip pra rede local ifconfig eth0 10.1.1.75 up #Liberando forward echo "1" > /proc/sys/net/ipv4/ip_forward # Limpando as tabelas iptables -F iptables -t nat -F iptables -t mangle -F # Macarando conexões da rede # se sua conexao estiver na interface ppp0 basta trocar o eth0 por ppp0 # a interface ppp0 é usada tb em dial-up, entao, neste caso, troque o eth0 # por ppp0 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE