OpenVPN3:会话启动:如何通过用户名和密码
目前,我正在使用OpenVPN3客户端连接到VPN服务器,因为
openvpn3 session-start --config /home/user/client.ovpn
它要求提供用户名和密码。
是否有任何简单的方法传递用户名和密码。因为每次输入用户名和密码都很烦人
Currently I am using openvpn3 client to connect to vpn server as
openvpn3 session-start --config /home/user/client.ovpn
then it asks for username and password.
Is there any easy way to pass username and password. Because everytime to enter username and password is annoying
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用
printf
使用\ n
作为定界符传递用户名和密码:You can pass username and password with
printf
using\n
as a delimiter:您可以使用此简单的Python脚本连接到VPN:
You can use this simple python script to connect to VPN:
OpenVPN3会话启动
https://github.com/openvpn/openvpn/openvpn/openvpn3-linux
当我对Fedora 36进行升级时,内置了最新的OpenVPN3-Linux V18客户端。不必手动升级 /安装它:
EG:以前的V17突然停止工作时间花费10个小时,试图与许多“ OpenVPN3 Session-Start”进行调试, :
实际上认为这是
Cipher AES-256-CBC
旧问题。这不是出于某种原因,安装OpenVPN3 Linux客户端的权限?因为它没有创建 tun 。因此我自己做了一个实际问题):
要求提供VPN用户名&密码,因此将它们添加到文本文件
login.txt
在配置文件目录中,并且auth-user-pass login.txt
toprofile.udp.ovpn
,因此它将自动传递用户名和密码。Another solution to pass the username and password is to use
fyi更openvpn3-client会话启动帮助在这里: https://github.com/openvpn/openvpn3-linux/issues?q=cipher
openvpn3 session-start as per
https://github.com/OpenVPN/openvpn3-linux
When I did an upgrade to Fedora 36 the latest openvpn3-linux v18 client was built in. Did not have to manually upgrade / install it:
e.g: previous v17 suddenly stopped working spend 10 hours trying to debug with many "openvpn3 session-start":
Actually thinking it was a
cipher AES-256-CBC
legacy issue that others were having. It was not for some reason, permissions on install of the OpenVPN3 Linux client? as it was NOT creating a TUN.So I made one myself (that was the actual issue):
and it connected after asking for VPN Username & Password, so added those to text file
login.txt
in the profile directory andauth-user-pass login.txt
toprofile.udp.ovpn
so it would pass username and password automatically.Another solution to pass the username and password is to use openvpn3-autoload
FYI more openvpn3-client session start help is here: https://github.com/OpenVPN/openvpn3-linux/issues?q=cipher