Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Internet Connection Sharing

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 possible...to 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.
  • 2
  • 2
1 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

jaxrpcAuthor Commented:
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.
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.

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now