Bug #14140
closedOpenVPN Custom Options removes newline before push statements
0%
Description
Hello,
I'm setting up an OpenVPN server and need to pass in some additional option in two places:
1. VPN -> OpenVPN -> Server -> <edit server> -> Advanced Configuration -> Custom options
2. VPN -> OpenVPN -> Client Specific Overrides -> <edit override> -> Client Settings -> Advanced
In both of these cases, i need to add a statement similar to:
push "route-gateway 192.168.x.1"
If you do this and save the server, it removes the newline before and after that statement.
Example: if i put the following in Client Specific Overrides:
ifconfig-push 192.168.x.3 255.255.255.0
push "route-gateway 192.168.x.1"
When i save, go away from the page and edit again, it looks like:
ifconfig-push 192.168.x.3 255.255.255.0push "route-gateway 192.168.x.1"
Oddly enough this same thing happens if i make changes to the server, without touching the client specific overrides, it seems to rewrite the overrides and removes the newlines.
This can be verified by looking at the files on the file system:
- /var/etc/openvpn/server1/csc/<client specific override name>
Let me know if there is other help or steps i can provide to aide in debugging.
So far it's 100% reproducible.
Files