OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: bapetc on April 21, 2016, 09:14:23 am

Title: [SOLVED] openvpn service not starting
Post by: bapetc on April 21, 2016, 09:14:23 am
Hi,

I'm running
OPNsense 16.1.8-amd64   
FreeBSD 10.2-RELEASE-p14   
OpenSSL 1.0.2g 1 Mar 2016

I try to setup an OpenVPN server. The service is not starting.

Apr 21 09:01:22 firewall openvpn[3247]: Options error: --server directive network/netmask combination is invalid
Apr 21 09:01:22 firewall openvpn[3247]: Use --help for more information.


I created a server with the wizard interface.
Title: Re: openvpn service not starting
Post by: bapetc on April 21, 2016, 10:05:54 pm
Sorry, wrong ip/mask. OpenVPN is working now!
Title: Re: [SOLVED] openvpn service not starting
Post by: adrian.orcik on March 23, 2017, 11:06:08 am
Hey, where was you mistake ? Because  I have same issue :(
thanks for quickly answer.
Title: Re: [SOLVED] openvpn service not starting
Post by: franco on March 24, 2017, 07:46:05 am
The validation was fixed in 17.1.3:

https://github.com/opnsense/changelog/blob/master/doc/17.1/17.1.3#L41

When you use a CIDR notation in OpenVPN and it expects a network, it does not accept input in the form of:

10.0.0.1/16

Because /16 marks the network and "10.0.0.1" is a host (non-zero). You need to write:

10.0.0.0/16


Cheers,
Franco