diff --git a/HowtoWireGuard.md b/HowtoWireGuard.md index d3fc2f64..7d97aa60 100644 --- a/HowtoWireGuard.md +++ b/HowtoWireGuard.md @@ -39,17 +39,13 @@ WireGuard est également disponibles sous Android, macOS, iOS, Windows, et de no Autoriser le routage via `sysctl` : -Sous Debian : - ~~~ +## Sous Debian # echo "net.ipv4.conf.all.forwarding = 1" >> /etc/sysctl.d/wireguard.conf # echo "net.ipv6.conf.all.forwarding = 1" >> /etc/sysctl.d/wireguard.conf # sysctl -p /etc/sysctl.d/wireguard.conf -~~~ -Sous OpenBSD : - -~~~ +## Sous OpenBSD # echo "net.inet.ip.forwarding=1" >> /etc/sysctl.conf # echo "net.inet6.ip6.forwarding=1" >> /etc/sysctl.conf # sysctl -p /etc/sysctl.conf @@ -105,7 +101,11 @@ interface: wg0 Enfin, on peut activer le démarrage automatique de notre interface `wg0` : ~~~ +## Sous Debian # systemctl enable wg-quick@wg0.service + +## Sous OpenBSD +# echo "!/usr/local/bin/wg-quick up wg0" > /etc/hostname.em0 ~~~ ## Déclaration des clients côté serveur