Hi,

--- raghuram <[EMAIL PROTECTED]> wrote:
> Internet sharing in just 3 lines of code. Can you
> post those 3 magic lines?

Something like this?

 iptables --flush -t nat
 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 echo "1" > /proc/sys/net/ipv4/ip_forward

eth0 is the interface connected to the Internet.

SK

--
Shakthi Kannan
http://www.shakthimaan.com


 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

Reply via email to