Iptables command replacement

Hi.  EE, I was trying to follow some instructions from one of your answers on the site on how to configure my fedora box to allow internet access for windows machines on the lan.  The fedora box is connected to a router, on eth0 with ip. 10.0.0.2
the lan is on 192.168.0.0 range.  my problem is what command works in fedora core2 for the following command
/sbin/iptables -A forward 192.168.0.0/255.255.255.0 -j masq
LVL 2
aduhwaleAsked:
Who is Participating?
 
leochan72Connect With a Mentor Commented:
Sorry, and your command should not put in the "Foward" table. It should be in NAT table.

/sbin/iptables -t nat -A POSTROUTING -o etho -j MASQUERADE

Leo
0
 
leochan72Commented:
You should run the following command too:

echo "1" > /proc/sys/net/ipv4/ip_forward

If you don't let the forwarding, it doesn't work.

Leo
0
 
aduhwaleAuthor Commented:
Cool! Thanks leo.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.