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
On installation, we pretty much just need to click enter for the VPN configuration because the installer will provide default value for each parameter
Same goes with the Client Configuration
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
To overcome the issue, open the wireguard config and delete any IPV6 references
1
nano /etc/wireguard/wg0.conf
Then restart the service, and we should be good to go
1
2
systemctl restart wg-quick@wg0
systemctl status wg-quick@wg0
Now that we solved that, we can now copy the configuration file over to our client
Install WireGuard Client and import the config
Activate it, and we are connected
Now our traffic is tunneled to go out of the VPS’ public interface
On the Server, run “wg show” to see VPN connections