[Deprecated and will be useless with version 15.0.0] Using WireGuard Easy without Docker
Philip H. edited this page 2024-09-09 16:41:19 +02:00

If you don't want to use docker, then install wireguard, nodejs 20 or above 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/wg-easy/wg-easy
cd wg-easy
git checkout production
mv src /app
cd /app
npm ci --omit=dev
cp -r 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 -
curl -Lo /etc/systemd/system/wg-easy.service https://raw.githubusercontent.com/wg-easy/wg-easy/production/wg-easy.service
nano /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

To upgrade do the following

git clone https://github.com/wg-easy/wg-easy # do this if you dont have the repository cloned aldready
cd wg-easy
git checkout production
git pull
rm -rf /app /node_modules
mv src /app
cd /app
npm ci --omit=dev
cp node_modules ..