LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-04-2006, 08:30 AM   #1
gvsrinivasan
LQ Newbie
 
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9

Rep: Reputation: 0
Thumbs down internet connection sharing help needed


if this question seems to newbie forgive me ,i am new to networking world and i think my problem can be solved at LQ

i have two machines at my home .

the first system is an amd semperon ,it has windows xp installed in it.

it has an adsl broadband connection in it .

i have second system which is an Intel celeron machine which has kubuntu dapper drake in it .

i have used samba to connect through the two pc's for file and device sharing with windows xp which is working successfully .

now i want to share the internet connection in my windows xp machine with the kubuntu dapper drake system ,

no extra hardware cannot be purchased by me due to high costs prevailing in my country .



thanks in advance
 
Old 12-04-2006, 08:35 AM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Use a simple proxy for HTTP like tinyproxy.

http://tinyproxy.sourceforge.net/

You can also use a more feature rich proxy server like squid.
http://www.squid-cache.org/

Connect the internet to your Linux machine and use tinyproxy to serve over the network for Internet access in Windows. That way at least your Linux machine can act as a firewall and your Windows machine will be more secure than it is if connected directly to the net.

Last edited by vharishankar; 12-04-2006 at 08:38 AM.
 
Old 12-04-2006, 08:39 AM   #3
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
This will NOT be easy without adding hardware. The easiest way is to add a NAT box with a built-in switch (informally often referred to as a "router" although this is technically incorrect). I'm not sure how much they cost in India, but they can be had for ~15-50 USD online.

The next best option is to use Windows Internet connection sharing and add a second NIC to the Windows Box. The NIC would likely cost almost as much as a cheap NAT box/switch.

Barring that, I suppose there is a method to do it using serial,usb,LPT, or firewire, but then you are still having to buy a cable.

viel gluck,

J

-----EDIT:
OOPS! You already seem to have a switch. Windows ICS should do it all for you. There are a zillion howtos on the web for this, including some very comprehensive instructions buried on the MS website somewhere. Basically Windows ICS will turn the XP box into a NAT box/DHCP server.

Last edited by litlmary; 12-04-2006 at 08:42 AM.
 
Old 12-04-2006, 08:46 AM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I think he already has a working network connection between Windows and Linux... in that case he needn't buy additional hardware (assuming there are 2 nics on the machine connected to the net -- no big deal with modern motherboards which already come with 1 or 2 ethernet ports onboard).

The other thing is that I recommend connecting the internet to Linux and using a proxy server to access the net from Windows.

Last edited by vharishankar; 12-04-2006 at 08:48 AM.
 
Old 12-04-2006, 09:13 AM   #5
gvsrinivasan
LQ Newbie
 
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9

Original Poster
Rep: Reputation: 0
yes harishankar is correct i am having two nics in my amd semperon and so u say it will be safe to do the thing vice-versa that is make my windows xp machine share internet connection through my kubuntu linux box .
but there will be no compromise on speed and performance on doing this thing .
finally i want to know all the possible ways for doing internet sharing from windows xp to kubuntu linux box . i have enabled windows xp to share a lan card for ics through windows xp to kubuntu

yes there are lots of howto for linux-to-windows xp and cannot find a great tutorial for windowsxp-to linux ics






men thanks a lot for the info u provided to me ,it was very useful to me
 
Old 12-06-2006, 07:54 AM   #6
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
Try these:

http://www.annoyances.org/exec/show/ics_xp
http://www.annoyances.org/exec/show/ics_other

viel gluck,

J
 
Old 12-06-2006, 09:59 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
If you have configured ICS and your firewall in windows then you should be set to go. By default windows will automatically assign its LAN adapter to 192.168.0.1 (The IP address can not be channged) and start a DHCP server. Configure your kubuntu box for DHCP.
 
Old 12-06-2006, 06:59 PM   #8
gvsrinivasan
LQ Newbie
 
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9

Original Poster
Rep: Reputation: 0
Post the annoyances link does not work

i have to enable dhcp in my kubuntu box for my Ethernet card and then what should i do

do i have to change settings in konqueror web browser also

the annoyances.org link does not seem to be working

where should i put the lan address u specified in my kubuntu box

can u explain the above things in detail manner

