Page MenuHomePhabricator

openvpn config using openvpn config file
Open, WishlistPublicFEATURE REQUEST

Description

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.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

wzk created this task.Mar 22 2018, 6:04 AM

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.

mickvav added subscribers: dmbaturin, mickvav.EditedApr 1 2018, 7:09 AM

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