LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2005, 08:15 PM   #1
browdan
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Using a Linux PC to Share an Internet Connection With Windows XP


Hi I am fairly new to linux and am trying to set up a linux pc as a firewall box for a Windows XP PC. I have a Linux PC with Fedora Core 3 installed and two eithernet cards installed in it. Going in to one card is my internet connection from my router. My other card is connected to a hub which then connects to my Windows XP computer I am trying to set up the firewall for. My fedora box can get on the internet just fine as can my windows xp machine when its connected directly to the internet. However when I try to connect my XP PC to my Fedora PC it cannot connect saying "You Might not be able to access the internet or some network resources. This problem occured because the network did not assign a network address to the computer". I tested my connections by first installing Windows XP on the PC fedora now exists and it set itself up as my internet gateway almost flawlessly. Fedora is being a little more stubborn. I have gone to my firewall settings in fedora and set both my etho0 and etho1 as trusted devices. When I try to enable the cards in my network settings, my card which my internet is coming in can be activated just fine. However the one that I'm trying to use to share the internet connection with my windows xp pc cannot be activated. Should I use the setting "Automatically obtain IP Address Settings" or "statically set IP Addresses" since this card is not really used to connect to the internet? If statically, what do I put as the Address, Subnet mask, and Default Gateway Address? Any ideas that might help me with this problem would be greatly appreciated.

Thanks
 
Old 12-12-2005, 02:20 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Unless you have a dhcp server, you'll have to manually set the IP/sub_mask of the WinXP box.

The IP/subnet mask need to be on the same subnet as the Linux ETH1 card assuming ETH0 was connected to the internet. The Default gateway of the WinXP box should be ETH1's IP address.

You'll need to enable packet forwarding for the linux box. I'm not sure how fedora handles this, but http://www.e-infomax.com/ipmasq/howt...-examples.html link has a pre-designed firewall that should get you up and running.
 
Old 12-12-2005, 09:07 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by browdan
Hi I am fairly new to linux and am trying to set up a linux pc as a firewall box for a Windows XP PC.
Thanks
Squid could be used as one of the solution for your scenario.

However i've already created & posted a squid.conf on LQ.

Go through this thread..
http://www.linuxquestions.org/questi...d.php?t=388261

& second last post is the one in which i have posted a complete squid.conf.

Go thru it & you need to modify the ip series mentioned in red with your local lan series.
acl mylan src 192.168.10.0/255.255.255.0

Thats it. You are done.

Copy & paste all this conf over to new file, name it as squid.conf & replace it with existing /etc/squid.conf. Go to your XP box, set your local lan eth ip as proxy server ip & port as 8080.

Surf the net.

In case you still need some help, come back to LQ n reply to this thread with your queries. Someone sure gonna help you.

..amit..
 
  


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 to share a internet connection with fedora core and windows 2000 jxzk007 Linux - Networking 1 11-29-2004 08:04 PM
share internet connection windows fedora woodshop Linux - Networking 1 07-27-2004 03:27 PM
How can I share my Internet connection with other LAN ms windows users emiliofil Linux - Networking 1 02-21-2004 10:01 AM
Share an internet connection betwen a linux server and a windows client GiGA Linux - Software 4 08-21-2002 09:22 AM
Trying to set up Linux to share Internet Connection gideons Linux - Newbie 2 02-05-2002 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:46 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
Open Source Consulting | Domain Registration