Categories
Guides NAT VPS

Setup Wireguard on a NAT VPS

This post covers WireGuard VPN installation on NAT VPS.

We have a 256MB NAT VPS. Steps should also work with a 128MB instance. You’d need to know your public IPv4 & assigned ports beforehand.

We will be configuring WireGuard VPN Server using Nyr’s wireguard-install script on Debian 10.

This will let you set up your own VPN server in no more than a minute, even if you haven’t used WireGuard before. It has been designed to be as unobtrusive and universal as possible.

Note: Replace [Public-IP] with your public IPv4 address, [Assigned-IPv6] with your public IPv6 address & [port] with the port you’d be using.

STEP 1: Reinstall OS to Debian 10

Log in to the control panel & do a fresh Debian 10 installation.

VPS Control Panel Interface

STEP 2: Enable Tun/Tap and PPP

You can skip this step if you’re using a KVM NAT VPS.
a. Go to Settings > VPS Configuration > enable Tun/Tap and PPP .
b. Click Submit.

Stop & start the VPS for changes to take effect.

STEP 3: SSH into your VPS

You can SSH using your dedicated IPv6 or shared IPv4 address.

Update:

sudo apt update -y

Use Nyr’s wireguard script:

wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh

a. The script should detect your public IPv4 address automatically.
b. Enter the port to be used for wireguard. You can use any of your assigned IPv4 ports.
c. Enter any name for your client config.
d. Select any DNS server, we will use Adguard as it blocks all ads automatically.
e. Enter Y to enable automatic updates.

f. Press any key to finalize installation.
g. Wireguard configuration will be saved. You can also scan the generated QR code using the wireguard client.

That’s it! Your own private Wireguard VPN Server is ready.

This article was made using WebHorizon NAT VPS – starting $7 per year.

Please consult your provider for exact steps.