Update [July 19, 2019] The Wireguard client for Windows has been released. Please use that instead of Tunsafe. You can download it here - www.wireguard....
It's very easy to set up. Create the config files exactly as shown in the video for Tunsafe, and then import that config into the Wireguard client instead of Tunsafe.
---------------------------------------
A guide that shows you how to setup Wireguard VPN on Linux and Windows 10. You'll learn how to forward all your internet traffic across the Wireguard VPN tunnel, as well as setting up a point to point link.
If you have any questions, leave a comment and I'll try and answer.
Links:
1. Wireguard website: www.wireguard....
2. Tunsafe: tunsafe.com/ [Update -- Use official Windows Client from the link above instead of Tunsafe]
Commands:
1. Add Wireguard Repo:
add-apt-repository ppa:wireguard/wireguard
2. Setup keys:
wg genkey | tee privatekey | wg pubkey > publickkey
3. Check public IP:
dig +short myip.opendns.com @resolver1.opendns.com
4. Iptables commands (use the correct interface on your machine - mine is ens3):
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
29 сен 2024