Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

What is the Best Firewall for Servers?

Posted by Cliff on Mon Jun 27, 2005 04:45 PM
from the hot-protection-for-heavy-iron dept.
Sushant Bhatia asks: "I maintain a bunch of servers (Win 2003/XP Pro) at our labs in the university. Of late, the number of attacks on the computers has been more noticeable. The university provides firewall software (Kerio) but that doesn't work with Win 2003 (works with XP). And so we keep getting hit by zombie machines taken over in the Education Department or from Liberal Arts :-). So what does the Slashdot crowd use when they need to secure their Linux and Windows servers? Does it cost less than US$100?"
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • OpenBSD, of course! (Score:5, Informative)

    by Anonymous Coward on Monday June 27 2005, @04:46PM (#12925473)
    Ummm, OpenBSD of course! www.openbsd.org
    • by Krach42 (227798)
      I have to agree. I use OpenBSD for my firewall, then I poke holes through to my Linux server for HTTP, and SSH.

      This avoids the situation that I had previously when someone hacked into my machine. They hacked into my OpenBSD firewall, then opened it all up, and marked my /etc/pf.conf system-immutable (so I had to reboot into single user mode to fix it.)

      This way, if they hack my Linux server, they'd still have to hack into my OpenBSD box in order to open up the ports. I have plans to lock that up tight o
      • hahahaha (Score:3, Funny)

        by mnemonic_ (164550)
        that was me.
      • by leonmergen (807379) * <lmergen@gma[ ]com ['il.' in gap]> on Monday June 27 2005, @06:22PM (#12926590) Homepage

        So, why don't you make your OpenBSD a firewalled (and possibly ip-less) bridge ? That way, attackers have no way of knowing that there's a firewalled bridge between them and the HTTP server, and packets still get filtered... just disallow any outside connections to your bridge-server and you're safe.

        Make sure you set your webserver to only allow to respond to accepting connections, not initiate new connections.

              • by Sique (173459) on Tuesday June 28 2005, @04:06AM (#12929574) Homepage
                It is unattackable with packets addressed to it (because it has no address). It is still attackable by malformed packets traversing it. To work as filter it has to scan the packets, and if this packet scan can malfunction on special packets, there is a possible attack to the packet filter.
    • by urlgrey (798089) * on Monday June 27 2005, @05:00PM (#12925718) Homepage
      Kidding aside, OpenBSD [openbsd.org] is my choice, but any used PIII 'nix machine, be it:

      OpenBSD with PF [openbsd.org],

      FreeBSD with either PF IPFW [freebsd-howto.com],

      pretty much any Unix variant OS with IPFilter [anu.edu.au],

      Linux with IPTables [netfilter.org]

      will do the job swimmingly.

        • by tverbeek (457094) on Monday June 27 2005, @07:21PM (#12927036) Homepage
          any default install, especially linux, will have all kinds of other things installed.

          One exception to this is Coyote Linux [coyotelinux.com]. Not only does it not have the usual services enabled by default, nearly all of them have been stripped out. It includes just the components (such as iptables) that serve the central function of safely connecting a LAN to the Internet. And because it's so minimal, it fits on a floppy and runs on a 386 with 12MB RAM. It's no substitute for a full-featured Cisco Pix (for that you'd have to look at Coyote's big brother Wolverine), but it's worked great for me for years, both at home and in a couple offices I've worked at.

          • by InvalidError (771317) on Tuesday June 28 2005, @01:27AM (#12929109)
            Why would the power bill go down?
            P1 = 10-20W
            P2 = 15-35W
            P3 = 25-45W
            P4 = 35-165W

            Chipset and RAM power also increases across generations so a few more watts need to be added to each upgrade... and another extra in the 10-20% range for the extra VRM and PSU losses. (PWM regulator technology and components have not changed much over the last 10 years)

            But yes, having a faster CPU/RAM does make a substantial difference in firewall responsiveness and throughput. When I upgraded my router from 100MHz to 200MHz, loopback throughput roughly tripled - from 660KB/s to 2.3MB/s. (On top of being slower, a slow chip also spends more of its time processing interrupts and background stuff, leaving less time for 'useful' work, double-hit. Seems like the 100MHz chip in this case was wasting something like half of its time on house-keeping stuff.)

            2.3MB/s might not seem like much but I am not expecting local ISPs to offer >20Mbps (combined up+down) for another ~10 years... at least not under CAN$50/month.
    • by Guspaz (556486) on Monday June 27 2005, @05:42PM (#12926197) Homepage
      They seem to be referring to software to put on existing servers. It would be hard to build a decent OpenBSD machine for under $100 US.

      Of course if they DID want additional hardware, the absolute cheapest general-purpose linux box is the Linksys WRT54G. At least, it becomes a general purpose box as soon as you throw OpenWRT [openwrt.org] on it. Just set up the iptables rules however you like. You may want to disable the wireless functionality.

      I've seen the WRT54G selling for as little as $50 CDN, which is probably about $40 US. It doesn't get much cheaper than that for a linux box.

      Still, I think he meant more software-wise.
      • by squidfood (149212) on Monday June 27 2005, @05:57PM (#12926372)
        They seem to be referring to software to put on existing servers. It would be hard to build a decent OpenBSD machine for under $100 US.

        It was $30+OpenBSD donation for me. That was the cost government surplus PIII-450s with enough RAM and HD space for moderate use. It would be a rare university that didn't have machines like that lying around.

    • by Shanep (68243) on Monday June 27 2005, @07:33PM (#12927118) Homepage
      I also have to agree.

      * DMZ: Put your servers into appropriately configured DMZ's using a seperate OpenBSD host as the firewall. Lock it down so that only traffic which you specifically allow can get through.

      * PATCH: Keep your Windows servers patched.

      * FILTER: Doesn't Windows 2003 have a built in packet filter? If so, use it!

      * HARDEN the Windows servers. Remove every service which they don't *need* to be running.

      * REPLACE any Windows servers that you can, with more secure options.

      * BACKUPS: Keep good regular backups so that it will be less hassle for you to restore from them and patch, should they be compromised. The longer between backups, the harder your job will be to fix the problem because you might find the losses of restoring an old backup hurt more than the actual compromise itself. You'll be checking what is newer and working hard to make sure that the newer files are not infected with trojans, worms, viruses, etc.

      * DON'T DEPLOY: If you can get away with it, don't give people a solution if the only solution is an insecure one. You may find that you provide a solution which people suddenly "can't live without" but is either uneconomical to keep secure or impossible to keep secure. It is better to not give people a taste of that solution at all. Especially since they worked just fine without it up until now and *you* know that they don't *need* it.

      * SOE: Develop standard operating environment's for the desktops, lock them down and enforce IT usage policies. Do the desktops need to share data amongst themselves peer-to-peer? Having worked in edu for years, I would imagine not on the whole, so apply a firewall to the SOE itself which will fit within your network configuration. A smaller department server you will be able to take ownership of and control if they want to share amongst themselves and this takes the tinker factor away from the end users and removes their excuse for admin rights for that task. You can also make it so that any damage or network congestion they cause, can be limited to their department. You do it this way for them because "you can easily backup a central server" and upper management will agree with you on that from a risk point of view. If all your desktops, servers and network are as secure as you can make them and you have polices people must adhere to, then you will have much less problems.

      What you will also find is that you will get to a stage where instead of putting out fires all the time, you will be constantly improving your systems and making IT better instead of always trying to make IT work. You will also find that problems start to settle with the real problem staff and you will then be able to manage them and point to the polices.
  • by gik (256327) on Monday June 27 2005, @04:46PM (#12925474) Homepage
    a linux box.
    • I don't think you'll get flamed too bad. Its what I was going to suggest. I run iptables as I'm sure many others here do. Its simple, there's lots of open source tools to make management of those rules easier, and a basic install of Linux will run on some pretty lightweight machines. Heck, there's always the distros on a CD to make things even more secure, and by putting the rules on a floppy set to read_only makes for relatively simple updates to the rules if/when needed.
  • Smoothwall (Score:4, Informative)

    by Anonymous Coward on Monday June 27 2005, @04:47PM (#12925479)
    • Also IPCOP (Score:5, Informative)

      by lord_rob the only on (859100) <`shiva3003' `at' `gmail.com'> on Monday June 27 2005, @05:15PM (#12925941)

      I've used smoothwall for a while and I was very satisfied with it. But at some moment, it stopped working. The ADSL connection couldn't be established anymore.

      While I think it was rather a hard disk crash and not a direct smoothwall problem, it made me feel like replacing my smoothwall with ipcop, another firewall dedicated linux distro (forked from smoothwall).

      I'm very happy with ipcop at the moment, it's a bit more "customizable" than smoothwall. I know both are GPL'ed so they can both be customized to fit any purpose, but as ipcop is a 100% community-based distro, it is a bit more designed to be tweaked than smoothwall.

      Check out IPCOP site [ipcop.org]

      • Re:Also IPCOP (Score:4, Interesting)

        by crabpeople (720852) on Monday June 27 2005, @06:04PM (#12926436) Journal
        "I've used smoothwall for a while and I was very satisfied with it. But at some moment, it stopped working. The ADSL connection couldn't be established anymore."

        Actually the same thing happened to me. Well sort of the same (my connection uses DHCP). My problem was that the webpage configuration never came up. I finaly figured out that this was because my 100mb /var/log was full!

        Clearing that out made the smoothy run fine again. It has since happened a few more times and everytime i just have to clear out all the logs. That said, while the disk was full, it was still routing traffic as expected for months before i discovered the issue.

        The one thing I would like to see would be a better way of tracking all the connections being setup and torn down by the machine, realtime, say logging to a console window. I used to have a dubbele NETBSD firewall ( http://firewall.dubbele.com/ [dubbele.com] ) that, becasue of the firewall package on there (vastly superior to iptables IMHO) i could run a simple command (ipmon -o N) and it would list everything going on. very cool. I know about IP contrak mod for smoothwall but on a webpage just doesnt have the same cool feel as realtime. Its nice to catch all those EA games you have calling home when you launch them :)

        Anyways the one story i love to tell about the netbsd machine was that the hard drive failed on it months before i found out. The machine was running flawlessly until i rebooted it for some reason and got a nice primary HDD fail in the bios. The last timestamp for a file on the HDD was like 8 months previous.
  • by Richard Steiner (1585) * <rsteiner@visi.com> on Monday June 27 2005, @04:47PM (#12925489) Homepage Journal
    That way, platform compatibility is a nonissue.

    I use a dedicated PPro box running Coyote Linux myself, but there are far more robust solutions out there...
    • exactly my thoughts.

      from what it sounds like he just wants incoming ports blocked(being hit by zombies).

      30$ should buy an external fw/nat box with simple rules - a little more and you could get some similar router&on board firewall combos that run on top of linux too.. should fit the bill pretty well.

      well, blocking incoming ports should be doable with windows own built in fw too.. so maybe he just would want a free kerio or something - you know, with fancy menus and crappy threat detection and popup
  • by AEton (654737) on Monday June 27 2005, @04:48PM (#12925495)
    You keep getting hit by zombie machines?

    Liberal Arts zombies? Are you sure they're not dogs [slashdot.org]?

    (And, as always, the best answer to your question may come from Google. Linux.com | A Linux firewall primer [linux.com].)
  • by Suicyco (88284) on Monday June 27 2005, @04:49PM (#12925511) Homepage
    Just use iptables on a cheap old pentium or something. Two network cards, one inside and one outside. Even a modest Pentium or Pentium II could keep up with good amounts of traffic.
    • by hawkbug (94280) <psx.fimble@com> on Monday June 27 2005, @05:01PM (#12925741) Homepage
      I hear this argument a lot, and you're right - it would work... but here's the thing - If you put a pentium I computer with a 2 gig hd or something up in front of an entire lab for internet access, I would wonder about the reliability. What I mean is, at work here I was doing something similar - but when the non-rendundant power supply in the 1995 based computer died, my entire part of the office lost net access, which is bad.

      There is always something to be said about having a real server act as a firewall. For home use, sure, use an old computer running linux - but for anything that you would like to count on a reliable, get a real piece of hardware to put that linux distro on, and you'll be happier.
      • You always has OpenBSD [openbsd.org] that comes with pf [openbsd.org] (packet filter), CARP [openbsd.org] (redundancy) and pfsync [openbsd.org] (firewall synchronizing)

        You can find an example here [countersiege.com]

      • by owlstead (636356) on Monday June 27 2005, @05:21PM (#12925995)
        Use a floppy or CD based installation. Leave that hard disk out. When that's on, there are no moving parts at work, except for the fan(s), which should be able to run for a few years. Otherwise, buy a cheap fanless VIA epia board with 2 ethernet connections and boot it up from a flash drive. Works like a charm, and 533 or 600 MHz is actually overkill. Great as a small web server/ssh access. And it's easy to setup with a printer or an external HDD to share stuff on your network.

        But it seems that the poster can get way with using a simple router box with multiple LAN ports as well (or 1 LAN and 1 WAN port might even work).
  • Two Words... (Score:3, Informative)

    by Jsutton1027w (757650) on Monday June 27 2005, @04:49PM (#12925517) Homepage
    IP Cop. ;) http://www.ipcop.org/ [ipcop.org]
  • by dancedance (600701) on Monday June 27 2005, @04:49PM (#12925529)
    Does it cost less than US$100? You can't be serious. Securing your machines is only worth $100? Is that how much it will cost to fix them once they are cracked? Give me a break. If you are serious about security you can invest more than $100.
    • by MrResistor (120588) <peterahoffNO@SPAMgmail.com> on Monday June 27 2005, @05:00PM (#12925715) Homepage
      Did you miss the part about how he works for a school? He has to get the money before it can be invested, and $100 might be the limit above which he has to get the approval of 3 PHBs and 6 beancounters.

      Or maybe you missed the part about how the attacks are coming from other departments, over which he has no authority, and who obviously don't place a high value on security?

    • by DNS-and-BIND (461968) on Monday June 27 2005, @05:01PM (#12925749) Homepage
      There are these mystical things called "budgets". The "budget" will provide for some things and not others.

      This *is* at a university. Universities are well-known for being completely isolated from the rest of society, and as a result, they have some pretty weird ideas. One of which is not spending any money on computer security.

    • by riptide_dot (759229) * on Monday June 27 2005, @05:02PM (#12925758)
      "You can't be serious. Securing your machines is only worth $100?

      Keep in mind that the OP works for a university, which probably doesn't have a budget outside of what they already spent on their software firewall. It doesn't mean that security isn't important to him, just that there's probably not an existing budget for it.

      The OP is looking for a cheap and innovative way to secure his university network's servers - and I can't think of a better place to ask the question than here.

      I say let the FOSS community answer his question and provide him a solution to his unique problem in the way that they know best and leave the "isn't this worth more than $XXX?" questions to the salesman.
  • Wrong Approach (Score:5, Informative)

    by markom (220743) on Monday June 27 2005, @04:50PM (#12925544) Homepage
    You are approaching the problem from a wrong direction.

    There are different types of firewalls and they can be divided into these types using different criteria. However, I will use the most simple one. There are host-based and network-based firewalls. Host-based firewalls, are not very cost-effective (or even effective at all) for protecting large, medium or even small server "farms". They work fine on single-server or home machines.

    The proper way to protect server farms in campus is to have secure network. Firewalls are like city walls. They offer protection, but if breached, you're doomed. Secure network consists of firewalls, segmented network (separate VLAN's, switching blocks, etc.). Excellent reference for secure network design is Cisco's SAFE Blueprint for Enterprise Networks. I would recommend reading it, even though you're not using Cisco gear.

    Marko.
  • A cheap box (Score:3, Informative)

    by necrognome (236545) on Monday June 27 2005, @04:51PM (#12925557) Homepage
    running OpenBSD and pf. Include another cheap box and CARP if you need redundancy/failover.
  • IPCop (Score:5, Informative)

    by ZosX (517789) <zosxavius@gmail.PERIODcom minus punct> on Monday June 27 2005, @04:53PM (#12925593) Homepage
    It's free.

    Only port forward what ports you absolutely need and keep your servers out in the DMZ. IPcop will easily allow you to seperate your network into zones with multiple nics and will likely only take a 486 or Pentium class machine to keep up with your bandwith. Hey, you asked for cheap. Doesn't get much cheaper than that.

    You can also keep detailed logs and it also features a good SNORT setup for NIDS. It sets up convieniently with a web browser.

    There is also Smoothwall. Both are really Linux based software firewalls. The difference is that IPCop is totally free and supports a wide variety of features that you would likely have to pay for in Smoothwall. Updating NIDS signatures automatically comes to mind.

    I would personally avoid Windows software firewalls like the plague, as they run at escalated priveledges and can potentially put your system at even more risk as they add to the number of possible vulnerabilities, but that is just me.

    If you can't afford a PIX or something in hardware, FreeBSD and Linux software firewalls are always the best way to go IMHO.

    Happy hacking!
    • Re:IPCop (Score:3, Informative)

      I second IPCop. I use it for a group of about 50 users, and I've got an uptime of almost a year. The things I like about IPCop: - It works. Well. - Free! - Lean. It doesn't have a whole lot of nonsense that you don't need. - Comes with a nice web interface. - Handles aliasing fine. That way you can have more than one IP address per physical interface. - Has a healthy support community. - Runs on a lot of hardware. I've actually got two ipcop boxes, identically configured. That way if one ever dies, I
  • by NotFamous (827147) on Monday June 27 2005, @04:53PM (#12925597) Homepage Journal
    Ceramic wafers with asbestos stuffing...
  • by RedPhoenix (124662) on Monday June 27 2005, @04:56PM (#12925642)
    For the linux machines, have a peek at firestarter (www.fs-security.com). It's easy to configure, has a nice GUI, and provides a reasonably simple method of configuring IPTables.

    If your requirements are a little more complex (eg: DMZs, VPNs, etc.), you might want to have a peek at firehol instead. Text-based configuration, but greatly simplifies the process of wrangling with iptables.

    I tend to recommend zonealarm for windows for most people, but that's more out of apathy (ie: I haven't reviewed the options lately) than anything else.

    Red.
  • by Arimus (198136) on Monday June 27 2005, @04:56PM (#12925646)
    I'd suggest ditching a software firewall and investing in a proper hardware firewall such as Checkpoint FW1 and put all the servers behind that firewall.

    Put another firewall ideally of a different type (break one you've still got another to break) and use that to isolate all the departmental computers...

    Ensure the policies are locked down tight and that any changes are approved by someone who knows what they're about before being implemented.

  • by DJStealth (103231) on Monday June 27 2005, @04:59PM (#12925693)
    Download W2K3 Service Pack 1 from Microsoft, they have the same firewall as XPSP2 plus some bonus features.

    There's a "Security Configuration Wizard" that will help you config the firewall and services at a more advanced level than in XPSP2
  • Take One Old PC (Score:4, Informative)

    by sjvn (11568) <sjvn@@@vna1...com> on Monday June 27 2005, @05:02PM (#12925765) Homepage
    Add wwo network cards
    Add free Linux 2.4 distribution or higher
    Activate netfilter and iptable
    See: ttp://www.netfilter.org/
    Deploy firewall using instructions in the netfilter how-tos:
    See: http://www.netfilter.org/documentation/ [netfilter.org]

    Or, if that's too much for you, just get the equipment and add one of the pre-configured firewall Linuxes like SmoothWall (http://www.smoothwall.org/ [smoothwall.org]), Devil-Linux (http://www.devil-linux.org/home/index.php [devil-linux.org]) or Coyote Linux (http://www.coyotelinux.com/ [coyotelinux.com]).

    No fuss, no muss.

    Steven

  • Preferentially? (Score:4, Informative)

    by CAIMLAS (41445) on Monday June 27 2005, @05:41PM (#12926184) Homepage
    For Windows? A seamless, 3' thick rebar-reinforced cement vault is preferential. It's easiest to add the machine prior to pouring the cement, I've found.

    But with zombies in general, I prefer a more proactive approach: a 12 gauge shotgun loaded with 00 buck does nicely.

    Seriously though. Every Windows machine should be behind an entirely seperate firewall, protecting it from everything and everything from it. A Windows machine on a public network that isn't being agressively administered is about as safe as a polish handgun.

    By the description of your environment and problem, it sounds like you basically want to quarantine the humanities from the rest of campus so they don't wreak their plague of stupidity upon everyone else (this is good policy in general, I've found - humanities aren't fond of reasoned, concrete thought).

    Probably the best way to do that would be to set up an IDS gateway between their networks and the rest of campus. Something from CISCO would probably be best, but I'm fairly certain you could do it with linux/BSD or another COTS solution for decreased price. Have the IDS set up to basically drop all trafic from zombied machines. When they complain to you that "their" network isn't working and that it's your fault, give them the ISP treatment: fix your machine and we'll let you back on.

    Really, allowing humanities types to manage their own hardware is just a receipe for disaster. Would you let your accountant work on your car? It's not adviseable, and would likely cost you more than not having repair done at all and waiting for further problems.
  • by Kaedrin (709478) on Monday June 27 2005, @06:17PM (#12926548)
    I can't speak for the linux side of things, but here's my comments for Windows.

    Note that while this is easier to manage with Group Policy via Active Directory, you can use the local group policy settings and migrate them across your lab. My thoughts on this are valid for XP and 2003.

    The internal firewall is your first defense, blocking all non permitted inbound random/unimportant information from reaching your machines. Tell the firewall the applications you will be using, and it will dynamically open required ports as the program needs them. This way you don't need to deal with local port management. You want this setup to prevent traffic from reaching IPsec, and for any logging purposes you may have. IPsec's current version doesn't really do packet logging, and is in no way a firewall (Although, I used it for years as a firewall with Windows 2000 and never had any ill-received problems, but they were not on critical systems either).

    Use IPsec in pure authentication mode without encryption (unless you have encryption offload cards). You can use it in several ways.

    All communication requires authentication:
    No computer can talk to yours that is not setup properly. Period.

    All inbound communication requires authentication:
    All inbound traffic must authenticate or be dropped.

    If you lock inbound, but not outbound, your clients can still access web resources and any other computer without issue, but you have completely prevented anyone else from initiating communication with your systems.

    IPsec works like this: Generic rules (require authentication from everyone) are over-ridden by a more explicit rule (do not require authentication from whatever.system.local). Generic all IP rules are over-ridden by port rules, port rules are over-ridden by explicit IP address rules or subnet rules. Etc.

    For your purpose, I would at least require all inbound traffic to require authentication by String, however this is not secure and anyone with administrator access can rip the password out of the registry. To do it securely, you need to do it by certificate or Kerberos. The kerberos implementation will require active directory, the certificate method will require a full IKE/PKI configured for your area. You do not need to buy a certificate from a place like verisign, you can do it all yourself through your own self-signed certificates. This entire process with IPsec can be automated through Active Directory, but if you don't have active directory, I believe any generic IKE/PKI server can generate valid certificates for your use. It's a lot less work on your part doing it through active directory.

    IPsec policies will work between Windows 2000, XP, and 2003, however your key strength is limited based on the oldest OS you use. 2000 will only function with low keys, XP with both low and medium, and 2003 with strong keys and the two weaker keys. Also, you can set it up from strongest key generation to weakest, so 2003 will always talk to 2003 in strong, 2003 to XP in medium, 2003 to 2000 in weak. It may be possible to make IPsec work side-by-side with Linux using Freeswan, or whatever project replaced it, however I never used that program.

    One last thing, if your systems are used by untrusted users, considers how possible it is to use the software restrictions built into Windows. Once that is activated and configured well, it becomes very difficult for a local user to run non-authorized software without sitting at the machine and taking it over first. Refer to rules regarding Software Restriction Policies for this.

    K.

      • by interweb (895527) on Monday June 27 2005, @04:56PM (#12925651)
        slightly off topic but does anyone else have trouble reading those annoying "confirmation your not a script images"? The one I am looking at right now is nearly impossible to read.

        Are you sure you are human?

    • Because in this case, the end result is something easier to deal with that solves the problem. If you want to maintain a "bunch" (however many that is) of installs of a windows firewall, on multiple OSs, then yea, absolutely.

      The thinking here is a separate machine will help maintainability (assuming of course that you know linux), ease of upgrades (one system vs a "bunch"). Of course, in this case a little router box would work just fine as well. The only thing with the router boxes is the ones sold to
    • It's generally considered a Good Thing to keep a firewall box separate from the actual server - that way, if your network is taking a beating, the firewall absorbs the impact, thusly not killing your server boxen.