OpenVPN IPv4 Tunnel Network incorrectly allows hostnames
If you enter a host address instead of a network address into the IPv4 Tunnel Network field, the setup will be accepted, but the OpenVPN service will not start.
Unable to contact daemon
Updated by Jim Pingle almost 3 years ago
- Status changed from Feedback to New
OK so you literally meant a host address inside a network, and not the network address.
We could do one of two things here:
- Have input validation reject the input if the address is not the network address for the subnet (harsh)
- Change the host address the user input into the appropriate network address on save (easier for the user, but the change may surprise them)
I'm leaning toward the latter approach, and note under the field that it should be/will be changed to a network address
Updated by Danilo Zrenjanin almost 2 years ago
Yes, I can confirm it's not fixed yet.
2.6.0-BETA (amd64) built on Thu Dec 16 06:22:38 UTC 2021 FreeBSD 12.3-STABLE
It still allows entering a host address which breaks the OpenVPN service.
I entered 10.0.8.1/24
[error] Unable to contact daemon Service not running? 0 0 B 0 B
Updated by Viktor Gurov almost 2 years ago
- Assignee set to Viktor Gurov
Updated by Alhusein Zawi over 1 year ago
the host address will be changed to be the the network address in IPv4 Tunnel Network.
I entered 10.0.8.1/24 and it was changed to be 10.0.8.0/24 and 10.10.10.1/24 to be 10.10.10.0/24.
openvpn service was up and running