From 53042b062a04dae064d3e8ea2f0c3e932e5d2d60 Mon Sep 17 00:00:00 2001 From: host Date: Sat, 11 Apr 2026 13:58:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wg-easy-install.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 wg-easy-install.txt diff --git a/wg-easy-install.txt b/wg-easy-install.txt new file mode 100644 index 0000000..5c5d9be --- /dev/null +++ b/wg-easy-install.txt @@ -0,0 +1,36 @@ +WG-EASY INSTALLATION GUIDE (DOCKER RUN) + +1. Update system: apt update && apt upgrade -y + +2. Install Docker: apt install -y docker.io docker-compose systemctl + enable docker systemctl start docker + +3. Open ports (if firewall is enabled): ufw allow 51820/udp ufw allow + 51821/tcp ufw enable + +4. Run wg-easy container: + +docker run -d +–name=wg-easy +-e WG_HOST=193.124.57.125 +-e +PASSWORD_HASH=‘$2a12TXjvDufTG5P4ef6k7M0F..3z7NekUPoHnaNyHnY9XHrSIlxG5nPyO’ +-e WG_DEFAULT_DNS=1.1.1.1,1.0.0.1 +-v /etc/wireguard:/etc/wireguard +-p 51820:51820/udp +-p 51821:51821/tcp +–cap-add=NET_ADMIN +–cap-add=SYS_MODULE +–sysctl=“net.ipv4.conf.all.src_valid_mark=1” +–sysctl=“net.ipv4.ip_forward=1” +–restart unless-stopped +ghcr.io/wg-easy/wg-easy + +5. Check logs: docker logs -f wg-easy + +6. Open web interface: http://193.124.57.125:51821 + +7. If VPN has no internet: sysctl -w net.ipv4.ip_forward=1 iptables -t + nat -A POSTROUTING -o eth0 -j MASQUERADE + +Done.