OPNsense Forum

English Forums => Virtual private networks => Topic started by: Kitdrewne on November 17, 2026, 11:56:15 PM

Title: New OpenVPN Setup Issues
Post by: Kitdrewne on November 17, 2026, 11:56:15 PM
I just installed a new firewall running OPNsense and have everything working well across the network. I went through and configured an OpenVPN server on it, but whenever I try connecting the client just hangs and never connects. Checking the logs, I'm getting these three lines each time I try connecting:
Code (openvpn.log) Select
2026-11-17T14:15:32-07:00 Error openvpn /usr/local/opnsense/scripts/openvpn/ovpn_service_control.php: The command </usr/local/sbin/openvpn --config '/var/etc/openvpn/instance-3e920d50-f798-456e-ac8a-27687fb8f96c.conf'> returned exit code 1 and the output was "2026-11-17 14:15:32 DEPRECATED OPTION: --persist-key option ignored. Keys are now always persisted across restarts."
2026-11-17T14:15:32-07:00 Warning openvpn_server1 Use --help for more information.
2026-11-17T14:15:32-07:00 Error openvpn_server1 Options error: --local addresses must be distinct from --ifconfig addresses

On the client side, I tried removing the --persist-key option from the config, but it's still not connecting. I tried that while I was off-site though, so I'm not yet able to confirm how/if the error changed. Here are my configurations below:

Firewall (relevant entries)
RuleOriginVersionProtocolSourcePortDestinationPortGateway
OpenVPN (Group)*IPv4******
WAN*IPv4UDP**WAN AddressOpenVPN (Group) network*

Code (OpenVPN Instance) Select
Role: Server
Protocol: UDP
Port Number: 1194
Bind Address: 10.18.32.1
Type: TUN
Server (IPv4): 10.18.32.0/24
Topology: Subnet

TLS static key: [Set]

Authentication: Local Database
Strict User/CN Matching: Yes

Local Network: 192.168.2.0/24, 192.168.1.0/24, 192.168.20.0/24, 192.168.30.0/24, 192.168.40.0/24
Remote Network:

I'm using the single file option when exporting from OPNsense and have tried connecting both with KDE Network Manager under CachyOS and Viscosity on macOS with the same results. It's been a little while since I set one of these up, so I was referencing the documentation (https://docs.opnsense.org/manual/how-tos/sslvpn_instance_roadwarrior.html) as well as another OPNsense instance I had configured previously elsewhere while setting this up initially.


Any advice would be much appreciated!