LinuxQuestions.org
Visit Jeremy's Blog.
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 09-22-2003, 05:56 PM   #1
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Rep: Reputation: 15
Adsl + Hub + Rh9 + Win98


Hi!

I just bought myself a cheap-ass hub to share my adsl-connection between my two computers.

Problem is - I know nothing of this kind of thing...

Is there some howto somewhere that I could use?
or maybe there is a simple way someone could explain to me?

//Ziggamon
 
Old 09-22-2003, 09:18 PM   #2
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
I don't know how your provider works, but here in the SF Bay Area, Comcast (cable Internet) allows you to plug your cable modem into a hub and connect up to seven devices directly out on the Internet.

I don't do this however, I threw a Linux box inbetween the Cable Modem and the rest of my network. You'll need two NICs in the router(linux) box also.

Once you get to this point, fire up IPTABLES

http://www.technocore.org/nerdCore/iptables.php
and
http://www.redhat.com/docs/manuals/l...1-FIREWALL-IPT
should get you going.
 
Old 09-22-2003, 10:58 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, some cable internet service providers will let you connect several machines to one hub without needing a local router... usually all you need to do is give them the mac address of the cards in the machines you want to connect, as they will be giving you an ip address for each.

of course if they only give you one ip, then you must use a router... in fact, even if they DO give you several ips through the hub, sometimes it's preferable to use a router anyway.

(enter linux)

there's lots of advantages to using a router... for example, you have only one point to defend the whole network, even if you have hundreds of machines. you create a nice first line of defense.

linux makes a GREAT router by nature, so i would suggest you configure your red hat box as a router, and have it provide internet access and protection to your win98 box and any other box you might have.

you'll just need to add a second network card to the red hat box (although it's technically possible to do it with only one, it's not as effective that way)...

there's lot's of software out there to cofigure linux firewalls easily...

i think you might like shorewall or firestarter:

http://www.shorewall.net/

http://firestarter.sourceforge.net/

here's the how-to for setting up a linux box with shorewall to work as a two interface router:

http://www.shorewall.net/two-interface.htm


if you wanna deal directly with iptables, you could use vi or a text editor to make your script...

or you could use a firewall script generator like this one to help you out BIGTIME:

http://morizot.net/firewall/gen/


here's a bunch of iptables information... tutorials, scripts, etc:

http://www.linuxguruz.com/iptables/
 
Old 09-23-2003, 05:46 AM   #4
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks for the advice guys, but the thing is that I need the two computers to be independent from each other.

Network safety is nothing I care about since I don't have anything of value on my computers.

My question was if i was possible to do as Saraev's provider allowed and plug in several machines through a hub.

The cheapness was also a great factor, and if I need another NIC, I rather just switch the internet conections manually...
 
Old 09-23-2003, 11:48 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
then you should place a call to your internet service provider and talk to them about adding a second computer... they are the only ones that will know for sure if your contract allows 2 or more computers per cable modem. then they'd probably just need to add the new mac address to their dhcp server configuration or something... it's the cheapest way. however, if they don't do multiple computers per contract, then you have no choice but to use a router or connect only one computer at a time.

good luck.


ps: a worm won't care if there's anything valuable on your win9x box... it'll be happy enough knowing it has your BANDWIDTH by the balls.
 
Old 09-23-2003, 01:45 PM   #6
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
You could go down to best buy and score a Linksys/DLink/Netgear/Microsoft DSL router device. They're usually under $50, and would do the job with the least amount of pain. Plus, it would help keep yur windows box from getting own3d, as win32 pointed out.
 
  


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
Need help setting up routing tables with an adsl hub AntWarrior Linux - Networking 4 08-04-2004 03:10 AM
Internet sharing with cable,hub, win98 and MDK10CE Sey Linux - Networking 2 07-16-2004 05:33 AM
win98(first ed.) to rh9? awd86 Linux - Networking 4 11-01-2003 01:52 AM
No Write from Win98 to RH9 Box daemon_14 Linux - Networking 2 08-08-2003 09:13 PM
Mandrake/ADSL/hub home network for windows clients 4days Linux - Networking 1 08-22-2002 05:54 AM

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

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