LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-17-2007, 12:26 PM   #1
nycace36
Member
 
Registered: Feb 2004
Location: SFBayArea, CA
Distribution: Debian-based, Slackware 10x+
Posts: 185

Rep: Reputation: 22
Smile Low-end Slack firewall?


Am interested in using an older PC for a basic router/firewall for both sharing web-access and SSHing w/in a hubbed 2-3 PC
PAN -- Private Area Network of course .
Any really good hints for installing Slackware 11.0 on such a system?

"Old" PC is:
Pentium K6-2 400MH+ CPU
32MB RAM
2GB hdd
2 x 10/100 NICs (no dial-up modem)
CD-ROM, fdd, kbd, ...

Have already rvwd :
- shilo's site http://shilo.is-a-geek.com/slack/
(basically brought to here through this)
- cdale77's LQ thread http://www.linuxquestions.org/questi...kware+firewall

Already have the Slack 11.0 install CD's and have used these fine on other dekstop systems.

Caveats:
- Would prefer Slackware for now unless really no choice other than SLAX, freesco, smoothwall, floppyfw, ipcop...etc which others have already suggested.
- Also wish to avoid X pkgs, gtk+ and qt libraries due to memory conservation reasons. From this, suggestions of specific gui-type apps for iptables/netfilter (e.g. guarddog) would also be out.
- Would prefer NOT using other wm's such as xfce4 or ICEwm if possible, nor use of any 3rd-party IDS.
- In 2GB hdd, would prefer having swap partition of at least 32MB for same amt of RAM (performance) and at least 1 GB for packet logging.

Suggested bash scripts for iptables would be fine.

TY for any good recommendations.
 
Old 01-17-2007, 01:08 PM   #2
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 31
Why don't you add some more RAM?

Running with 64MB is going to be much more pleasant than with 32MB.


Anyway, I'd recommend using Arno's iptables firewall script:
http://rocky.eld.leidenuniv.nl/

It is easy enough to configure, and easy enough to tweak (just a bash script and a configuration file which is another bash script), and supports many features (including natting, dmz, port-fordwarding,...).

Just avoid anything related with X, TeX, TCL, KDE, most compilers/interpreters, and make sure to hand-select the packages from ap/ and n/ so you only get what you need (I really don't think you're going to setup a CIFS/SMB server in that comp, so you can, for example, get rid of that).

Either the 2.4 kernel or the 2.6.17.13 would do fine. I believe that the 2.4 might take less memory, tho'.

Edit:
Hold on a sec.! There's no such thing as a "Pentium K6-2", is it? Maybe I missed the AMD/Intel fusion...

Last edited by theoffset; 01-17-2007 at 01:10 PM.
 
Old 01-17-2007, 02:21 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
AMD used to make K6. I still have a 450mhz K6-something in my odds and sods box.
 
Old 01-17-2007, 02:33 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
If you have a way to move files to this system, then you could use Easy Firewall Generator to generate a firewall script for you.

Cheers.
 
Old 01-17-2007, 02:54 PM   #5
nycace36
Member
 
Registered: Feb 2004
Location: SFBayArea, CA
Distribution: Debian-based, Slackware 10x+
Posts: 185

Original Poster
Rep: Reputation: 22
TY for fast reply.

Quote:
Why don't you add some more RAM?
Quote:
Hold on a sec.! There's no such thing as a "Pentium K6-2", is it?
Reply to both here. Apparently, one of the two RAM banks had some of its tin pin-lining crushed and its end tabs broken -- probably from a clumsy DIMM insertion or a yanked DIMM removal .
No 64 or 128MB DIMM available here and now for compatible PCxx speed as the current 32MB module.
Even worse, the CPU itself is indeed an Intel Pentium; a Pentium I 166MHz CPU at that, more than twice as slow as a real AMD K6-2 400MHz....... it turns out that stickers both on the outside of the PC case and on the inside mislabeled the CPU as a "Pentium" K6-2 400+.

Maybe there was a real K6-2 400+ CPU in the m-brd's Socket 7 which was downgraded at the exact same time as the RAM-bank was damaged? Just an educated guess....
Whatever the case, the need here is to approach a more minimalist Slack install for a router/fw
(heck, this old PC had Windows 95 wiped out)

Quote:
Just avoid anything related with X, TeX, TCL, KDE, most compilers/interpreters, and make sure to hand-select the packages from ap/ and n/ so you only get what you need (I really don't think you're going to setup a CIFS/SMB server in that comp, so you can, for example, get rid of that).
Yep, makes perfect sense.
From the /slackware packages directory, this all leads to :
- no e/, f/, k/, kde/, kdei/, t/, tcl/, x/, xap/, y/ sets
- just enough a/, ap/, d/, l/, and n/ set pkgs to run the system as intended.
 
Old 01-17-2007, 05:37 PM   #6
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Rep: Reputation: 15
Dear,

I did exactly the same thing with an old box of mine, the difference though is that mine is wireless. It runs on a pentium 2 with 64mb of ram! I'm sure yours will run fine with 32mb though since this sort of things doesn't use much memory.

If you want your computer to act like a commercial router you only need to use iptables, this is what I do. If you want to have some sort of control over the flow of the network you would need to use iproute2, there is a great howto on that. Slackware comes installed with both packages!!

Oh and if you are going to use iptables for your firewall I would recommend you try something like shorewall to help you configure the filter table, unless you want to write over 100 rules yourself.

You can also have some fun by trying a proxy and all this....

good luck
 
Old 01-17-2007, 08:12 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Slackware should run fairly well on such a system, but you will need to know how to slim the install down confidently. You might want to also consider the BSDs, I have run them on machines all the way down to 386s, and the responsiveness was fine (though with a machine that slow, it may be possible to saturate the CPU if you have many simultaneous connections like Bittorrent).

But really, all you need is SSH and iptables. You would definitely do yourself a favor by using some sort of rule generator, however.
 
  


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
LXer: Lenovo embeds Linux in high-end and low-end notebooks LXer Syndicated Linux News 0 08-10-2006 11:21 AM
Linux for Low-End PC? sunpascal Linux - Software 20 04-16-2006 01:40 AM
linux on low-end machine redduck666 Linux - General 6 03-28-2005 01:05 PM
How low-end can you go? KlaymenDK Linux - Hardware 10 11-01-2003 07:20 AM
Which low-end video card for 2d Chris Albertson Linux - Hardware 4 03-11-2003 07:38 AM

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

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