Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 11-22-2003, 11:17 PM   #1
Registered: Jun 2003
Posts: 144

Rep: Reputation: 15
Networking with 2 Nic Cards

Neighbors decided they wanted to try Linux on one of thier pcs. I loaded Linux on one of them the other is running xp. They had a home network that consisted of 2 network cards, not using a router. They have cable internet. I can get one online at a time, never two. They don't have a static ip. I would like the Linux box running Fedora to "host" the internet for the two pcs. Cable modem into the linux box on one nic, going out of the linux box to the xp machine on the other nic. How can I get this to work.

Thanks ahead of time.

Old 11-22-2003, 11:51 PM   #2
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
That can be done quite easily using iptables. Read the IP Masquerading HOWTO at The HOWTO has a simple script to test out everything. Then there is a stronger script once everything is working.
Old 12-06-2003, 07:35 AM   #3
Registered: Apr 2003
Location: Madrid
Distribution: RHAS, Kubuntu, Solaris, TRU64
Posts: 381

Rep: Reputation: 31
Well, first, you need a "twisted pair" ethernet cable for connecting both computers.
Then, you can try to set squid as http proxy on the linux machine and configure XP browser for using the linux IP address as proxy server.
This is for a beginning. This way you get http, https and ftp working for XP machine. Then if you want advanced network features on the XP ( I guess not), you use iptables & NAT.

I have it working like this but on the other way:

Internet <-------->W2K_PC_with_dialup_and_Squid_for_NT_running <--------> linux_laptop_with_W2K_IP_set_as_proxy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How many different modules are there for nic cards? abefroman Linux - Hardware 1 11-23-2005 04:37 PM
Add more NIC cards nkutty Linux - Networking 1 08-05-2005 11:02 PM
Combining 'NIC Cards astroboiii Linux - Networking 4 01-06-2005 12:57 AM
two networking cards.. again :) rohan208 Linux - Networking 9 07-23-2004 11:12 AM
No Networking on Redhat 9.0!!! ; unable to initialize NIC cards smadny Linux - Hardware 3 01-19-2004 05:15 AM

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration