OpenVPN - Push routes - Service stops
-
Hi. Just want to ask a general question seeing how I cant find anything when I search on it. I cant say when this started to happen but at least since version 2.4.x
In the example below we use 2.4.3When I add more than one line of push routes in OpenVPN server settings I get this odd behaviour when I press save a second time. The service stops.
When I write in the push route lines the first time I put them in one line each in the GUI like this:push "route 10.xx.xx.0 255.255.255.0"
push "route 10.xx.xx.0 255.255.255.0"
push "route 10.xx.xx.0 255.255.255.0"After I pressed save button the service works fine and my routes as well (over ipsec tunnels) but if I go back later and do another change, say adding a new DNS, and press save again the lines looks like this in the GUI:
push "route 10.10.29.0 255.255.255.0"push "route 10.10.33.0 255.255.255.0"push "route 10.10.53.0 255.255.255.0"
They are all in one line after another and the OpenVPN service refuses to start.
All I have to do is change them back in seperate lines like above and save again and it works again.
Its a bit tedious though as we often experiment with stuff or have to add more routes and stuff and if we forget this we are dead in the water if we cant logon via VPN.If anyone seen this or know how to fix it please feel free to write a reply.
-
if you read the info below the field you will find this:
Enter any additional options to add to the OpenVPN server configuration here, separated by semicolon.
so add a ; at the end of each line
-
if you read the info below the field you will find this:
Enter any additional options to add to the OpenVPN server configuration here, separated by semicolon.
so add a ; at the end of each line
Now… why didnt I see that? Thank you.