Article title: openvpn manages multiple configuration files. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After the company's network has been adjusted recently, there are three vpn connections that need to be used. according to the default configuration, it seems that only one configuration file under the config directory can be used. in this case, you need to change the directory name for different vpn switches, very troublesome. After 10 minutes of observation and 10 minutes of thinking, I suddenly thought of a method. so I tried it and it was OK.
After the openvpn client is installed, there will be a config directory under the installation directory, which contains the relevant configuration files, now this operation. Name the directory where the configuration files of the original vpn are located as config.1 config.2 config.3, and then clear the files in the original config directory, copy config.1 config.2 config.3 to the config directory, and then paste the client under each directory with specific configuration file information. change ovpn to client1.ovpn. When openvpn is started, you can clearly identify the difference.