Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| shorewall [Le 13/07/2007, 11:32] – créée placisfos | shorewall [Le 11/09/2022, 10:35] (Version actuelle) – Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) moths-art | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ===== Shorewall ===== | + | {{tag> |
| - | Shorewall permet d' | + | ---- |
| - | Installation | + | ====== 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 apt-get install | + | sudo / |
| </ | </ | ||
| - | La configuration de shorewall se fait dans /etc/ | + | |
| + | ===== Liens ===== | ||
| + | |||
| + | * http://www.shorewall.net/ | ||
| + | * http://www.shorewall.net/two-interface_fr.html | ||
| + | |||
| + | ---- | ||
| + | |||
| + | //Contributeurs principaux : [[: | ||
