Iptables command replacement

Posted on 2005-05-10
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.
the lan is on range.  my problem is what command works in fedora core2 for the following command
/sbin/iptables -A forward -j masq
Question by:aduhwale
    LVL 1

    Expert Comment

    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.

    LVL 1

    Accepted Solution

    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

    LVL 2

    Author Comment

    Cool! Thanks leo.


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now