LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-20-2009, 10:30 AM   #1
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Minimum hardware for a firewall / proxy / contentfilter


Hi all,

After upgrading some systems, I have some older hardware left and am thinking of putting it all together to build a dedicated firewall / transparent proxy / content filter for my home network.

First objective is learning new things. I know about firewalls and have maintained some Linux firewalls in the past, so this part won't be complicated.
On the other hand, I know next to nothing about content filters or configuring proxies. I have done some research and found some interesting software that runs on Linux.

What I have available as hardware is:
1) box with Pentium-III 800Mhz processor and 384MB of RAM
2) several PCI network cards
3) a probably too-small hard disk of 1.2GB
4) a mixed local network of computers running mostly Slackware (4x) and two computers for the kids running Windows (yeah... they play games...)

Questions:
1) Will the processor and memory be sufficient? If it won't, the project is basically dead already since I won't be able to convince my wife to spend more on hardware
2) Is it possible at all to do a basic install on the 1.2GB drive? I don't need any graphical environment I hope for the software I'm planning to install. I have installed Slackware on smaller drives in the past, but certainly things have grown since then.

Thanks in advance!
 
Old 03-20-2009, 11:37 AM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Both the processor and memory are easily sufficient. I ran an FTP server off of 650mhz and 384mb Ram.
The only thing is that you might want a bigger hard drive.If you look through this forum there is a post for an ultra stripped version of Slackware that requires only a little bit of space to install but then you might be missing dependencies.

You could try putting an older version of slackware on the machine and just patching everything that you need to be up to date.
 
Old 03-20-2009, 03:14 PM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
I'll play around a bit with the minimal installations of Slackware, now that I know that the processor and memory will be sufficient.

I might try to find a cheap used hard disk of about 20 to 40GB.

I will report the progress of this project here
 
Old 03-20-2009, 04:52 PM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
I think you'll manage with that ok but if you are running a proxy cache (squid maybe) then yes you will need a larger disk for the cache store.

The amount of ram will limit the "in-cache" files you can have and will force a lot more disk access so you might notice a bit of a slowdown under heavy usage.

You will have to manage your log files well too or /var will fill up fast.
 
Old 03-20-2009, 05:36 PM   #5
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
@mRgOBLIN:
I was thinking of TinyProxy, since it's "fast and yet small" (quote from their website).
I think I have some RAM lying around (the motherboard uses PC133 DIMMs) so this might be simple to increase.

For the logs I will implement some logrotate routines, maybe moving older logs to my fileserver if things get really tight.

For the time being this is just a study project. If it becomes something more serious over time, I might consider investing in better hardware.
 
Old 03-20-2009, 06:22 PM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
This should be fine, if you are careful. The big thing is that you have enough ram. processor won't ever be a speed demon, but should be just fine for simpler tasks.

What you don't want is a distro that just mindlessly throws in a lot of junk without giving you the option of not having it. One of the small distros (dsl, puppy, etc, etc) would install and work perfectly normally, or you could install a 'big' distro, just being careful about what gets installed. And, though I don't know the install specs for the dedicated firewall/net appliance type distros, given that they are usually gui-less, you could almost certainly find one of those that was fine, too.

Alternatively, you could buy an, eg, 4G USB stick for the OS and just use the hard disk for transient data. The expense of the thumb drive is so small that I can't see this as a problem.
 
Old 03-20-2009, 09:05 PM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
I use a distro where I am completely in control: Slackware No mindlessly throwing in any junk here.

The idea of a 4GB stick is interesting... I have a few spare USB-sticks here I could use.

Now my first hurdle is installing a basic Slackware system on this minimal drive. Since the box only has a CDRom drive, no DVD, I am downloading the 12.2 disk 1 CD (I have the original DVD for 12.2 but the most recent CD I have is from Slackware 10, still with the 2.24 kernel).

It will probably arrive overnight, so I'll continue the project tomorrow.
 
Old 03-21-2009, 11:16 AM   #8
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
Well, I sort of gave up on the 1.2GB drive.
It *is* possible to install a trimmed down Slackware, but I need the development packages to compile things, several libraries, etc.
It's just too much work and then I won't have enough space to install the software I want to test, like TinyProxy and the content-filter.

I thought about using DSL (played with it before), but I prefer using Slackware as I know it better.

I think I'll start hunting for a cheap 20 to 40 GB hard disk...

By the way, it would be very nice if the Slackware installer ("setup") showed the total space needed by the packages while selecting them...
 
Old 03-23-2009, 12:41 AM   #9
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by niels.horn View Post
Well, I sort of gave up on the 1.2GB drive.
It *is* possible to install a trimmed down Slackware, but I need the development packages to compile things, several libraries, etc.
It's just too much work and then I won't have enough space to install the software I want to test, like TinyProxy and the content-filter.

