• Use Angristan’s automated WireGuard installation.
  • The install will create a client .conf file in the directory you ran the script.
  • Import the .conf file into your client.
  • Client install files can be downloaded from the Wireguard site.
  • To enable access to your local network while connected through the VPN, add the following two lines to the end of the [Interface] section of /etc/wireguard/wg0.conf. Replace eth0 with the interface that your Wireguard is listening on.
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE