LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-16-2007, 05:39 PM   #1
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Browse the Internet thru a Win2k machine from linux box


Is this Possible?

I am new to linux, and am playing with ssh.

I was wondering if it was possible to connect a linux box to the internet on a wired lan which has a single computer with internet access (provided by an adsl router) running win2k

(the win2k machine also has cygwin installed)


Any thoughts would be apppreciated
 
Old 04-16-2007, 05:43 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
It sounds like all you need to do is setup ICS on the Windows 2000 machine, which will let you share out an Internet connection to a connected computer.

Here is the setup guide from Microsoft.
 
Old 04-17-2007, 07:30 AM   #3
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi

Thanks for the response, Is it possible without using Internet connection sharing , It is not possible for me to add another network card to the win2k machine . Is it possible to access the win2k using ssh and access the internet that way?

Thanks for your time
 
Old 04-17-2007, 02:46 PM   #4
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Windows does not really support any advanced networking like that (routing with only one interface, only basic support for multiple IPs per interface, etc). No SSH support either, client or server.

The only thing I can think of off the top of my head would be to install a proxy server on the Windows 2000 machine. If both machines are on the same LAN, that should allow you to at least get a browser functioning on the Linux side.

Of course, I suppose you could even install a VNC server and actually browse on the Windows 2000 machine from the Linux client. Certainly not the most elegant solution, but it is an option.

Though I have to say, I am a bit confused by the situation as you have described it. If the Windows 2000 machine only has one Ethernet card, then what kind of network setup is this? The Windows machine can't be getting it's Internet access from the LAN, since if that was the case the Linux machine would be able to get online too. It can't be directly plugged into to a broadband Internet connection, since then it couldn't be networked with the Linux machine at the same time.

What exactly is the source of the Internet connection on the Windows 2000 machine, and how are they networked? There may be a better solution available, but without more details on how things are configured, it is difficult to give specific answers.
 
Old 04-17-2007, 06:16 PM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Basically yes it is 'ICS' or Internet connection sharing, if what you want is to browse the internet on the Linux machine, using a dialup-internet-connected-Windows-machine as the internet connection.
Just run the Home-Network Config Wizard on Windows, and set up the static IP/DNS on the Linux machine.
If this is indeed what you want, ask for more details, or explain further, because I use this setup at home and can maybe help you out.
 
Old 04-17-2007, 09:06 PM   #6
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
He has already said that he can't use ICS...
 
Old 04-17-2007, 10:20 PM   #7
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Yes, I see that, and at first read I interpreted (or misinterpreted) ADSL as not occupying the LAN port on the main machine. Now, at second read, I must refer the original poster to your (MS3FGX's) post #4--- I'm a little confused about the connections here too.
If there's a router there of >1 LAN ports, ICS isn't needed anyways for internet, but if the OP just wants to learn/experiment, it shouldn't be a big deal to communicate between two machines on the same LAN behind the same router, save for the points you (MS3FGX) made about Windows' lack of SSH & advanced networking support, etc..
 
Old 04-18-2007, 02:42 AM   #8
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi

Thanks for everyones input,the configuration is as follows:

The win2k machine (which has internet access) connect directly into the back of the router (over ethernet) and the router is connected to the rest of the network (this includes the linux machine) via a hub/switch.

I dont have access to router configuration and I cannot change the hardware in the win2k machine, and only the win2k machine has access to the internet

Is it still possible for the linux machine to connect to the internet thru the win2k machine?

Best Regards
 
Old 04-18-2007, 02:59 AM   #9
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Yes, you could use a proxy server on the Windows 2000 machine to route Internet traffic through it; but again, if the Linux machine is connected to the same router as the Windows machine, why can't the Linux machine just directly access the Internet? Is there a reason you want it to go through the Windows machine first?
 
Old 04-18-2007, 05:49 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Well, that's more a windows question...

You are probably using a computer with pppoe so only one computer can have direct broadband access.
"route print" on windows will tell you if you have pppoe or pppoa.

Technically it should be possible with standard routing. A proxy is also good. Actually if you only plan to do web or ftp, a proxy would be even more secure and very easy to setup.

Last edited by nx5000; 04-18-2007 at 05:50 AM.
 
Old 04-18-2007, 06:47 AM   #11
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi

As I mentioned in my earlier post the win2k machine (internet machine) is directly connected to the adsl router, I think MAC address filtering is used on the router to allow only this machine access to the internet. This machine is also part of a LAN containing the linux machine. The LInux machine can access network shares on the win2k machine. Because of this I thought it might be possible with a bit of jiggery pokery to allow my linux machine access to the internet.

Best Regards
 
Old 04-18-2007, 07:00 AM   #12
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
OOps I missed the word "router"
Then its not a bridge modem then its not pppoe.

Well, configure the router to let the linux out? Add his mac adress in the allowed one?
 
Old 04-18-2007, 01:28 PM   #13
dbrmik
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi

Thanks everyone, I forgot to mention that I dont have access to the routers configuration.
 
Old 04-19-2007, 03:06 AM   #14
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Well, then the question is how to activate ICS with one network card on Windows 2000.
Before trying any "jiggery pokery".
(Un)Fortunatly, I am not using windows so you probably have to ask on a windows forum.
 
Old 04-19-2007, 01:20 PM   #15
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Windows cannot run ICS with less than two interfaces, as I already said previously. Support for virtual interfaces under Windows is primitive, at best.

Ignoring ICS, you might be able to do it with static routes, but there is simply no "clean" method of routing with a single interface in Windows. Routing and Remote Access Service (RRAS) won't even start unless there are two physical NICs in the machine.
 
  


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
Live CD Linux Box to connect to Internet via XP machine ? uncle-c Linux - Newbie 5 03-02-2007 09:31 AM
Cannot Browse Linux Box From Windoze XP rstein6516 Linux - Networking 8 01-24-2006 07:00 AM
Password Message Box when accessing linux box from Window Machine mikeccs Linux - Networking 1 08-04-2004 05:47 AM
can't browse windows workgroup when linux box online revdshepard Linux - Networking 2 02-04-2004 02:14 PM
How to Q: Win2k box to see Linux Box NPSHr Linux - Networking 3 09-17-2003 10:53 PM


All times are GMT -5. The time now is 12:37 AM.

Main Menu
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