Translation(s): English - Italiano


A system designed to prevent unauthorized access to or from a private network. Firewalls can be implemented in both hardware and software, or a combination of both. Firewalls are frequently used to prevent unauthorized Internet users from accessing private networks connected to the Internet, especially intranets. All messages entering or leaving the intranet pass through the firewall, which examines each message and blocks those that do not meet the specified security criteria.

Note: some of the information in this page are out of date.

More information

Choosing an IPtables frontend

introduction

There are lots of iptables frontends. So you have lots of choice. This section is devoted to help you making a choice among this truckload of options by comparing the tools. NB: you should install just one of these packages. Installing more than one will not make your system more secure; it will likely make your system unmanageable.

BTW: There's also a securityfocus article (from April 2001) comparing some of these tools. Some of these are described in the Securing Debian Manual.

overview

Here's an overview of the different tools (selection inspired upon what's available in Debian unstable as of 2005-10):

Package and Upstream URL

Interface

Programming Language

Size of Source (as of 2005-10)

Releases (as of 2005-10)

arno-iptables-firewall

edit (debconf)

sh

60K

< 2003-08 - 2005-09

ferm (wiki page)

edit

perl

80K

< 2001-04 - 2005-06

fiaif

edit

bash

320K

< 2003-01 - 2004-02

filtergen

edit

C

150K

< 2002-10 - 2004-08

fireflier

gui

C

230K

2002-02 - 2005-09

firehol

edit

bash

210K

< 2003-05 - 2005-01

firestarter

gui (gnome)

C

1170K

< 2003-01 - 2005-01

fwbuilder

gui (kde)

C++

1190K

< 2003-12 - 2005-09

guarddog

gui (kde)

C++

960K

2000-06 - 2005-08

guidedog

gui (kde)

C++

590K

2001-11 - 2003-11

hlfl

edit

C

100K

< 2000-07 - 2003-10

ipkungfu

edit

sh

40K

2002-09 - 2003-10

kmyfirewall

gui (kde)

C++

1060K

2002-08 - 2005-03

knetfilter

gui (kde)

C++

960K

< 2001-01 - 2005-04

mason

shell (autolearning)

bash

500K

< 1999-03 - 2002-05

netscript-2.4

edit, iptables

sh

70K

< 2000-11 - 2004-10

shorewall

edit, webmin

sh

130K

< 2001-12 - 2005-09

uif

edit (debconf)

perl

34K

2002-02 - 2005-04

uruk

edit

sh

80K

2003-03 - 2005-07

Vuurmuur

curses

C

1877K

2004-07 - 2005-11

ufw

edit

python

247K

2009-5 - (NEW)

The fiaif configuration file is very similar to raw iptables rules.

Filtergen has support for non-iptables packet filters too. The configuration file is application-specific.

fireflier has a client-server setup. It is "a tool which does what all those personal windows firewalls do: At the beginning everything is denied. When someone wants to connect in or out, the tool asks the user, providing information about the corresponding packet, if it should accept or deny this packet. Besides you can create rules based on the packets."

firestarter is an application oriented towards end-users that includes a wizard useful to quickly setup firewall rules. The application includes a GUI to be able to monitor when a firewall rule blocks traffic.

fwbuilder is an object oriented GUI which includes policy compilers for various firewall platforms including Linux' netfilter, BSD's pf (used in OpenBSD, NetBSD, FreeBSD and MacOS X) as well as router's access-lists. It is similar to enterprise firewall management software. Complete fwbuilder's functionality is also available from the command line.

guarddog is oriented both to novice and advanced users.

knetfilter is an alternative/competitor to the guarddog tool although slightly oriented towards advanced users.

mason is an application which can propose firewall rules based on the network traffic your system sees.

The netscript-2.4 Debian package description says: "DON'T use this on a server - it is designed for dedicated routers and firewalls with hardly any configured services."

shorewall is a firewall configuration tool which provides support for IPsec as well as limited support for traffic shaping as well as the definition of the firewall rules. Configuration is done through a simple set of files that are used to generate the iptables rules.

ufw: Canonical's ufw is from Ubuntu. (New for squeeze)

vuurmuur: Victor Julien's vuurmuur is not (yet?) included in Debian, but Debian packages are available in an apt-able archive.

debian specific information

Some Debian-specific data about these packages:

Package and Debian package URL

Debian package description

Popularity (2010-10-24)

arno-iptables-firewall

Single- and multi-homed firewall script with DSL/ADSL support

554

ferm

maintain and setup complicated firewall rules

465

fiaif

An easy to use, yet complex firewall

53

filtergen

packet filter generator for various firewall systems

30

fireflier

Interactive firewall rule creation tool

11

firehol

An easy to use but powerful iptables stateful firewall

498

firestarter

