doc:wireguard
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 | ||
| doc:wireguard [2026/10/10 10:27] – [Configuration Client] marc | doc:wireguard [2026/10/10 19:51] (Version actuelle) – [Configuration Firewall] marc | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| = Wireguard = | = Wireguard = | ||
| - | Wireguard est un logiciel de VPN. configuration | + | Wireguard est un logiciel de VPN. Configuration |
| == Configuration Serveur == | == Configuration Serveur == | ||
| Ligne 61: | Ligne 61: | ||
| [root@localhost ~]# wg-quick up wg0 | [root@localhost ~]# wg-quick up wg0 | ||
| [root@localhost ~]# wg-wuick down wg0 | [root@localhost ~]# wg-wuick down wg0 | ||
| + | |||
| + | Pour permettre au serveur de se lancer tout seul au démarrage du serveur utilisez le commande suivante : | ||
| + | |||
| + | [root@localhost ~]# systemctl enable wg-quick@wg0.service | ||
| Ligne 97: | Ligne 101: | ||
| < | < | ||
| - | -A ufw-before-forward -s 192.168.100.0/24 -j ACCEPT | + | -A ufw-before-forward -s 192.168.0.0/24 -j ACCEPT |
| - | -A ufw-before-forward -d 192.168.100.0/24 -j ACCEPT | + | -A ufw-before-forward -d 192.168.0.0/24 -j ACCEPT |
| -A ufw-before-forward -s 192.168.110.0/ | -A ufw-before-forward -s 192.168.110.0/ | ||
| -A ufw-before-forward -d 192.168.110.0/ | -A ufw-before-forward -d 192.168.110.0/ | ||
| Ligne 144: | Ligne 148: | ||
| [root@localhost / | [root@localhost / | ||
| + | |||
| + | Pour démarrer et arreter Wireguard on utilisera les commandes suivantes : | ||
| + | |||
| + | [root@localhost ~]# wg-quick up wg0 | ||
| + | [root@localhost ~]# wg-wuick down wg0 | ||
| + | |||
| + | Ajoutez un alias dans le .bashrc de root si besoin. | ||
| <note important> | <note important> | ||
doc/wireguard.1791628036.txt.gz · Dernière modification : de marc
