Adding additional routes to OpenVPN config while it is running

Hello,

unfortunately it is not possible to add routes via IPFire GUI while the OpenVPN server is running. As everyone is working from home these days, I use the following workflow to circumvent this:

echo "${IP}/32" >> /var/ipfire/ovpn/routes_push
echo "push \"route ${IP} 255.255.255.255\"" >> /var/ipfire/ovpn/server.conf
killall openvpn; /usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf

This works most of the time, but we had two occasions where we lost the VPN and had to restart it (which meant driving to the office).

Is there a better way? Restarting IPFire would probably be safer, but at the cost of downtime.

Lars