All pastes #221953 Raw Edit

Something

public text v1 · immutable
#221953 ·published 2006-10-25 23:39 UTC
rendered paste body
#!/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