Files
wg-easy/wg-easy-install.md
T

37 lines
970 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.