设置里面连接 TAP 模式的 OVPN 会出错
Tofloor
poster avatar
152******17
deepin
2020-12-08 17:37
Author

在设置里面(连接管理器)连接 TAP 模式的 OVPN 会出错,直接使用命令行连接 .ovpn 文件则正常。疑似调用 nm-openvpn-service-openvpn-helper 的时候会返回 exit 1 导致。


Reply Favorite View the author
All Replies
Feng Yu
deepin
2020-12-08 18:07
#1

真正的报错难道不是上面的“bad ip config”?

Reply View the author
152******17
deepin
2020-12-08 18:17
#2
Feng Yu

真正的报错难道不是上面的“bad ip config”?

试过把 nm-openvpn-service-openvpn-helper 连接到 /bin/true openvpn 程序就能成功连接并创建 tap0 设备,只是不会获取 ip 地址,然后设置界面不会显示已连接,如果手动执行 dhclient tap0 能获取 ip 并上网[尾]

Reply View the author
152******17
deepin
2020-12-08 18:21
#3

我估计是因为 tap 模式和 tun 不一样,tun 服务器会 push ip,而 tap 需要客户端自己 dhclient 获取 ip,导致报 bad-ip-config


应该是 bug

红11帽buglist:

https://bugzilla.red[坏笑]hat.com/show_bug.cgi?id=484831

友邦图buglist:

https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/297707

Reply View the author