This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shorewall start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /etc/shorewall/rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
NewerOlder