Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-28-2006, 06:12 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Internet connection Sharing between linux and WinXP

how? i want my linux to be the server, rather than using WinXP's ICS.
any help? thanks guys
Old 01-28-2006, 06:27 AM   #2
Registered: Jan 2005
Location: QLD Australia
Distribution: Ubuntu LTS 14.04
Posts: 69

Rep: Reputation: 16
I used smoothwall express on a small machine as a 'folder.'
The main idea is to setup a http proxy server on the linux machine.
I can't remember which ones worked well/easy, but that's part of the fun, right?

I am assuming your internet connection is not off ethernet (IE you don't have an ethernet connected ADSL router or cable modem) and the linux machine is the only local hardware talking to the modem/router and you only have one NIC on eth0.

First optain and setup a proxy server on your linux box (Squid is supposed to be good, I never got around to trying it out though.)
The proxy will (most likely) need to know where the internet connection is and where eth0 is.
Some proxy's don't seem to need this AFAIK.

Whith the proxy running, get into the XP box and configure it's network setting to view the linux box as the default gateway. You'll pretty much just enter the IP from eth0.
You can also configure the XP box's proxy settings (wherever they are, be it network settings or individual applications) to the same IP (again from eth0).

To be honest, the most trouble you'll have will be with the proxy. With so much to choose from and so many configuration options, it can be daunting at times. I would take it slow and make sure you do that little bit of research needed for a trouble free operation.

Hope that helps.
Old 01-28-2006, 06:56 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
First of all, thanks.

ok, i'll give abit more info on my network:

WinXPbox---eth1--Linuxbox--eth0--adsl modem

i got two NICs.
the Linux box is dual booting with another WinXP.
i should say that although i am not that new to linux, i have never done any "complicated" networking setups.

Has any of this info changed the thing i must do to set up the sharing?
Old 01-28-2006, 07:21 AM   #4
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
This should be fairly simple to set up, depending on your Linux distro... Mandriva has an option in a config file that you need to modify in order to activate ip forwarding (just add FORWARD_IPV4=yes in /etc/sysconfig/network)

However, this would mean no firewall, no protection, no advanced thingies. I've been using shorewall as a firewall for a few years now and it is pretty simple to configure, there is extensive documentation on their site (, and works with every distro, provided the requirements are met. Configuring ip forwarding is just a matter of setting IP_FORWARDING to On in /etc/shorewall/shorewall.conf.

Read here for some more info about setting up networking:
Old 01-28-2006, 07:35 AM   #5
Registered: Dec 2004
Distribution: OpenSuSE 10.0
Posts: 140

Rep: Reputation: 15
Install firestarter, the configuration wizard that comes up on first use will guide you through internet connection sharing, thats the easiest way i found to get it wroking


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
Sharing an WinXP internet connection with linux adamsimpkin384 Linux - Newbie 2 01-08-2006 03:55 PM
need help on FC3 WinXP file sharing. Internet connection OK bestbidder1 Linux - Networking 1 01-15-2005 03:51 AM
Internet connection sharing - WinXP + Knoppix + Gentoo Mireno Linux - Networking 1 12-17-2004 02:56 PM
Internet Connection Sharing through Linux 9 unmesh vaidya Linux - Newbie 1 11-25-2003 07:32 AM
Internet connection sharing between XP and linux kidicarus Linux - Networking 16 09-16-2003 07:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:03 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