#!/bin/sh ifconfig eth0 down ifconfig eth0 192.168.254.132 netmask 255.255.255.0 up route add default 192.168.254.254 ifconfig eth1 down ifconfig eth1 10.1.1.1 netmask 255.0.0.0 up modprobe iptable_nat echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables #algumas regras iptables daqui pra baixo