In recent versions of OPNSense, WireGuard is installed by default. In case it isn't, follow these instructions:
Go to System → Firmware → Plugins.
Search for WireGuard and install the one called os-wireguard-go.
Click on the + sign to install the plugin.
OVPN is a court-proven VPN service that offers secure internet without country or streaming restrictions, and where ads no longer track your every move.
Learn moreGo to VPN → WireGuard → Settings.
Click on the Instances tab
Click on the + Add button.
Enter the following information:
Click on Save.
Click on Peers. Click on + Add.
Enter the following information:
Click on Save.
Click on the General tab.
Make sure Enable WireGuard is checked.
Click on Apply.
Sign into the OPNsense web interface.
Navigate to System → Settings → General. Set the DNS servers to:
Make sure Allow DNS server list to be overridden by DHCP/PPP on WAN is not selected. However, Do not use the local DNS service as a nameserver for this system should be selected.
Click on Interfaces → Assignments.
Under + Assign a new interface, select wg0 (WireGuard - OVPN) and click on Add.
Click on the newly-created interface (named OPT1 by default).
Make the following changes:
Navigate to Firewall → NAT → Outbound. Click on Hybrid outbound NAT rule generation.
Click on Save. Click the orange plus icon under Manual rules, and then click Edit on the newly generated rule.
There are three modifications that need to be done. Everything else should be left as-is. The changes are:
Click on Save and Apply changes.
You should now be connected to OVPN and be able to browse the internet safely. To make sure everything was set up correctly, please check the dashboard to verify that you are connected.
In case you get connected to OVPN in the WireGuard application, but don't have any internet connectivity, please read the troubleshooting article for WireGuard.
If your configuration files don't get imported, read our article about adding your private key manually in the configuration files.