?
Solved

Iptables command replacement

Posted on 2005-05-10
3
Medium Priority
?
454 Views
Last Modified: 2010-03-17
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
0
Comment
Question by:aduhwale
  • 2
3 Comments
 
LVL 1

Expert Comment

by:leochan72
ID: 13971251
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
 
LVL 1

Accepted Solution

by:
leochan72 earned 375 total points
ID: 13971280
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
 
LVL 2

Author Comment

by:aduhwale
ID: 13976044
Cool! Thanks leo.

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Integration Management Part 2
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question