if i enable dhcp then i will able to access my samba shares from my Linux box
(i have given a static ip address in my both pc's)

without any problem or any other editing files required for it

i am a newbie and getting some positive replies for this thread , thanks
 
Old 12-06-2006, 07:53 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
You do not have to use DHCP in your linux PC but you might have to change it settings.
Assign your kubuntu PC any address in the 192.168.0.x range where x is not 1, 0, or 255 and netmask 255.255.255.0. 192.168.0.1 will be the IP address of the XP PC and it can not be changed. The gateway IP address will also be 192.168.0.1. If not already accomplished add the DNS information to your /etc/resolv file as assigned to your XP box. The information can be recovered from XP using the
ipconfig /all command in a windows cmd box. You do not need to change any browser settings.

To configure Kubuntru go to "Control Center" and added IP, gateway and dns in "Network Settings" in Administrator mode

http://support.microsoft.com/kb/306126
 
Old 12-06-2006, 08:20 PM   #10
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Rep: Reputation: 30
Thumbs up

I had the same problem . And tried for months !! to get it going without success . I came to Linux Questions to post my solution and this thread was the first thing I saw .
I have 3 computers using Internet Connection Sharing . 1 with XP and others Win98 . Xp does not appear to give many details . Is DHCP being used - there is no indication . It maybe Peer to peer sharing. It would require a lot of investigation to try to duplicate what XP ICS was doing .
Here are my Linux settings - Eth0 connected to DSL modem - 192.168.1.1
Eth1 connected to Lan 192.168.0.1.
DSL modem gets IP from ISP .
I JUST DOWNLOADED
FIRESTARTER
AND CLICKED ON INTERNET CONNECTION SHARING .
My internet connection is through a DSL modem which is shown as ppp0 . I selected that too.

It also has an option to start DHCP . And a very very neat and understandable equivalent of IPTABLES.
Just try it it takes much less time .
Yes and do read the PDF Manual .

Regards ,
Anil
 
Old 12-07-2006, 12:55 AM   #11
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
anilbh,
Your situation is pretty different than gvsrinivasan's. It sounds like you are overdoing it. If the NIC that is connected to the DSL modem is using address 192.168.1.1, then the DSL modem probably has a NAT box in it already. What you are doing is using 2 NAT boxes; the one in your DSL modem and the PC you are using ICS on. If the DSL modem only has one LAN port, you can just uplink that port to a switch and connect your other PC's to the same switch (most NAT boxes also have switches these days, tho). The DSL modem's NAT probably also has a DHCP server built in (most do), so you can set all of the PC's to use DHCP for their addressing. Of course, you can usually disable the NAT box's DHCP server and make any other PC the DHCP server, but that only makes sense in a rare few situations.

viel gluck,

J
 
Old 12-07-2006, 02:31 AM   #12
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Rep: Reputation: 30
Arrow

If any of this holds for my DSL modem I will be very surprised .
Some instructions did say that I can access the modem . Through the Browser , but I was not able to do it.
I am serious, I did try to get this going for months . And Firestarter did it with one click ...
I think the computer connected to the Internet is configured as a router - does NAT just mean that ?
Anil
 
Old 12-07-2006, 02:47 AM   #13
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
NAT = Network Address Translation

Basically connects two networks together and allows you to explicitly control the traffic between them. In most cases this means connecting your local network to the internet. Most people (including the marketing flunkies at the companies who make them) mistakenly call NAT boxes "routers". This is technically incorrect, although they do a similar job. If you are supposed to be able to access the DSL modem via a web browser, you most certainly (well, probably) have a NAT box built into it. If you were unsuccessful in doing that, you don't know the correct gateway address to access it.

Firestarter apparently automated the process by detecting the gateway address, assuming this was a WAN (internet) gateway, and used that for the ICS.

J
 
  


Reply

Tags
connection, dhcp, firestarter, internet, sharing



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
Internet connection sharing fdawy Linux - Networking 22 10-06-2005 09:23 AM
Internet Connection Sharing yoav_by Linux - Networking 2 03-20-2005 03:22 PM
internet sharing help needed zhangxd6 Linux - Networking 2 09-01-2003 10:18 AM
internet connection sharing Sathe Linux - Newbie 4 12-05-2001 08:59 PM
Internet Connection Sharing qsilver Linux - Networking 1 07-19-2001 01:31 AM

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

All times are GMT -5. The time now is 07:04 AM.

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