informatique:reseau:shorewall
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
informatique:reseau:shorewall [12/03/2021 13:07] – créée cyrille | informatique:reseau:shorewall [12/03/2021 18:02] (Version actuelle) – cyrille | ||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
Exemples de fichiers dans ''/ | Exemples de fichiers dans ''/ | ||
+ | |||
+ | < | ||
+ | $ cat / | ||
+ | # | ||
+ | # Shorewall -- / | ||
+ | # | ||
+ | # For information about entries in this file, type "man shorewall-interfaces" | ||
+ | # | ||
+ | # The manpage is also online at | ||
+ | # http:// | ||
+ | # | ||
+ | ?FORMAT 2 | ||
+ | ############################################################################### | ||
+ | # | ||
+ | |||
+ | net eth0 dhcp, | ||
+ | lan eth1 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ cat / | ||
+ | # Shorewall -- / | ||
+ | # | ||
+ | # For information about this file, type "man shorewall-zones" | ||
+ | # | ||
+ | # The manpage is also online at | ||
+ | # http:// | ||
+ | # | ||
+ | ############################################################################### | ||
+ | # | ||
+ | |||
+ | fw firewall | ||
+ | net ipv4 | ||
+ | lan ipv4 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ cat / | ||
+ | # | ||
+ | # Shorewall -- / | ||
+ | # | ||
+ | # For information about entries in this file, type "man shorewall-policy" | ||
+ | # | ||
+ | # The manpage is also online at | ||
+ | # http:// | ||
+ | # | ||
+ | ############################################################################### | ||
+ | # | ||
+ | |||
+ | $FW net ACCEPT | ||
+ | net all DROP info | ||
+ | lan all ACCEPT info | ||
+ | # The FOLLOWING POLICY MUST BE LAST | ||
+ | all all REJECT info | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ cat / | ||
+ | # | ||
+ | # Shorewall -- / | ||
+ | # | ||
+ | # For information on the settings in this file, type "man shorewall-rules" | ||
+ | # | ||
+ | # The manpage is also online at | ||
+ | # http:// | ||
+ | # | ||
+ | ############################################################################################################################################################## | ||
+ | # | ||
+ | |||
+ | ?SECTION ALL | ||
+ | ?SECTION ESTABLISHED | ||
+ | ?SECTION RELATED | ||
+ | ?SECTION INVALID | ||
+ | ?SECTION UNTRACKED | ||
+ | ?SECTION NEW | ||
+ | |||
+ | ACCEPT net $FW icmp 8 | ||
+ | ACCEPT net $FW tcp 22 | ||
+ | ACCEPT net $FW tcp 80 | ||
+ | ACCEPT net $FW tcp 443 | ||
+ | </ | ||
informatique/reseau/shorewall.1615550832.txt.gz · Dernière modification : 12/03/2021 13:07 de cyrille