Page 1 of 1

net.ipv4.ip_forward = 1

PostPosted: Tue Feb 02, 2010 2:54 pm
by gmcust3
# Controls IP packet forwarding
net.ipv4.ip_forward = 1


My internet on Local lan still doesn't work.

What could eb the reason ?

Any other change in settins reqd ??

PostPosted: Tue Feb 02, 2010 3:05 pm
by gmcust3
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Adding above line in rc.local will help ??

PostPosted: Tue Feb 02, 2010 4:00 pm
by gardo
Try this:

iptables -t nat -A POSTROUTING -s 192.168.15.0/24 -o ppp0 -j MASQUERADE

Just adapt it to your settings. Let us know how it goes.

PostPosted: Tue Feb 02, 2010 4:05 pm
by gmcust3
If my agent PC IPs are

192.168.0.1.. 192.168.0.15...

would it be :

iptables -t nat -A POSTROUTING -s 192.168.0.1/15 -o ppp0 -j MASQUERADE

??

PostPosted: Tue Feb 02, 2010 4:13 pm
by gardo
192.168.0.0/16

PostPosted: Tue Feb 02, 2010 4:24 pm
by gmcust3
I am sitting remotely.

Spoke and says no net still on agent pc..

IP is :: 192.168.0.1
Subnet : 255/255/255/0
Gateway : server IP

DNS1: Service Provider DNS1
DNS2: Service Provider DNS2

PostPosted: Wed Feb 03, 2010 2:11 am
by gardo
Google is your friend. :)