From e0c81e302ab5098569ff73a695c37a9b666f28e4 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 13 Apr 2023 00:52:57 +0200 Subject: [PATCH] vpn: wireguard linux client usage guide --- wiki/vpn.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/wiki/vpn.md b/wiki/vpn.md index 38d2621..ee55b5b 100644 --- a/wiki/vpn.md +++ b/wiki/vpn.md @@ -59,3 +59,22 @@ WireGuard clients can be found for many devices. For Android for example there is [Wireguard for Android in the F-Droid store](https://f-droid.org/de/packages/com.wireguard.android/). For most linux distributions there is a package called `wireguard`. + +### Usage (WG) + +Wireguard clients connect to servers by using a `.conf` file. +For mobile devices often times a QR-code can also be used. + +In Linux based operating systems the `.conf` can be placed at +the path `/etc/wireguard/wg0.conf`. +Afterwards wireguard can be started and stopped by running the following +commands. + +``` +wg-quick up wg0 +wg-quick down wg0 +``` + +When using multiple `.conf` files the number behind `wg` can be incremented. +When starting and stopping wireguard with `wg-quick` the corresponding number +should be used.