LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-05-2005, 12:01 AM   #1
|<GBS>|Gibson
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Rep: Reputation: 0
Question Windows to Linux


hello all,

im running Debian Sarge (stable) with KDE 3.3 and with the 2.6.12 kernel, i was wondering how to get windows to broadcast an internet signal to a linux rig via LAN. im using SMB4k for file sharing (which works) and ive manually configured the windows TCP/IP protocal as follows:

IP Address: 192.168.0.1
Subnet Mask: 255.255.255.0
Default Gateway: blank
Use DNS Server: 199.166.210.2
Alternate DNS Server: 199.166.210.5

My interfaces config on Linux in etc/network is set as follows:

IP Address: 192.168.0.2
Netmask: 255.255.255.0
Network: 192.168.0.1
Broadcast: 192.168.0.255
DNS: 199.166.210.2
Alternate DNS: 199.166.210.5

any help is much appreciated

Last edited by |<GBS>|Gibson; 08-05-2005 at 12:03 AM.
 
Old 08-05-2005, 02:07 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
I'm trying to figure out exactly what you are trying to do. Are you trying to share an internet connection between two machines? In that case I think you want to try a bridge from your windows box.

It may help if you rephrased your intention.
 
Old 08-05-2005, 02:48 AM   #3
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
Sounds like you want to use your Windows box to connect to the internet then act as a firewall/proxy for the linux box. I this is the case then you need to run the "I want to use my windows box to pass packets to an internal LAN" wizard, not the real name but when you see the option you'll recognise it. Then point your linux box default gateway at your windows address. You may also need to adjust any firewall settings on the Windows box to let it see your internal lan
 
Old 08-05-2005, 03:31 AM   #4
raju_dhakar2002
LQ Newbie
 
Registered: Feb 2005
Location: Jalandhar
Posts: 15

Rep: Reputation: 0
do this.it might help u out...

hi dear...what i came to know is...i think u want to internet from linux server on the windows plateform..
if so then make ur linux as proxy server abd try to run internet from windows system...
i hope u wont get any problem in configuring linux as ur proxy server...if u get then send me any mesage i am here always for help u /...
ok bbye
Regards...
Raju
 
Old 08-05-2005, 05:35 AM   #5
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Re: Windows to Linux

Quote:
Originally posted by |<GBS>|Gibson
hello all,

im running Debian Sarge (stable) with KDE 3.3 and with the 2.6.12 kernel, i was wondering how to get windows to broadcast an internet signal to a linux rig via LAN. im using SMB4k for file sharing (which works) and ive manually configured the windows TCP/IP protocal as follows:

Very simple: Tell the linux box to use the windows IP as default gateway.
 
Old 08-05-2005, 07:40 AM   #6
|<GBS>|Gibson
LQ Newbie
 
Registered: Aug 2005
Posts: 7

Original Poster
Rep: Reputation: 0
sorry for the misunderstanding about my intentions, but yes im trying to get the windows box to share internet to my linux machine i think gd2shoe is correct that i have to create a network bridge. i wouldnt know because i cant edit a config file and all these wizards and auto-recognize actions are strange to me on windows, thanks for the help
 
Old 08-05-2005, 08:40 AM   #7
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
Are you absolutely sure that you want to do this that way around? By that I mean use the Windows box as the gateway to the Internet & connect your Linux box to it for Net access? As far as security goes, doing it the other way around would be BY FAR the best way to go about it. Windoes has MANY very well known security holes which HEAPS of people out there exploit simply for fun & as a way of saying: "Well, serves you right for connecting Windoes to MY world!"
Linux is very simple to setup as a firewall/router & once you do the number of free utilities out there to monitor, configure, setup a firewall, maintain, etc. are limitless.
I would VERY STRONGLY recommend that you use your Linux box as the gateway & connect your Windows box to it if this is at all possible. Linux's security compared to Windows' is like chalk & cheese! Also, the number of people who both can & would be willing to help you will be greatly increased if you set things up the "correct" (Linux) way.

Anyway, if you don't have a choice in the matter, it depends greatly on which version of Windows you are running as to how to configure it as a gateway. Anything less than XP Service Pack 2 would be useless! Also, do you have Cable or just dial-up? Do you want to run a firewall? (I would hope so!) Do you use such programs as File Sharing, Torrent downloaders, SSH, etc, basically anything that requires the use of a particular port? Special firewall conditions are required for these.

Answer these questions & more help can be supplied.
 
Old 08-05-2005, 11:38 PM   #8
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
Try setup->control panel->Network Setup Wizard, it allows you to share your internet connection with your home network. Try that wizard and see if it gives you what you want.
 
Old 08-06-2005, 04:08 AM   #9
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
fuzzyash is right in that connecting them the other way around will be much more secure for the windows box. If you are directly exposed to the internet (not behind a router, as it sounds like) then it is really a good idea to switch the two (although I see connection sharing as being a bit tougher from linux, it is more rewarding).

If you insist on doing it from XP to linux, then there are several ways you can set up the bridge. There is a networking wizard which is sometimes useful. The easiest way, however, is to open up the "network connections" window (available on the control panel), select two or more connections (use the ctrl key) and then select bridge from the left hand side. It really takes longer than it should, and bridging will sometimes break things (until the bridge is removed), but at least it is provided.

here's a little bit of trivia: Which Pre-XP operating system shipped with the ability to share an internet connection? Windows 98se did (I just can't remember off the top of my head how to enable "connection sharing". I remember that you need dial-up networking installed though).
 
Old 08-06-2005, 05:16 AM   #10
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Assuming you're using Windows XP, go to Start>Control Panel>Network Connections and right-click on the icon that represents your internet connection (NOT THE LAN CONNECTION TO YOUR LINUX BOX!). Choose "Properties," then the "Advanced" tab. About midway down, there'll be a box saying "Internet Connection Sharing." Enable the first check box (labeled "Allow other network users to connect through this computer's Internet connection"), then disable the second box (labeled "Allow other network users to control or disable the shared Internet connection") if you feel so inclined. Click "OK" and you're good to go!

Last edited by Charred; 08-06-2005 at 05:19 AM.
 
  


Reply



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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
Vnc only works linux to windows not windows to linux mbdayton Linux - Networking 2 04-16-2005 06:36 PM
Red Hat Linux 9 + Windows Server 2003 + Windows XP + Fedora in same domain wolfy339 Linux - Networking 5 03-02-2005 06:03 AM
Samba - Linux box can see Windows, but WIndows can't see Linux Korff Linux - Networking 1 06-02-2003 10:23 AM

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

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