openvpn instance start error
Options error: error parsing --server parameters
Server (IPv4) setting in server instance fails.
IPv6 address works fine when I manually define it but if I try to add IPv4 address (WAN) to server instance then openVPN service refuses to start.
WAN interface is configured to use DHCP6 (it does not get address.)
LAN interface is static IP address.
What am I missing?
If this is for the "Server (IPv4)" setting, then this needs to be the VPN internal IP addresses and defined with a netmask, e.g. as 192.168.100.0/24.
The above "Bind address" entry in my case is empty, so OpenVPN server will listen on all interfaces. Maybe you can not set multiple IP addresses there. In case you want to disable access on some interfaces, probably the best idea is to block it with firewall rules.
thx
Entering network IPv4 worked.
I'm confused why it's called server IPv4 if it's actually network/mask?
If you either on top right toggle the "full help" to on, or click on the (i) icon left of "Server (IPv4)" the following help will be shown below the entry field:
"This directive will set up an OpenVPN server which will allocate addresses to clients out of the given network/netmask. The server itself will take the .1 address of the given network for use as the server-side endpoint of the local TUN/ TAP interface"
"given network"
Like I said it's confusing.
I suggest a better definition... "VPN net" and internal network example like 192.168.88.0/24.
I think most people will enter external IP address there and wonder why it does not work.
Given the fact that OpenVPN has always been very pedantic about that particular input I think all there is left to do here is add the correct validation?
Cheers,
Franco
Browsing trough other threads here I noticed ppl using phrases like "Tunnel network" insted.
I like that better.
"given" is referring to the fact that you define the network in that particular field. Could be replaced with "configured" or "entered" but "Tunnel network" does not make much sense in this sentence.
"Define network"
What network?
OpenVPN server instance setting is talking about Server (IPv4)
Even the i(nfo) button does not give example network.
There are many networks like it but this is one is mine :)
That is the issue here.
You define the network to be used for the tunnel. A network is a combination of a prefix and a prefix length, e.g. 192.168.42.0/24. That's established terminology.
Exactly. So why is it called Server (IPv4) in OpenVPN Instance Server config???