Click to See Complete Forum and Search --> : Masq


Odins_Son
11-20-2002, 10:41 PM
I am having a problem with my home network. I have an old p166 running the mini linux distro coyote. I want to enable masquarating so my internal computers can access the internet. Ever node can ping one another and my internal network can also ping my eth that is attached to my dsl. But I cant seem to ping anything on the internet. This is my masq file.

/sbin/ipchains -A forward -s 192.168.0.2/255.255.255.0 -d 0.0.0.0/0 -j MASQ

/sbin/ipchains -A forward -s 192.168.0.3/255.255.255.0 -d 0.0.0.0/0 -j MASQ

/sbin/ipchains -P forward DENY



Why won't it work? And what exactly does the P do? Any suggestions?

maine
11-21-2002, 04:02 PM
Try using /sbin/ipchains -A forward -j MASQ -s 192.168.1.0/24 -d ! 192.168.1.168/24 and make sure the coyote box is setup as a default gateway on all lan machines 'route add default gw ethx' also check the resolv.conf file and make sure your name servers are there.