Skip to main content
WireGuard is a fast, minimal VPN protocol built into the Linux kernel. Running your own VPN on your Opus Host VPS is a great way to route your traffic through a server you control.

1. Install WireGuard

2. Enable IP forwarding

3. Generate server keys

4. Create the server config

Create /etc/wireguard/wg0.conf:
Replace eth0 with your real network interface if different. Check with ip -o link show.

5. Open the firewall

See Firewall for the full UFW setup.

6. Start WireGuard

7. Add a client

On the client device, install WireGuard and generate its keys:
Create a client config:
On the server, add the client as a peer:

8. Connect

Import the client config into the WireGuard app on your phone or desktop and toggle it on.
Generate multiple client configs (one per device) with different IPs (10.8.0.3, 10.8.0.4, …). Never reuse the same key pair on two devices.
Make sure the Acceptable Use Policy allows the VPN traffic you plan to route. Abusive traffic can get your VPS suspended.