echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/route add default gw 192.168.6.1 dev eth0
On 28 March 2014 12:50, Thuo Wilson <lixton@gmail.com> wrote:
iptables -t nat -A POSTROUTING -s 10.10.20/255.255.255.0 -o eth0 -j MASQUERADEOR the same principle here but you need to change SNAT ip everytime u change provider or WAN ipiptables -t nat -A POSTROUTING -s 10.10.20/255.255.255.0 -j SNAT --to-source 192.168.6.142Grrr ---makosa ya network addressiptables -t nat -A POSTROUTING -s 10.10.20.0/255.255.255.0 -o eth0 -j MASQUERADEOR the same principle here but you need to change SNAT ip everytime u change provider or WAN ipiptables -t nat -A POSTROUTING -s 10.10.20.0/255.255.255.0 -j SNAT --to-source 192.168.6.142This is why i love shortcuts:iptables -t nat -A POSTROUTING -s 10.10.20.0/24 -o eth0 -j MASQUERADEOR the same principle here but you need to change SNAT ip everytime u change provider or WAN ipiptables -t nat -A POSTROUTING -s 10.10.20.0/24 -j SNAT --to-source 192.168.6.142Kind Regards,Wilson./
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke