From f4cdf96597615b2f7f59e3be67887be337972ff6 Mon Sep 17 00:00:00 2001 From: Danila Vershinin Date: Sun, 18 Jul 2021 16:21:19 +0300 Subject: [PATCH] Update README.md Co-authored-by: jaminmc --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c1c40c..2e8ee30 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,9 @@ sudo dnf config-manager --enable elrepo sudo dnf install kmod-wireguard wireguard-tools ``` -* Create file `/etc/wireguard/wg0.conf` with contents of the client config generated by the script (copy paste from server). +* Create file in `/etc/wireguard/` with the name you want the network interface to be with extension of `.conf`. IE: `/etc/wireguard/wg0.conf`, then put in the contents of the client config generated by the script (copy paste from server). Also run `sudo chown -R root. /etc/wireguard ; chmod -R 600 /etc/wireguard` for proper permissions. + +To enable the connection run `sudo wg-quick up [Interface name]`, like `sudo wg-quick up wg0` and to disable `wg-quick down [Interface name]` * Connect: `systemctl start wg-quick@wg0.service`