This guide was created by a community member and reviewed by us. Firmware and router interfaces may change over time, so some steps may differ depending on your device or version.
Prerequisites:
- OPNsense version must be 26.1 or newer
- You will need a WireGuard config for the location you selected in the WireGuard generator
Setup
Open OPNsense at
192.168.1.1(by default)Log in (username is
rootand password isopnsenseby default)Go to VPN → WireGuard → Peers
Add a Peer
Enter the name of your WireGuard configuration in the Name
- Example:
xeovo-fi
- Example:
Open your WireGuard config file
- Example:
xeovo-fi.conf
- Example:
Copy and paste the PublicKey into the Public Key
- Example:
xfh8/RmqPebvYvYmO89L9mR6X0Ff+bU4aE8Vb3XWlzA=
- Example:
Copy and paste the AllowedIPs into the Allowed IPs
0.0.0.0/0,::/0
Copy and paste the Endpoint without the port into the Endpoint address
- Example:
fi.gw.xeovo.com
- Example:
Copy and paste only the port from the Endpoint into the Endpoint port
- Example:
51820
- Example:
Save the Peer
Go to Instances
Add an Instance
Click Advanced Mode
Enter the name of your WireGuard configuration in the Name
- Example:
xeovo-fi
- Example:
Copy and paste the PrivateKey into the Private Key
- Example:
gA3Xb8mR9KeVbYv2Om89L9mR6X0Ff+bU4aE8Vb3XWlzA=
- Example:
Enter the same port as in the Endpoint port into the Listen Port
- Example:
51820
- Example:
Copy and paste the DNS into the DNS servers
- Example:
10.0.0.20,fd64:e20:68a2::20
- Example:
Copy and paste the Address into the Tunnel Address
- Example:
10.134.162.183,fd64:e20:68a3::6:a2b7
- Example:
In Peers, select the previously created Peer
- Example:
xeovo-fi
- Example:
Save the Instance
Check the Enable WireGuard box, then click Apply
Go to VPN → WireGuard → Status
Connection status must be OK — check the Handshake Age, it should show a value
Go to Firewall → NAT → Outbound
Select the Hybrid outbound NAT rule generation mode and click Save
Add a Rule
In Interface, select WireGuard (Group)
In Source address, select LAN net
In Translation / target, select Interface Address
Save the Rule
Apply changes
Verify VPN connection, visit DoesMyVPN.work