我不能在我的笔记本上使用mmci和gnome gui,因为有错误:
sudo nmcli connection import type openvpn file OpenVPN.ovpn
Ошибка: не удалось импортировать 'OpenVPN.ovpn':
configuration error: unsupported 3th argument vpn_gateway to “route” (line 13).但我成功地与:
sudo openvpn --config OpenVPN.ovpn 并已开辟隧道:
tun2: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.0.10.6 netmask 255.255.255.255 destination 10.0.10.5
inet6 fe80::1d06:5638:3178:e66d prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100现在,我如何利用这条隧道通过浏览器上网呢?
发布于 2020-04-10 20:39:47
我不能通过gui导入文件,因为ovpn配置有字符串:route x.x.x.x 255.255.0.0 vpn_gateway Bug:https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/606365/comments/68
我的虚拟专用网无法使用控制台,因为我在dns、解决方案(基于Ubuntu18.04连接到openvpn时没有DNS解析)方面有问题:
sudo apt-get install openvpnsudo apt install openvpn-systemd-resolved libnss-resolvehosts: files resolveln -svi /run/systemd/resolve/resolv.conf /etc/resolv.conf
ls -la /etc/resolv.confsystemctl enable systemd-resolved
systemctl start systemd-resolvedscript-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre在档案的末尾:
dhcp-option DOMAIN-ROUTE .sudo openvpn --config my-vpn.ovpnhttps://askubuntu.com/questions/1225910
复制相似问题