OpenVPN / openvpn3-linux

OpenVPN 3 Linux client
GNU Affero General Public License v3.0
554 stars 148 forks source link

My config is getting deleted after a reboot #15

Closed ghost closed 4 years ago

ghost commented 4 years ago

OS: ubuntu 20.04 openvpn3 version

OpenVPN 3/Linux v9_beta (openvpn3)
OpenVPN core 3.git:HEAD:811dac2e linux x86_64 64-bit
Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.

I'm using openvpn3 config-import --config <path_to_ovpn_file> to import my client config file to the store. then I'm changing it's name to be somthing more easy to type openvpn3 config-manage --path <config_path_from_configs-list> --rename <new_name>

All is good up until I reboot then I lose my configs and I need to do it all over again

dsommers commented 4 years ago

You need to import the configuration as a persistent configuration. As indicated in the openvpn3-config-import(1) man page:

   -p, --persistent
          By default, the configuration profile is kept  in  memory  only,
          and it is wiped when the configuration manager service restarts.
          When adding this option the profile becomes persistent and  will
          be  automatically  loaded  each  time  the configuration manager
          starts.

You can also set the new config name during import, using the --name argument toopenvpn3 config-import; also described in the man page - and openvpn3 config-import --help.

$ openvpn3 config-import --help
openvpn3: config-import - Import configuration profiles

   -h | --help                 - This help screen
   -c | --config CFG-FILE      - Configuration file to import
   -n | --name NAME            - Provide a different name for the configuration (default: CFG-FILE)
   -p | --persistent           - Make the configuration profile persistent through service restarts

Also, if you have bash-completion installed, all the openvpn3 commands, arguments and option vlaues should work with auto-completion out-of-the-box; which makes typing easier as well.

ghost commented 4 years ago

i have no idea how I've missed it 😅 thanks