gtk program for managing and observing your firewall

1239

fwbuilder

Firewall administration tool GUI

745

guarddog

firewall configuration utility for KDE

351

ipkungfu

iptables-based Linux firewall

37

kmyfirewall

iptables based firewall configuration tool for KDE

302

knetfilter

GUI for configuring the 2.4 kernel IP Tables

140

mason

Interactively creates a Linux packet filtering firewall

33

netscript-2.4

Linux 2.4.x (and 2.6.x) router/firewall network configuration system

29

shorewall

Shoreline Firewall (Shorewall)

2779

uif

Advanced iptables-firewall script

17

uruk

Wrapper for Linux iptables, for filtering rules management

63

ufw

program for managing a Netfilter firewall

332

The number in the popularity is the number of installations. The higher the number the more installations it has; "-" in popularity means: not yet in Debian.

As of 2005-11-02, for all packages (ferm, fiaif, filtergen, fireflier, firehol, firestarter, fwbuilder, guarddog, guidedog, hlfl, ipkungfu, ipmenu, kmyfirewall, knetfilter, mason, netscript-2.4, shorewall, uif) the BTS looks quite OK: no serious bugs, the packages look well-maintained.

Notes on size of package: if there are lots of sources, the package might be too bloated for your taste. However, if the size of the sources is small, there are likely less nice features. OTOH, small packages are more easy to check for errors, and might offer a nice "mean 'n' lean" feeling.

yet other ones

There's also webmin-firewall, ipmasq and gshield. webmin-firewall is a webmin plugin, shipped in firewall.wbm.gz: "Configure a Linux firewall using iptables". ipmasq is shipped as a Debian lenny package but dropped for squeeze. gshield is no more shipped with Debian.

ipmenu, a small perl script with curses interface, wasn't shipped with the Debian etch release.

And then there's some really obsolete stuff: firewall-easy was shipped with Debian potato only. fwctl's last release was in 2000. Gfcc and easyfw were shipped with Debian woody only.

conclusion

Now for the conclusion: we'll give a possible way to decide, using the data gathered above.

If you want a gui tool choosing firestarter, fwbuilder or guarddog is probably wise: these are all popular tools. fwbuilder (for KDE) is by far the most popular. However, it is said it's definately not a tool for newbies. Guarddog (KDE) and firestarter (GNOME) are both equally popular. The codesize for all three is about the same.

Now suppose you don't want a gui tool, for instance since you're working on servers and don't have X libraries installed. You also might like a plain-text editable configuration file, since you manage your configuration files with a version control system. You also want a tool which is actively maintained: since 2004-09 there should have been at least one release.

Let's take a closer look at 5 of the qualifying non-gui tools:

Package and Online Documentation

Configuration file format

Size of main script

arno-iptables-firewall

shell

135K

ferm

app specific

62K

firehol

shell

24K + 131K = 155K

shorewall

app specific

203K

uruk

shell

9K

ufw

python

848 k

The arno-iptables-firewall Debian package comes with a debconf frontend: it is possible to configure this tool interactively.

To use ferm, one has to hack up a configuration file. In order to write this file, one has to know about iptables/ipchains commands. Ferm basically adds nesting syntax to iptables-rules. It seems it has the best support for IPv6 among these packages. This tool is very likely only useful in very specific cases, where you really have a need for the ferm-specific configuration file format.

"FireHOL is a language to express firewalling rules, not just a script that produces some kind of a firewall." FireHOL configuration files are shell scripts (but actually don't really look like that; it seems they're about as simple as one can get). FireHOL comes with firehol-wizard(8), which creates a configuration file you'll have to edit manually afterwards. It seems it has no support for IPv6. This is a pretty popular tool.

"Shorewall is not the easiest to use of the available iptables configuration tools but I believe that it is the most flexible and powerful." It "can handle complex and fast changing network environments." It needs multiple configuration files, even for simple setups. Seems only suitable for powerusers. (Likely there are a lot of these among Debian users: shorewall is very popular!)

For uruk, there is an example uruk configuration file. Uruk is extremely small: this is nice if you want to adapt the tool to your own needs, or want to be very sure it does what you want: it doesn't take long to check all the code manually. Of course, the small size comes with less functionality. However, if you have very specific needs, you can easily hook your own crafted iptables rules in the uruk framework. This is documented in the uruk manpages. However, beware: the major part of this section of this wiki-page was written by the uruk-author. If you feel this page could be more objective, please edit it!

Making the final decision between the 5 short-list ones is left as an exercise to the reader: it depends on your specific situation and needs. You could install them one after the other, and try them for yourself.

thanks

Thanks to Michael Hanke for making the first start of the IPtables frontends comparison. Thanks to Victor Julien for contributing some notes on the Vuurmuur package. Provided in part by the debian-firewall list.