Page MenuHomeVyOS Platform

openvpn config using openvpn config file
Open, WishlistPublicFEATURE REQUEST


on ubnt, I can config openvpn interface by

set interfaces openvpn vtun1 config-file /config/auth/vtun1.conf

I can copy vtun1.conf file form my desktop computer, don't need to input a lot of commands.


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

Not just for inputting alot of commands, but making it possible to simply specifiy an opevnpn config instead of having to re-implement every possible openvpn setting using the VyOS syntax would be a huge benefit.
Not to mention the automation aspects.. copy config, load it. done.

We have thing like this in dhcpd's config - there you can state something like "subnet-parameters ... include file".
I was thinkking a little bit on it and came to the following idea - may be we should implement general syntax for stanza like "hey, vyos, I have config file for this service, please use it as is, but I still need the service to be operated on by vyos CLI commands". How do you think, would it be a good option to implement @dmbaturin?

This comment was removed by mickvav.

I agree with the above, this is actually how I'm dealing with custom options with dhcpd at the moment, however the same can't be done with openvpn as the functionality to include files doesn't exist within openvpn's config format, whereas it does with dhcpd.

Also, with dhcpd you still have to escape values with " for quotes which is super annoying.

syncer triaged this task as Wishlist priority.Apr 7 2018, 11:08 AM
dmbaturin changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
dmbaturin set Is it a breaking change? to Perfectly compatible.