如何在僅給定設定檔的 Linux GUI 上設定 VPN?

如何在僅給定設定檔的 Linux GUI 上設定 VPN?

我從大學技術人員那裡收到了一份用於設定 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

答案1

您可以使用 GNOME 的網路管理 GUI 匯入 VPN 設定。只需點擊“從檔案導入...「 在下面設定 -> 網路 -> 新增 VPN

設定截圖

相關內容