📌  相关文章
📜  连接以使用 conf 文件 linux 打开 vpn - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:41.899000             🧑  作者: Mango

代码示例1
# Copy the configuration file to /etc/openvpn/ and rename it to client.conf
cp example.ovpn /etc/openvpn/client.conf

# Enable the autostart of the OpenVPN service:
sudo systemctl enable openvpn@client.service

# Start the client:
sudo service openvpn@client start

# At this point all you need to do is wait a few seconds for the connection 
# to complete. To check the status of the connection, use this command
sudo service openvpn@client status