Routers
OPNsense OPNsense Jun 9, 2026
Posted Tue, Jun 9, 2026 6:06 AM
Edited Tue, Jun 9, 2026 6:40 AM

How to setup OpenVPN on OPNsense

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:

  1. OPNsense version must be 26.1 or later
  2. You will need an OpenVPN config for the location you selected in the OpenVPN generator

Setup

  1. Open OPNsense at 192.168.1.1 (by default)

  2. Log In (username is root and password is opnsense by default)

  3. Go to System → Trust → Authorities

  4. Add a new Certificate Authority

  5. In Method, select Import an existing Certificate Authority

  6. Enter a name in Description

    • Example: xeovo-ca
  7. Open your OpenVPN config file

    • Example: xeovo-fi-udp.ovpn
  8. Copy and paste the contents between <ca> and </ca> tags (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines) into Certificate data

  9. Save the Certificate Authority

  10. Go to VPN → OpenVPN → Instances

  11. Add an Instance

  12. Click Advanced Mode

  13. Set Role to Client

  14. Enter a name in Description

    • Example: xeovo-fi
  15. Check the Enabled box

  16. Set Protocol to the protocol specified in your config file

    • Example: UDP
  17. Enter the port from your config file in Port number

    • Example: 1196
  18. Enter the server address from your config file in Remote

    • Example: fi.gw.xeovo.com
  19. Check the Verify Remote Certificate box

  20. In Certificate Authority, select the previously created Certificate Authority

    • Example: xeovo-ca
  21. Enter your Xeovo username in Username

  22. Enter your Xeovo password in Password

  23. Save the Instance

  24. Go to VPN → OpenVPN → Connection Status

  25. Connection status must show connected

  26. Go to Firewall → NAT → Outbound

  27. Select the Hybrid outbound NAT rule generation mode and click Save

  28. Add a Rule

  29. In Interface, select OpenVPN

  30. In Source address, select LAN net

  31. In Translation / target, select Interface Address

  32. Save the Rule

  33. Apply changes

  34. Verify VPN connection, visit DoesMyVPN.work

Disconnecting:

To disconnect the VPN, go to VPN → OpenVPN → Instances, find your instance and uncheck the Enabled box, then click Apply.