Systemd integration of custom firewall rules that can be applied at boot time.
Go to file
Adrien Marquès 96bc69fd6e update readme: link to example script 2019-08-03 11:54:41 +02:00
opt/firewall first commit: import form prod 2019-08-03 11:40:40 +02:00
usr/lib/systemd/system first commit: import form prod 2019-08-03 11:40:40 +02:00
LICENSE first commit: import form prod 2019-08-03 11:40:40 +02:00
README.md update readme: link to example script 2019-08-03 11:54:41 +02:00
install.sh add install script | add minimal readme 2019-08-03 11:52:41 +02:00

README.md

Firewall integration in systemd

Simple tool to load your iptables rules at boot time. It integrates with systemd as a multi instance service.

1/ Install the tool

Launch the ./install.sh script as root.

2/ Define your rules

Place a bash script defining your iptables rules into /opt/firewall/<config_name>.fw where <config_name> is an arbitrary name that makes sense to you.

An example script is available here.

3/ Enable at boot

To enable your rules to load at boot time, simply run systemctl enable firewall@<config_name>.service. If you want to execute your script explicitly run systemctl start firewall@<config_name>.service.