descriptionferm is a tool to maintain complex firewalls, without having the trouble to rewrite the complex rules over and over again.
homepage URLhttp://ferm.foo-projects.org/
ownermax@duempel.org
last changeThu, 9 Nov 2017 07:50:06 +0000 (9 08:50 +0100)
content tags
add:
README.rst
ferm README
===========


Description
-----------

ferm is a frontend for ``iptables``. It reads the rules from a structured
configuration file and calls iptables(8) to insert them into the
running kernel.

ferm's goal is to make firewall rules easy to write and easy to
read. It tries to reduce the tedious task of writing down rules, thus
enabling the firewall administrator to spend more time on developing
good rules than the proper implementation of the rule.

To achieve this, ferm uses a simple but powerful configuration
language, which allows variables, functions, arrays, blocks. It also
allows you to include other files, allowing you to create libraries of
commonly used structures and functions.

ferm, pronounced "firm", stands for "For Easy Rule Making".


Installing ferm
---------------

  make install

The package does not need to be compiled, just make sure you have perl
(which is present in any base linux system) and ``iptables`` (including
``iptables-save`` and ``iptables-restore``), and the a kernel supporting
netfilter.

Run the make install install script as root to install the package in
it's best location, so it can be reached from the command line when
called. The manual page will also be installed.

That's all!


Uninstalling ferm
-----------------

  make uninstall

Ferm can now be quickly removed from the system by issuing a "make
uninstall" command (as root, of course). This will not remove any
configuration files of course!


Getting started
---------------

The ferm(1) manpage provides extensive documentation about the ferm
syntax.  To get started, try one of the example files, and modify it
for your needs.

If your machine is already firewalled and you wish to switch to ferm,
the ``import-ferm`` script comes handy.  It converts the current
firewall rules to a ferm configuration file:

  import-ferm >/etc/ferm/ferm.conf

After that, let ferm install the new ruleset:

  ferm /etc/ferm/ferm.conf

Be careful, don't lock youself out of remote machines!  Use the
interactive mode (``--interactive``, ``-i``) often!
shortlog
8 days ago Max Kellermannfix previous NEWS commit, oopsmaster
8 days ago Max Kellermannupdate NEWS
8 days ago Max KellermannMerge branch 'patch-1' of git://github.com/NomAnor...
2017-10-28 AndréUpdate parameters of the time module
2017-09-29 Jason HendryMaking chain name length validation an error not a...
2017-09-29 Jason HendryAdding chain name length validation to chains, subchain...
2017-08-24 Kiss Gabor... Allow variable interpolation in error messages
2017-08-24 Max KellermannMerge branch 'fix-ipv4options' of git://github.com...
2017-08-24 Max Kellermannincrement version number to 2.4.2
2017-08-16 Joseph BendenCorrected ipv4options test
2017-08-16 Joseph BendenFixed ipv4options against newer iptables
2017-08-01 Max Kellermannrelease v2.4.1v2.4.1
2017-08-01 Max Kellermannrecent: "--mask" has a value
2017-04-21 Max Kellermannadd Travis-CI file
2017-04-21 Max KellermannREADME: convert to reStructuredText
2017-04-18 Max KellermannMerge branch 'fix/synproxy' of git://github.com/apoikos...
...
tags
3 months ago v2.4.1 release v2.4.1
7 months ago v2.4 release v2.4
10 months ago v2.3.1 release v2.3.1
19 months ago v2.3 release v2.3
4 years ago v2.2
4 years ago v2.1.2
5 years ago v2.1.1
6 years ago v2.1
6 years ago v2.0.9
7 years ago v2.0.8
7 years ago v2.0.7
8 years ago v2.0.6
8 years ago v2.0.5
8 years ago v2.0.4
9 years ago v2.0.3
9 years ago v2.0.2
...
heads
8 days ago master
9 years ago ferm-1.3.x
10 years ago ferm-1.2.x
11 years ago ferm-1.0.x