OPNsense Forum

English Forums => Virtual private networks => Topic started by: Twitchiz on January 11, 2024, 08:47:19 PM

Title: OpenVPN Not Starting Properly, logged error isn't helpful
Post by: Twitchiz on January 11, 2024, 08:47:19 PM
Hello everyone, I'm getting this error after creating an instance. I saw that someone with PFSense had this error when using custom options but I don't have any of those set. Not sure what's causing it. It happens right after enabling the instance. Any ideas? I basically followed the RoadWarrior VPN Config for client to site.

/usr/local/opnsense/scripts/openvpn/ovpn_service_control.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/instance-f6bce83c-a5e4-43a4-ae84-ca5c84bda936.conf'' returned exit code '1', the output was ''

I wasn't getting any assistance in the main area so I thought I'd post this here. My Opnsense version is 23.7.7

Edit: Upgraded to 23.7.11 and I still have the same issue.
Title: Re: OpenVPN Not Starting Properly, logged error isn't helpful
Post by: Twitchiz on January 18, 2024, 11:23:09 PM
I increased the verbosity and got a new error inside it.

--local addresses must be distinct from --ifconfig

This doesn't make sense as my local address does not match any ifconfig address. Any ideas? I verified my IP makes sense. I tried 10.115.10.0/24 and 10.115.10.1/24
Title: Re: OpenVPN Not Starting Properly, logged error isn't helpful
Post by: Twitchiz on January 19, 2024, 02:11:50 AM
I got it working by redoing the IP scheme,

However I still have an issue. I can connect, but only when I bind the IP to the WAN IP (which changes due to ISP) or leave it to bind all interfaces. I created a port forward that forwards the OpenVPN port from the WAN Address to a loopback virtual IP I created of 127.5.5.5, but for some reason it does not function when set up that way. Any ideas?