I thought about using DSL (played with it before), but I prefer using Slackware as I know it better.

I think I'll start hunting for a cheap 20 to 40 GB hard disk...

By the way, it would be very nice if the Slackware installer ("setup") showed the total space needed by the packages while selecting them...
I have an 20gb in a machine that is about to be upgraded. If you want I could give you that one for 5$ +S&H. Let me just see to make sure I have a spare HDD that I can replace that one with (I am pretty sure I have an 80gb that is suppose to replace that, I am just not 100% sure)
 
Old 03-23-2009, 04:54 AM   #10
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
The price is OK, it's the S&H that worries me, since I live in Rio de Janeiro Any idea how much that would be?
I'll take a look at the local e-bay site today as well...
 
Old 03-24-2009, 07:24 PM   #11
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by niels.horn View Post
The price is OK, it's the S&H that worries me, since I live in Rio de Janeiro Any idea how much that would be?
I'll take a look at the local e-bay site today as well...
$78.
A lot.

OffTopic:
My dad use to live in Rio when he worked for a brazilian airline. he ran their entire reservation system in 256k of memory and that lasted until the late 1990's.
 
Old 03-24-2009, 07:52 PM   #12
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
ok, thanks anyway for the offer

I think I can get hold of a 60GB hard disk for next-to-nothing in a sleek swap-deal with a friend...
And I found some spare PC133 memory so I might be able to put something nice together

Off-topic:
I'm a foreigner her too... Living here since '97. Rio is a place you can fall in love with
 
Old 03-25-2009, 08:00 PM   #13
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
The project is going again
I managed to get hold of a used 60GB drive and stuffed a full 1GB of RAM on the motherboard (4x 256MB PC133 dimms).

Entertaining myself with two conflicting NICs (1x 3c900, 1x Digital "unknown" w/ 'tulip' chip).

The 3c900 only talks 10Mbps and is a combo (AUI / 10Base-2 / 10BaseT) and I'm fiddling with the modprobe options to choose the right connector. The tulip card is 100Mbps but only wants to talk at 10Mbps to my switch. Fiddling with the modprobe options as well...

Is this what Pat means when he says "Have fun :^)" ?
 
Old 03-28-2009, 08:30 AM   #14
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
The gateway / firewall / proxy / content-filter is up and running!

The problem with the NICs was caused by the older motherboard that needed the "acpi=force" parameter in lilo.conf

I am still experimenting with all the configuration options but basically my setup is:
- ASUS m/b w/ Pentium-3 733MHz processor (thought it was 800MHz, but that's ok)
- 1GB of RAM
- 60GB hard disk
- 1x 3c900 NIC + 1x Digital NIC w/o identification, but uses the tulip driver. Both needed options set in modprobe.d
- Slackware 12.2-stable
- Squid-3.0 (tinyproxy wouldn't work well for some reason and has not been maintained for years it seems)
- DansGuardian
- Firewall configured with iptables (1)

I use ident to authorize access.
On the Linux boxes I just configured /etc/identd.conf to pass the username (default turned off) and lower the logging-level (all requests were logged, I changed this to 'warnings')
On the Windows boxes I installed "identdwin" from http://sourceforge.net/projects/identdwin/

Result:
- uses about 2.4GB of the hard drive (the 1.2GB drive was not enough...)
- memory used (w/o buffers & cache) is less than 100MB
- with about 4 computers accessing the internet, the processor stays 99,7% idle most of the time, with some peak usage of 10%
Conclusion: this gateway is a real slacker...

Now I have to find some extra use for this machine! Any suggestions?


(1) After I finish the fine-tuning, I'll post my script requesting for comments...
 
Old 03-28-2009, 01:21 PM   #15
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by niels.horn View Post
Now I have to find some extra use for this machine! Any suggestions?
Glad to hear it is up and running!
Private ftp server? I have one running and it is great.
Small website/blog/something?
F@H server?
 
  


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
Minimum Hardware Requirements For Fedora 10 Tom Nichol Fedora 2 11-27-2008 09:24 PM
Minimum hardware 4 Solaris 10 x86 tschima Solaris / OpenSolaris 1 07-11-2007 07:15 PM
Minimum Hardware Requirements Mish_elle Linux - Hardware 1 02-18-2007 07:03 PM
Minimum Hardware Requirement for Fedora 4 manas484 Linux - Hardware 1 01-06-2006 04:21 AM
Minimum Hardware Suppot felim Linux - Hardware 1 05-23-2003 03:41 AM

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

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