Skip to content

Instantly share code, notes, and snippets.

View lahaxearnaud's full-sized avatar
🎯
Focusing

LAHAXE Arnaud lahaxearnaud

🎯
Focusing
View GitHub Profile
shorewall start
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ $
# PORT PORT(S) DEST LIMIT GROUP
#SECTION ALL
#SECTION ESTABLISHED
#SECTION RELATED
SECTION NEW
# Drop Ping from the "bad" net zone.. and prevent your log from being flooded..
Ping(DROP) net $FW
nano /etc/shorewall/rules
apt-get install shorewall shorewall-doc
# on va dans le HOME
cd ~
# Copie de la doc one-interface
cp -r /usr/share/doc/shorewall/examples/one-interface ~
#on va dans la doc one-interface
cd one-interface/
# on met en place les configs de base
cp interfaces policy zones rules /etc/shorewall/