How Can We Help?
Setting up WireGuard® VPNUK on MikroTik Routers
WireGuard® configuration download
Please login using the VPN login username and password from the vpn account you would like to configure.
Click Here to download your WireGuard® configuration file, which is compatible with all devices.
IMPORTANT NOTES: A WireGuard® connection is currently only compatible with our Dedicated IP accounts. Each configuration file is generated automatically, twice per hour, the process can take up to 20 minutes to complete, it can therefore sometimes take up to 1 hour for a new configuration file to be created on new accounts. If you are a new user please allow the system time to generate your configuration file.
1: Open your configuration file.
- Click Here to download the WireGuard configuration file (
.conf
). - Open the
.conf
file in Notepad or a text editor and take note of the following details:- Private Key
- Public Key
- Allowed IPs
- Endpoint (VPNUK Server Address)
- Port
2. Enable WireGuard on MikroTik Router
- Log in to your MikroTik router via WinBox or SSH.
- Navigate to Interfaces.
- Click Add (+) > WireGuard.
- Enter the following details:
- Name:
wg-vpn
- Listen Port:
59851
- Private Key: (Paste your Private Key from the WireGuard
.conf
file)
- Name:
- Click OK.
3. Add Peer (VPNUK Server)
- Go to Interfaces > WireGuard.
- Click Peers > Add (+).
- Enter the following details:
- Interface:
wg-vpn
- Public Key: (Paste the Public Key from your
.conf
file) - Allowed Address:
0.0.0.0/0
- Endpoint: (Enter the VPNUK server address from your
.conf
file) - Port:
59851
- Interface:
- Click OK.
4. Configure IP Address for WireGuard Interface
- Go to IP > Addresses.
- Click Add (+).
- Enter the following:
- Address: (Use the
Address
provided in your WireGuard.conf
file) - Interface:
wg-vpn
- Address: (Use the
- Click OK.
5. Configure IP Address for WireGuard Interface
- Go to IP > Routes.
- Click Add (+).
- Enter the following:
- Dst. Address:
0.0.0.0/0
- Gateway:
wg-vpn
- Dst. Address:
- Click OK.
6. Configure Firewall & NAT Rules
- Go to IP > Firewall > NAT.
- Click Add (+) and enter the following:
- Chain:
srcnat
- Out Interface:
wg-vpn
- Action:
masquerade
- Chain:
- Click OK.
7. Connect & Verify VPN Status
- Go to Interfaces and ensure
wg-vpn
is running. - Go to Log to check the WireGuard handshake.
- To confirm the connection, check your new IP address by visiting: https://www.ipaddress.com/
Your IP should now match your unique VPNUK IP.