[problem help] 导入Open vpn配置后,每次vpn连接后,缺省路由default会出现两个
Tofloor
poster avatar
猫狗干瞪眼
deepin
2023-12-09 19:08
Author

一个default 是指向无线网卡wlp0s20f3的,一个是指向vpn建立的tun0

对所有网络的访问会走tun0 vpn,而不是访问外部网站走无线网卡,我必须每次用 route delete default删除前面的 tun0 路由才能正常。

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    50     0        0 tun0
default         _gateway        0.0.0.0         UG    600    0        0 wlp0s20f3
10.31.0.0       0.0.0.0         255.255.254.0   U     50     0        0 tun0

Reply Favorite View the author
All Replies
neko
deepin
Ecological co-builder
2023-12-09 19:21
#1

如果不想让tun0全局上网就打开下面这个选项
image.png

Reply View the author
猫狗干瞪眼
deepin
2023-12-09 19:27
#2

我从openvpn配置文件文件中导入的,网关地址中包含:端口,这个修改由于网关字段非法无法保存,可以在配置文件中用命令指定么?

Reply View the author
hotime
deepin
2023-12-10 02:07
#3
猫狗干瞪眼

我从openvpn配置文件文件中导入的,网关地址中包含:端口,这个修改由于网关字段非法无法保存,可以在配置文件中用命令指定么?

可以尝试加入23beta2的内测,内测中推送的2.0.16版libdde-network-core,修复了openvpn网关校验相关的一些问题,不再对openvpn网关栏进行校验。

Reply View the author
猫狗干瞪眼
deepin
2023-12-11 18:41
#4

果然如此,我加入了内测,下载两次更新后,可以保存了,看来未来版本应该没有这个问题了,谢谢neko,hotime的倾心帮助。

Reply View the author