2.8.0 config.xml wont apply with /etc/rc.reload_all
-
Hi all,
to inject new routes to OpenVPN nightly we do following in 2.7.2
- update /conf/config.xml
- run /etc/rc.reload_all
This is not working anymore with 2.8.0.
A reboot after updating /conf/config.xml works, but I would avoid this.
The OpenVPN Server config is not up to date after running /etc/rc.reload_all
(/var/etc/openvpn/server1/config.ovpn)Is there another way of preparing the OpenVPN Server configuration? The WebGUI is no solution, the "save" button is also restarting the OpenVON service which leads to disconnects...
thx
-
Hmm. What routes are you adding that don't require restarting OpenVPN? Just local routes in the firewall?
-
Hello,
we add some client target routes (custom option "push route <ip> <mask>") to modify the VPN "content".
In 2.7.2
The /etc/rc.reload_all was triggering the update of /var/etc/openvpn/server1/config.ovpn with the changes from /conf/config.xml)
Afterwards the OpenVPN service was restarted- same like the "save" button in the WebGUI/OpenVPN menu.
in 2.8.0 the config.ovpn stays unchanged if I execute /etc/rc.reload_all
If I do a "reboot" the changes in config.xml will be applied to config.ovpn and OpenVPN service.
Hope this is clearer now.
BR
-
@bergerf said in 2.8.0 config.xml wont apply with /etc/rc.reload_all:
The WebGUI is no solution, the "save" button is also restarting the OpenVON service which leads to disconnects...
This confused me since there's no way to update the running ovpn server config without restarting it and disconnecting users.
But I would have expected that to be the same in 2.8.
Are you clearing the cached config file (/tmp/config.cache) after making changes?
-
@stephenw10 said in 2.8.0 config.xml wont apply with /etc/rc.reload_all:
his confused me since there's no way to update the running ovpn server config without restarting it and disconnecting users.
right, so I modify the /conf/config.xml and a cronjob ( 3 am) is only executing /etc/rc.reload_all
This was working in 2.7.2In 2.8.0 this is not working anymore.
The changes in /conf/config.xml will not be applied.deleting /tmp/config.cache was not changing the behavior
-
What gets logged when you run that in 2.8?