Text Size
   

Senaputra FM

Follow us on Twitter

Download Lagu

nat with iptables
ptables can use for nat or network address translation. first we must change /proc/sys/net/ipv4/ip_forward <= default value is 0 we must change with command
echo “1″ > /proc/sys/net/ipv4/ip_forward
after we change ip_forward from our linux box, we ready to seting up linux box for router.
iptables -A FORWARD -i eth0 -o eth1 -s 0.0.0.0/0 -d 192.168.169.0/28 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -s 192.168.168.0/28 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.168.0/28 -d 0.0.0.0/0 -j SNAT –to-source 123.231.245.12
for now our simple router ready for use
 

News IT

Bola

Food

Home TUTORIAL nat with iptables