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 06-25-2006, 04:09 PM   #1
johnsong
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
simple internet sharing btwn linux and xp home


I'm a networking novice so I need some help with something that should be easy.

I've moved into a situation where I need to share a 4Mbit cable modem connection between my Debian Sarge and an old Win XP Home box. Would this be best done with a switch/router/hub/repeater?

I'm thinking:
- the two boxes don't need to be aware of each other
- prefer wired to avoid signal problems with wireless[1]
- no hardware firewall to make things simpler and it seems to complicate p2p

Anything I buy would certainly work with the Windows so reccomendations of models which are linux friendly would be great.

Thanks for help!

[1] plus neither computer is wireless capable or do all the wireless routers I see come with something that plugs into the ethernet ports?
 
Old 06-25-2006, 05:19 PM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Most firewall/modem/routers will work with Linux. Since I don't know what a cable modem connection is, I can't really recommend you a model. However, any router made by a reputable company will have specs up on their webpage. So long as it has more than one ethernet port and a web-based configuration tool you shouldn't have any trouble. If possible I recommend getting one that incorporates a hardware firewall. If you want to operate P2P on more than one computer you will have to set up port-forwarding whatever kind of router you get, and one with a built in firewall will offer you more security.

One other possibility is if you happen to have a spare old computer about, you could stick a PCI modem and a couple of ethernet NICs into it, and run it as a router using something like Smoothwall.
 
Old 06-25-2006, 09:39 PM   #3
johnsong
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your feedback. "Cable modem connection" meant my isp is a cable company (as opposed to a telco) and I want to share internet through the cable modem. Both computers have software firewalls working fine. That's why I didn't want one in the hardware. I'm trying to minimize complexity. Same thing with port forwarding. Would a switch/hub allow me to avoid port forwarding? (Reading the wikipedia entries on switches and routers didn't clear up for me the differences and pros and cons of each.)
 
Old 06-25-2006, 09:57 PM   #4
louieb
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

Rep: Reputation: 17
I connect a couple of linux desktops and a xp machine thru a netgear router using wire. Plus its has wireless to so when the kids come home with their laptops they can use the internet on their own machines. Setup was easy. Compatability is not a problem since TCP is used by the modem, router and all the computers to talk to each other. Cost was less that $100 for the router and a couple of network cards at Fry's.
 
Old 06-26-2006, 04:59 AM   #5
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Well, I still don't understand what a cable modem connection is. We don't have the distinction here in the UK as far as I know.

What would you connect a switch/hub to? Remember, from outside your home network there is only one IP address visible. Internally on the network computers have separate IP addresses, but these are not visible from the outside. Suppose someone on a P2P network wants to make a connection to one of your computers. How does your router know which computer to forward the data to? You will have to enable port forwarding, so that connections will be forwarded to the correct computer inside the network, regardless of whether you have a hardware firewall or not. That being the case, having a hardware firewall will increase security but won't increase complexity.

I have to disagree with louieb on a point: if you don't have any wireless hardware, avoid getting a wireless router. It's just another way people can get into your network. Even leaving aside malicious breakins, you might not be too pleased to find your neighbours were using your bandwidth for free...
 
Old 06-26-2006, 07:07 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Many cable ISPs only provide one dynamic IP address with their default service. If this is the case then a hub/switch will not work and you will need to use a hardware router or configure one of the PCs as a router.

You only need to enable forwarding if you want to access a PC from the internet.

The type of modem (modulator/demodulator) is dependent on the type of internet service your using. For most, home internet access is either dial-up, cable or DSL. With cable the internet service is sent over the same wires(coax) as your cable TV service.
 
Old 06-26-2006, 09:05 AM   #7
johnsong
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, I didn't sign up for this isp so I'm not totally familiar with all services it provides. I found out that it provides 3 dynamic ips which suggests to me a switch would be fine and a router isn't necessary.

Code:
Cable jack --> cable modem --> switch --> Debian
                                  |-----> Win XP
So if each box makes its own dhcp request, is that the right topology? If so, all I need know is to figure out how to change Debian over from pppoe adsl to cable.

Last edited by johnsong; 06-26-2006 at 09:08 AM.
 
Old 06-26-2006, 09:33 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
What you have will work.

If in the future you want to share files between the computers via samba then I suggest using a hardware router due to smb not being secure. You can always use ssh instead.
 
Old 06-27-2006, 06:42 AM   #9
andy_play
Member
 
Registered: Oct 2005
Posts: 39

Rep: Reputation: 15
Who is your cable providor?
 
  


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
Internet Connection Sharing - Windows XP Home to Fedora 2 Covenent Linux - Networking 12 11-05-2006 06:57 PM
Home network - Internet sharing Artik Linux - Networking 1 05-09-2005 08:29 AM
sharing internet over home lan! 94gsr Linux - Networking 13 05-04-2004 03:10 AM
How to setup home network(sharing adsl internet connection) faidzullah Linux - Newbie 2 10-14-2003 12:19 PM
Sharing DSL internet from office to home SWitCH13h Linux - Networking 5 05-23-2003 04:42 AM

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

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