Problem with sharing internet

Swapnil Jain swapnil at
Sun Jan 3 16:10:00 UTC 2010

you are not masquerading, use something like this, it will work

iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE

where eth0 is external interface


Swapnil Jain
Indore, India
E-mail: swapnil at
GTalk : swapnil at
MSN: jswapnil at
Skype : sj1410
YIM   : sj1410

On 03-Jan-2010, at 12:40 AM, dehqan65 wrote:

> In The Name Of God The compassionate merciful
> hello;
>                 iptables -t nat -A POSTROUTING -d \! -j SNAT --to-source  
>  Above command has been used to share ppp0 internet from to but while pinging an address ( on it gives errors like:
> From icmp_seq=59 Destination Host Unreachable
> and ping each other .
> also echo 1 > /proc/sys/net/ipv4/ip_forward is done , and getway for is
>  (of course is FR)
> Regards dehqan
> -- 
> ubuntu-users mailing list
> ubuntu-users at
> Modify settings or unsubscribe at:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list