LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to make a router? (https://www.linuxquestions.org/questions/slackware-14/how-to-make-a-router-218382/)

zaicheke 08-16-2004 01:50 PM

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?

acid_kewpie 08-16-2004 01:51 PM

if it's dedicated, best to use a tailored distro, like smoothwall. not sure what will run on a machine that archaic though.

Tinkster 08-16-2004 02:54 PM

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

zaicheke 08-16-2004 03:08 PM

thanks

Joseph_M 08-17-2004 01:42 AM

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??

Tinkster 08-17-2004 02:29 PM

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

insyte 08-17-2004 02:49 PM

try SentryFirewall. It's slackware based.

Joseph_M 08-17-2004 08:27 PM

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.

Mephisto 08-17-2004 09:03 PM

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

Poetics 08-18-2004 04:19 AM

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.

Nichole_knc 08-18-2004 05:48 AM

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).

bruj3w 08-18-2004 05:59 AM

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.

elp 08-18-2004 06:25 AM

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

Nichole_knc 08-18-2004 05:05 PM

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

hrp2171 08-18-2004 10:27 PM

Go with SmoothWall: http://www.smoothwall.org

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


All times are GMT -5. The time now is 02:15 AM.