Internet Connection Sharing

Posted on 2006-04-16
Last Modified: 2010-03-18
Hi, i have just installed red hat fedora 5 recently side by side with windows Xp. In xp, i could do ICS with another win xp computer connecting with a cross cable. I would like to find out is it do ICS on fedora to another winxp computer? Like cable Modem connected to linux machine and linux machine shares Internet connection with another win xp machine connected to it using a cross cable.
Question by:jaxrpc
    LVL 1

    Accepted Solution

    I'm assume you have the modem connected to the FC5 box and

    External PPP interface = eth0
    Internal interface = eth1

    You then need to enable "IP Forwarding" after logging in as root user

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

    If you have dynamic IP do this as well

    # echo "1" > /proc/sys/net/ipv4/ip_dynaddr

    Then you need to modify your IPTABLE rules as below

    # iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
    # iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
    # iptables -A FORWARD -j LOG

    # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    Hope this helps


    Author Comment

    wow... i will try it when i get home. by the way...where do u learn all these commands and stuff? i am very new to linux...just installed it yesterday.
    LVL 1

    Expert Comment

    Been using Linux for years, you just pick it up as you go along.  Try out my suggestion above and let me know how you get on.


    Author Comment

    hi, ok i will try it later when i get home. thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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.

    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…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    761 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

    12 Experts available now in Live!

    Get 1:1 Help Now