Post

Wireguard VPN

WireGuard is a fast, modern VPN that creates secure point-to-point tunnels using simple configuration and strong cryptography. When set up on a Linux VPS, it can securely tunnel traffic from a client device through the VPS, masking the client’s IP and routing its internet activity via the VPS.


Installation

Download and run the installer from this Github Repository

1
2
3
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh
./wireguard-install.sh

x


On installation, we pretty much just need to click enter for the VPN configuration because the installer will provide default value for each parameter

x


Same goes with the Client Configuration

x


After that, we should get the configuration file that we can scan or get directly on the root directory.
Notice there’s an error on this installation, thats because my VPS doesn’t support IPV6

x


To overcome the issue, open the wireguard config and delete any IPV6 references

1
nano /etc/wireguard/wg0.conf

x


Then restart the service, and we should be good to go

1
2
systemctl restart wg-quick@wg0
systemctl status wg-quick@wg0

x


Now that we solved that, we can now copy the configuration file over to our client

x


Install WireGuard Client and import the config

x


Activate it, and we are connected

x


Now our traffic is tunneled to go out of the VPS’ public interface

x


On the Server, run “wg show” to see VPN connections

x


This post is licensed under CC BY 4.0 by the author.