# Debian Light Firewall ## Introduction Ce firewall léger est inspiré de celui fournit par [Nicolargo sur cette page](http://blog.nicolargo.com/2013/03/mes-5-premieres-minutes-sur-un-serveur-debian.html). ## Installation ### Makefile L'installation se fait par un makefile: ```bash make install ``` #### Configuration Editer le fichier `/etc/firewall/firewall.conf` et tester votre configuration #### Test du firewall Le test se fait en tapant la commande suivante: ```bash $ sudo lightwall test ``` #### Enable the firewall Once tested (you should at least be able to open a new ssh session when firewall is active with new configuration), you can enable and start it. ```bash sudo systemctl enable firewall.service sudo systemctl start firewall.service ``` #### Stopping firewall Stopping will drop all connections (which is not really cool) So to really clear all rules use (and open all in/out traffic): ```bash sudo service firewall clear ``` And to really drop all rules use (and close all in/out traffic): ```bash sudo service firewall dropall ```