I would like to configure our roadwarriors with two internal DNS servers and in the rare case that both of them are offline, configure a third external DNS server.
The first DNS server is configured in “Advanced server options”. I could configure two DNS servers in the “Advanced client options”, but I guess those would override the global one.
I could manually add a server to the CCD of each client (which would mean extra work each time a new client is created) like this:
push “dhcp-option DNS 126.96.36.199”
Is there a way to configure three DNS servers globally?
Though, it was very confusing that the additional configuration is only copied into server.conf on saving the advanced server options. Not only for the first edit, but also for later edits.
I guess most users will think that a simple restart would be sufficient.
Could you change this, so the server.conf.local is added to server.conf on starting OpenVPN?
you are welcome. This implementation was held in that way to offer a configuration possibility for advanced users of IPFire but also of OpenVPN since you can leave the IPFire concept of the OpenVPN configuration behind and you should know what you are doing, therefore it is a kind of back door configuration possibllity but the kind of reconfiguration is the same then with all other options, you need to stop the server configure it and start it again. A restart is not possible since several core updates.
It’s not only a restart, also stop/start isn’t sufficient to add a modified local configuration to the server.conf. You have to explicitly save the advanced configuration (where nothing has changed) to achieve that. That’s confusing.
The local configuration should be updated into server.conf every time OpenVPN is started.
to complete the “Proposed way”, you would currently also need to “Open GUI > OpenVPN” and “Save OpenVPN”. For the “Currently” way, you need to open “Open Advanced Configuration” only the first time to activate the “Additional Configuration” option from then on you can also use the global section for local file configuration changes (stop|save|start).
But i know what you mean, to read out the configuration the general-functions.pl comes into the game which might be a more in depth operation as far as i know but if you are willing to check this out i can go for some testing or even to help you out as far as i can.