Advanced config > Custom options > LINE FEED not saved.
-
Crew, I've added two "push route" options in my OpenVPN config and clicked "save" Please see below.
push "route 172.31.4.0 255.255.255.0" push "route 172.31.40.0 255.255.255.0"
The OpenVPN service starts.
Clients can connect.
Routes work.
Nice.When re-visiting the config page I encounter the following:
push "route 172.31.4.0 255.255.255.0"push "route 172.31.40.0 255.255.255.0"
Obviously, the LINE FEED is missing.
And at several moments the OpenVPN service stops and complains about the config:
Options error: Unrecognized option or missing or extra parameter(s) in /var/etc/openvpn/server1/config.ovpn:48: push (2.6.4)
Which makes sense because the config does not meet syntax requirement.
Why is the GUI not saving the config correctly to
/var/etc/openvpn/server1/config.ovpn
2.7.0-RELEASE (amd64)
built on Wed Jun 28 03:53:34 UTC 2023
FreeBSD 14.0-CURRENTVendor: VMware, Inc.
Version: VMW71.00V.21100432.B64.2301110304
Release Date: Wed Jan 11 2023[edit] replaced images for <code>, due to quality issues with the images [/edit]
-
The solution to this issue is: read the fine print.
"Enter any additional options to add to the OpenVPN server configuration here, separated by semicolon."
So I made the following changes:
push "route 172.31.4.0 255.255.255.0"; push "route 172.31.40.0 255.255.255.0"
Mind the semicolon at the end of the first line.
Thank you for letting me use this forum as a Rubber Duck