Difference between revisions of "Firewalls/fr"

Created page with "Utiliser un pare-feu local est toujours une bonne pratique. Même si vous utiliser un pare-feu réseau, votre pare-feu local vous protège des menaces internes à votre réseau."
(Created page with "Pare-feux")
 
(Created page with "Utiliser un pare-feu local est toujours une bonne pratique. Même si vous utiliser un pare-feu réseau, votre pare-feu local vous protège des menaces internes à votre réseau.")
 
Line 2: Line 2:
__TOC__
__TOC__


=Overview=
=Aperçu=


Running a local firewall is almost always a good practice. Even when you are behind a network firewall, a local firewall protects you from threats on the inside of your network.
Utiliser un pare-feu local est toujours une bonne pratique. Même si vous utiliser un pare-feu réseau, votre pare-feu local vous protège des menaces internes à votre réseau.


=UFW=  
=UFW=  
Line 10: Line 10:
UFW stands for Uncomplicated FireWall, and is a program for managing a netfilter firewall. It provides a command line interface and aims to be uncomplicated and easy to use.  UFW is far simpler than iptables and a good place to start unless you have very specialized needs.
UFW stands for Uncomplicated FireWall, and is a program for managing a netfilter firewall. It provides a command line interface and aims to be uncomplicated and easy to use.  UFW is far simpler than iptables and a good place to start unless you have very specialized needs.


==Installing UFW==
==Installer UFW==


You can install the {{ic|ufw}} package using you favorite package manager or the command:
You can install the {{ic|ufw}} package using you favorite package manager or the command:
Line 21: Line 21:
{{warning|Don't enable both iptables.service and ufw.service}}
{{warning|Don't enable both iptables.service and ufw.service}}


==Adding Rules==
==Ajout d'une règle==


To view the current configuration you can use the command {{ic|ufw status}}. Here is what it looks like in a new install:
Pour afficher la configuration actuelle, vous pouvez utiliser la commande suivante : {{ic|ufw status}}. Voici à quoi cela ressemble dans une nouvelle installation :


{{UserCmdOutput|command=sudo ufw status verbose|result=
{{UserCmdOutput|command=sudo ufw status verbose|result=
Line 32: Line 32:
}}
}}


This indicates that it will block all incoming traffic and allow all outgoing traffic. This is a good starting point for most desktop systems. However, often we will want to allow some incoming traffic. This can be done with the command {{ic|ufw allow}}. For example, if we want to allow incoming ssh traffic so we can connect to the machine from other machines on the network we could use the command:
Cela indique que le trafic entrant sera bloqué et que le trafic sortant sera autorisé. C'est un bon point de départ pour la plupart des systèmes de bureau. Cependant, il est souvent nécessaire d'autoriser une partie du trafic entrant. Pour ce faire, utilisez la commande suivante : {{ic|ufw allow}}.Par exemple, si nous voulons autoriser le trafic ssh entrant afin de pouvoir nous connecter à la machine à partir d'autres machines du réseau, nous pouvons utiliser la commande :
{{UserCmd|command=sudo ufw allow ssh}}
{{UserCmd|command=sudo ufw allow ssh}}


If we wanted to also tcp connections to a local webserver on a non-standard https port, 8443.  We could use the command:
Si nous voulions également établir des connexions TCP vers un serveur Web local sur un port https 8443 (ce n'est pas le port standard pour https), nous pourrions utiliser la commande :
{{UserCmd|command=sudo ufw allow in 8443/tcp}}
{{UserCmd|command=sudo ufw allow in 8443/tcp}}


{{tip|When you don't specify "in" or "out", "in" is assumed}}
{{tip|When you don't specify "in" or "out", "in" is assumed}}
12

edits