View Single Post
Posts: 14 | Thanked: 2 times | Joined on Jan 2009
#15
Originally Posted by JasonWoof View Post
ajay2music,

What commands do you use to set up NAT?

I got the kernel modules installed fine. But got an error when trying to do the iptables commands I've done on ubuntu.

Thanks, - Jason
My NAT commands are:
address 192.168.2.14
netmask 255.255.255.0
up echo 1 > /proc/sys/net/ipv4/ip_forward
up iptables -P FORWARD ACCEPT
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
down echo 0 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -F POSTROUTING

hope this helps for you cos i'm unable to forward the packets even after i insmod the nat tables!!!
 

The Following User Says Thank You to ajay2music For This Useful Post: