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