LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 11-23-2003, 12:17 AM   #1
FXRS
Member
 
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.

FX
 
Old 11-23-2003, 12:51 AM   #2
/bin/bash
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 www.tldp.org. The HOWTO has a simple script to test out everything. Then there is a stronger script once everything is working.
 
Old 12-06-2003, 08:35 AM   #3
pablob
Member
 
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
 
  


Reply


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 05:37 PM
Add more NIC cards nkutty Linux - Networking 1 08-06-2005 12:02 AM
Combining 'NIC Cards astroboiii Linux - Networking 4 01-06-2005 01:57 AM
two networking cards.. again :) rohan208 Linux - Networking 9 07-23-2004 12:12 PM
No Networking on Redhat 9.0!!! ; unable to initialize NIC cards smadny Linux - Hardware 3 01-19-2004 06:15 AM


All times are GMT -5. The time now is 03:18 PM.

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