我从大学技术人员那里收到了一份配置文件,用于配置 OpenVPN 连接。根据工作人员的说法,我必须通过以下命令在命令行中手动打开连接
openvpn --config 配置文件.conf
但是,我必须保持终端打开并运行该命令(可能通过屏幕可以减少干扰)。但是,我可以使用 Ubuntu 中的 VPN 连接 GUI 使用配置文件中的信息来配置该 VPN 吗?怎么做?
配置文件的内容如下:
#############################################
# Sample client-side OpenVPN 2.0 config file.
# for connecting to multi-client server.
##############################################
#tls-cipher "DEFAULT:@SECLEVEL=0"
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
dev tun
proto udp
# The hostname/IP and port of the server.
remote <ip-adress> <port>
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Try to preserve some state across restarts.
persist-key
persist-tun
comp-lzo
# Certificate Authority
<ca>
-----BEGIN CERTIFICATE-----
BLABLABLA
-----END CERTIFICATE-----
</ca>
# Username/Password authentication is used on the server
auth-user-pass
# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server
# Set log file verbosity.
verb 3