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.
jaxrpcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

y2k_rinserCommented:
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

rinser
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
0
y2k_rinserCommented:
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.

Cheers
Rinser
0
jaxrpcAuthor Commented:
hi, ok i will try it later when i get home. thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

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.