Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
shorewall [Le 13/07/2007, 12:05] – placisfos | shorewall [Le 20/03/2011, 22:52] (Version actuelle) – ancienne révision restaurée YoBoY | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | {{tag> | ||
+ | ---- | ||
+ | |||
+ | ====== Shorewall ====== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Qu' | ||
+ | |||
+ | Le pare-feu " | ||
+ | |||
+ | Shorewall ne tourne pas en tâche de fond comme dæmon. Une fois qu'il a configuré Netfilter, son travail est fini. Il peut être utilisé n' | ||
+ | |||
+ | Shorewall n'est pas l' | ||
+ | |||
+ | |||
+ | # TYPE OF OPTIONS IN ZONE OUT | ||
+ | # OPTIONS OPTIONS | ||
+ | fw firewall | ||
+ | # LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE | ||
+ | |||
+ | |||
+ | |||
+ | # TYPE OF OPTIONS IN ZONE OUT | ||
+ | # OPTIONS OPTIONS | ||
+ | fw firewall | ||
+ | # LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE | ||
+ | | ||
+ | ~ | ||
+ | ~ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Permet de définir à quoi correspondent nos 2 interfaces réseaux eth0 et eth1. | ||
+ | |||
+ | < | ||
+ | #ZONE | ||
+ | net | ||
+ | loc | ||
+ | #LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== / | ||
+ | |||
+ | Permet d' | ||
+ | |||
+ | < | ||
+ | # Policies for traffic originating from the local LAN (loc) | ||
+ | # | ||
+ | # If you want to force clients to access the Internet via a proxy server | ||
+ | # on your firewall, change the loc to net policy to REJECT info. | ||
+ | loc | ||
+ | loc | ||
+ | loc | ||
+ | |||
+ | # | ||
+ | # Policies for traffic originating from the firewall ($FW) | ||
+ | # | ||
+ | # If you want open access to the Internet from your firewall, change the | ||
+ | # $FW to net policy to ACCEPT and remove the ' | ||
+ | # This may be useful if you run a proxy server on the firewall. | ||
+ | $FW | ||
+ | $FW | ||
+ | $FW | ||
+ | |||
+ | # | ||
+ | # Policies for traffic originating from the Internet zone (net) | ||
+ | # | ||
+ | net | ||
+ | net | ||
+ | net | ||
+ | |||
+ | # THE FOLLOWING POLICY MUST BE LAST | ||
+ | all | ||
+ | |||
+ | #LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | < | ||
+ | # AMULE | ||
+ | ACCEPT net: | ||
+ | ACCEPT net fw tcp 12500 | ||
+ | ACCEPT net fw tcp 22 (SSH) | ||
+ | ACCEPT net fw tcp 21 (FTP) | ||
+ | ACCEPT net: | ||
+ | ACCEPT net: 192.168.1.11/ | ||
+ | ACCEPT net: | ||
+ | ACCEPT net: 192.168.1.11/ | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Permet le routage sur les interfaces défini dans ce fichier lorsque shorewall n'est pas démarré. | ||
+ | |||
+ | < | ||
+ | # | ||
+ | eth1 - | ||
+ | #LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE | ||
+ | </ | ||
+ | |||
+ | Par défaut shorewall ne peut pas démarrer tant que vous n'avez pas modifié le fichier / | ||
+ | |||
+ | < | ||
+ | startup=0 | ||
+ | </ | ||
+ | |||
+ | par | ||
+ | |||
+ | < | ||
+ | startup=1 | ||
+ | </ | ||
+ | |||
+ | Il faut également s' | ||
+ | |||
+ | Vous pouvez maintenant démarrer shorewall : | ||
+ | |||
+ | < | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Liens ===== | ||
+ | |||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | // |