vernon.wenberg.net

Wireguard Installation

  1. Use Angristan's automated WireGuard installation.
  2. The install will create a client .conf file in the directory you ran the script.
  3. Import the .conf file into your client.
  4. Client install files can be downloaded from the Wireguard site.
  5. 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
QR Code: URL of current page
QR Code: URL of current page Wireguard Installation (generated for current page)
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International