GithubHelp home page GithubHelp logo

nangal / ferm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxkellermann/ferm

0.0 1.0 0.0 1.63 MB

ferm is a frontend for iptables

License: GNU General Public License v2.0

Makefile 4.43% Perl 95.57%

ferm's Introduction

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 a kernel supporting netfilter.

Run the make install script as root to install the package in its 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) man page 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 yourself out of remote machines! Use the interactive mode (--interactive, -i) often!

ferm's People

Contributors

apoikos avatar atonkyra avatar awelzel avatar benschweizer avatar bk2204 avatar brenard avatar call-cc avatar costasd avatar fd1e4020 avatar ivandeex avatar jbenden avatar jhendryuk avatar jsoref avatar krenair avatar l9i avatar marschap avatar maxkellermann avatar mxey avatar nepella avatar ogelpre avatar omenwild avatar paravoid avatar petercolberg avatar profitware avatar real-dam avatar seblu avatar shartge avatar sofar avatar verement avatar yrro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.