OpenVPN fails to start
-
Hello
I'm trying to set up the OpenVPN server, but after I configured everthing, the deamon fails to start. When I check the system logs it shows this:
/vpn_openvpn_server.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/server1.conf'' returned exit code '1', the output was ''
So, that output message is weird. Is there anything I can check why this is failing? A simple reboot didn't solve the issue.
Thanks a bunch!
-
Attach screenshots of Openvpn server configuration.
-
Thanks for your reply.
See the images attached, I altered as little as possible on the default configuration.
-
@MathiasMa said in OpenVPN fails to start:
When I check the system logs it shows this:
/vpn_openvpn_server.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/server1.conf'' returned exit code '1', the output was ''So, that output message is weird. Is there anything I can check why this is failing
The OpenVPN log would give you a more detailed information.
However, as your screenshot shows, you have a wrong tunnel network setting. Set it to 172.22.0.0/20 (if you really need a /20 = 4096 addresses ).
-
Thanks @viragomann Your advice instafixed it.
4096 is indeed rather exagerated. But does it really matter?
-
@MathiasMa said in OpenVPN fails to start:
But does it really matter?
No, as long as you keep it in mind and don't add another subnet to pfSense which overlaps it, it doesn't.