LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2004, 01:50 PM   #1
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Rep: Reputation: 30
How to make a router?


I have a 486 that i'm going to turn into a router. I have two Ethernet cards in it (one attached to the cable modem and the other attached to a hub). How do i set this up so it will work as a router and how do i set up a firewall and port forwarding?
 
Old 08-16-2004, 01:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if it's dedicated, best to use a tailored distro, like smoothwall. not sure what will run on a machine that archaic though.
 
Old 08-16-2004, 02:54 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: How to make a router?

Quote:
Originally posted by rcottere
I have a 486 that i'm going to turn into a router. I have two Ethernet cards in it (one attached to the cable modem and the other attached to a hub). How do i set this up so it will work as a router and how do i set up a firewall and port forwarding?
On top of what Chris said: I'd use OpenBSD, and since you're
already using it I'm sure you know your way around their
web-site :) They have EXCELLENT documentation ;)
pf is way better than iptables ;)

Cheers,
Tink
 
Old 08-16-2004, 03:08 PM   #4
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
thanks
 
Old 08-17-2004, 01:42 AM   #5
Joseph_M
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Re: Re: How to make a router?

Quote:
Originally posted by Tinkster

pf is way better than iptables

Cheers,
Tink
Can you back this up??
 
Old 08-17-2004, 02:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: Re: Re: How to make a router?

Quote:
Originally posted by Joseph_M
Can you back this up??
It's primarily a gut-feeling :)

I like the way pf is set-up much better than
iptables, its configuration files are very close
to "normal english" ...

Having read your query I've done some googling,
and it appears that iptables is somewhat better under
heavy load when it comes to routing large amounts
of packets. So, if one's not planning to set-up an ISP
on a p 166 I think it's safe to stick with my claim.

You should also see the post in its entirety. I wouldn't
ask anyone to compile pf on Linux. It's a fact that OpenBSD
has a history of far less vulnerabilities than Linux.


Cheers,
Tink
 
Old 08-17-2004, 02:49 PM   #7
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
try SentryFirewall. It's slackware based.
 
Old 08-17-2004, 08:27 PM   #8
Joseph_M
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Re: Re: Re: Re: How to make a router?

Quote:
Originally posted by Tinkster
It's primarily a gut-feeling

it appears that iptables is somewhat better under
heavy load when it comes to routing large amounts
of packets. So, if one's not planning to set-up an ISP
on a p 166 I think it's safe to stick with my claim.

It's a fact that OpenBSD
has a history of far less vulnerabilities than Linux.


Cheers,
Tink
I wonder what constitutes a "heavy load" on a 486?

As for the assertion that BSD has far less vulnerabilities then Linux is debateable at best. Just because some software written for linux has vunerabilites does not mean that linux has vulnerabilities. I have been running a router/wireless ap/firewall built on an old pentium one for a long time. I get scanned all the time but have never had a breakin. And I use an ip tables firewall. There are tons of people that use ip tables. I am willing bet that the number of ip tables firewalls are exponetially greater then pf firewalls just as the number of users of linux are exponetially greater then the users of BSD.
 
Old 08-17-2004, 09:03 PM   #9
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Joseph_M: I use slack in a bridging firewall and am quite happy with it. However the assertion that OpenBSD (not BSD in general) has less vulnerabilities is not really debatable. OpenBSD might not have the latest and greatest, but what it has is generally accepted as well tested for vulnerabilities. The number of vulnerabilities it has had over the last couple years tends to back this up.

Now on to the topic. If you want to use Slack for the firewall you would probably want to compile the rules using a GUI on another computer and then scp them in. There are a couple options if you want to go that route, fwbuilder being my choice. This way you can have the router stripped down to the absolute bare essentials. Stick with bare.i on 2.4.x and it is not that much a stretch.

However, as has been stated, you are probably better off going with one of the dedicated FW distros unless you intend to do something fancy or you are just familiar with Slack and don't want to keep up with 2 different distros. SentryFirewall is one option IPCOP and Smoothwall are 2 others. Astaro is nice but probably won't run well on a 486.

DistroWatch's list of router dstros is here: http://distrowatch.org/dwres.php?resource=firewalls

Last edited by Mephisto; 08-17-2004 at 09:04 PM.
 
Old 08-18-2004, 04:19 AM   #10
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I use a floppy-based router distro Off the top of my head I can't remember -- been so long since I've needed to touch it. I'm sure there are quite a few floating around. No HDD required, which is also nice.
 
Old 08-18-2004, 05:48 AM   #11
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
A router/firewall device is an excellent choice for "old" boxes... Many of these devices currently available with imbeded software/hardware are linux based and run on processors ranging from 50mhz chips, Pentium pro 166s, PIIs, PIIIs, motorolas Oh you get it... Actually a router box does not really have a "load". During a test using slackware w/firestarter set as a firewall device with 2 nics running Gkrellm to monitor the load -- the processor hardly every blinked even during streaming video.
Most of the time traffic is passed between the nics without any processor clocks. So it really does not take a lot of power for a router/firewall device on a small/home net running a class C (<255 devices).
 
Old 08-18-2004, 05:59 AM   #12
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
yeah, id backup Nichole_knc. my router runs slack10 and is a k5 pr133 @ 100mhz, with just 32mb ram, it really doesnt use up much cpu power, if anything.

id just put a full distribution on there and not bother with the firewall packages, that way it gives you something to play with :> and you can have say, apache, or something running on there too if you wanted.

ive always found distributions like slack and debian run just as well on older machines as they do on newer ones.
 
Old 08-18-2004, 06:25 AM   #13
elp
Member
 
Registered: Aug 2003
Posts: 66

Rep: Reputation: 16
Quote:
Originally posted by Poetics
I use a floppy-based router distro Off the top of my head I can't remember -- been so long since I've needed to touch it. I'm sure there are quite a few floating around. No HDD required, which is also nice.
Coyote Linux is a nice floppy firewall.

http://www.coyotelinux.com
 
Old 08-18-2004, 05:05 PM   #14
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Yep slack does run real well on older boxes..
My webserver (which started as a test and still running) is a Pentium Pro 200 that used to be the home automation server running win98 and active home software until a lighting strike blow out the usb ports as well as a pci slot or 2. Well that bad little box still works just fine as a server with slack serverin' up a couple of pages from under the table...

And yes I have a slack powered firewall/home server (samba, nfs, dns, mail) for my network. Slack replaced FreeBSD in that job. Runs on a 333mhz HP Vectra with 128mb ram

Last edited by Nichole_knc; 08-18-2004 at 05:09 PM.
 
Old 08-18-2004, 10:27 PM   #15
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Go with SmoothWall: http://www.smoothwall.org

I have one up and running at home. It's great!
 
  


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
Distro To Make PC a Router zflauaus Linux - Distributions 4 11-07-2005 01:34 AM
Can't make a link with my router. pdeman2 Linux - Wireless Networking 8 08-20-2005 04:32 PM
Is it possible to make a pc work as a router/hub funkatron Linux - Hardware 1 07-14-2005 06:25 AM
Make a router engnet Linux - Networking 3 03-16-2004 04:45 PM
Trying to make a router ocularbob Linux - Networking 1 01-27-2003 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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