From 0c9477cd060f25ce09d64e2244f9a1d846fa919d Mon Sep 17 00:00:00 2001 From: Arya K <73596856+gi-yt@users.noreply.github.com> Date: Tue, 7 Jun 2022 15:21:51 +0530 Subject: [PATCH] Add a page about installing without docker --- Using-wg-easy-without-docker.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Using-wg-easy-without-docker.md diff --git a/Using-wg-easy-without-docker.md b/Using-wg-easy-without-docker.md new file mode 100644 index 0000000..744fd2b --- /dev/null +++ b/Using-wg-easy-without-docker.md @@ -0,0 +1,32 @@ +If you don't want to use docker, then install wireguard, nodejs and npm from your package manager and then, run the following. +
+echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf +echo net.ipv4.conf.all.src_valid_mark=1 >> /etc/sysctl.conf +sysctl -p +git clone https://github.com/WeeJeWel/wg-easy +cd wg-easy +mv src /app +cd /app +npm ci --production +cp node_modules .. +ufw allow 51821/tcp # (webui) Only for users of the UFW firewall +ufw allow 51820/udp # (wireguard listening port) Only for users of the UFW firewall +cd - +wget -O /etc/systemd/system/wg-easy.service https://envs.sh/QQK.txt +vim /etc/systemd/system/wg-easy.service # Replace everything that is marked as 'REPLACEME' and tweak it to your liking +systemctl daemon-reload +systemctl enable --now wg-easy.service +systemctl start wg-easy.service ++ +To upgrade do the following +
+git clone https://github.com/WeeJeWel/wg-easy # do this if you dont have the repository cloned aldready +cd wg-easy +git pull +rm -rf /app /node_modules +mv src /app +cd /app +npm ci --production +cp node_modules .. +\ No newline at end of file