flex-fw is a small and fast console frontend to iptables - tool for configuring Linux kernel firewall - with a syntax similar to pf, ipf or ipfw from BSD systems.



The main goal was making a lightweight tool to manage tons of iptables rules on multiple Linux hosts with a similar configuration

Latest news


The release 0.3.1 has been issued.



To install flex-fw follow the next instructions:

  1. Check your OS is supported by flex-fw. The supported OSes are: Debian/Ubuntu, CentOS/RedHat, Slackware.
  2. Download an appropriated package for your OS.
  3. Install package by using standard package manager from your distro.
  4. Stop previously used software for filtering of network traffic if you have it
  5. Look into /etc/flex-fw/services directory and add desired services with required rules
  6. Set sequence of running for your custom services in the /etc/flex-fw/rc.d directory
  7. Set the default policy for various iptables chains in the /etc/flex-fw/policy directory
  8. Start flex-fw
    # /etc/init.d/flex-fw start


If you would like to donate for this project, feel free to contact me for details. You can also send Bitcoins (QR) or Litecoins (QR).

Copyright (C) 2014 Vitalii Druzhinin
aka VitalShell