Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-04-2006, 08:30 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9
Rep:
|
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
|
|
|
|
12-04-2006, 08:35 AM
|
#2
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
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.
|
|
|
|
12-04-2006, 08:39 AM
|
#3
|
|
Member
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 300
Rep:
|
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.
|
|
|
|
12-04-2006, 08:46 AM
|
#4
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
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.
|
|
|
|
12-04-2006, 09:13 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9
Original Poster
Rep:
|
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
|
|
|
|
12-06-2006, 07:54 AM
|
#6
|
|
Member
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 300
Rep:
|
|
|
|
|
12-06-2006, 09:59 AM
|
#7
|
|
Moderator
Registered: Aug 2002
Posts: 10,759
|
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.
|
|
|
|
12-06-2006, 06:59 PM
|
#8
|
|
LQ Newbie
Registered: Nov 2004
Location: india
Distribution: simply mepis
Posts: 9
Original Poster
Rep:
|
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
|
|
|
|
12-06-2006, 07:53 PM
|
#9
|
|
Moderator
Registered: Aug 2002
Posts: 10,759
|
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
|
|
|
|
12-06-2006, 08:20 PM
|
#10
|
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Rep:
|
|
|
|
|
12-07-2006, 12:55 AM
|
#11
|
|
Member
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 300
Rep:
|
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
|
|
|
|
12-07-2006, 02:31 AM
|
#12
|
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Rep:
|
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
|
|
|
|
12-07-2006, 02:47 AM
|
#13
|
|
Member
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 300
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|