我正在尝试创建 OpenVPN 连接。我使用 Windows 的同事收到了一个自解压可执行文件,可以设置所有内容,但我可以.ovpn
从他们的配置中恢复 和 密钥文件。
.opvn 说:
dev tun
persist-tun
persist-key
cipher AES-256-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote aaa.bbb.ccc.ddd 1194 udp
verify-x509-name "Bad_VPN" name
auth-user-pass
pkcs12 SomeKey.p12
tls-auth SomeKey-tls.key 1
ns-cert-type server
comp-lzo adaptive
有了足够的密码,连接就会启动,我可以 ping 通系统。但是,如果我启动 VPN,并立即启动ping
我保持运行的 VPN:
- 大约一分钟后,不再有任何 ping 答案(没有 seq>57)
- 大约一分钟后,我收到最后一个 ping 答案(seq=118 的一个)和一条“tun0”已停用的消息。
此外,当 VPN 启动时,我只能 ping 它连接到的网络。
当 VPN 启动时,ip route
显示:
default via 192.168.30.1 dev tun0 proto static metric 50
default via xxx.143.182.1 dev wlp4s0 proto static metric 600
xxx.0.136.31 via xxx.143.182.1 dev wlp4s0 proto dhcp metric 600
xxx.143.182.0/23 dev wlp4s0 proto kernel scope link src xxx.143.182.197 metric 600
10.101.54.0/24 via 192.168.30.1 dev tun0 proto static metric 50
aaa.bbb.ccc.ddd via xxx.143.182.1 dev wlp4s0 proto static metric 600
192.168.30.0/24 dev tun0 proto kernel scope link src 192.168.30.3 metric 50
作为比较,没有 VPN:
default via xxx.143.182.1 dev wlp4s0 proto static metric 600
xxx.0.136.31 via xxx.143.182.1 dev wlp4s0 proto dhcp metric 600
xxx.143.182.0/23 dev wlp4s0 proto kernel scope link src xxx.143.182.197 metric 600
(xxx.*.*.*
是我常用的网络,aaa.bbb.ccc.ddd
是VPN网关)。
/var/log/syslog
说:
Jan 2 15:41:51 Xenoid NetworkManager[1102]: <info> [1514904111.3023] audit: op="connection-activate" uuid="46cde9dc-b96e-4a27-92f2-980856086015" name="ProblemVPN" pid=18679 uid=1000 result="success"
Jan 2 15:41:51 Xenoid NetworkManager[1102]: <info> [1514904111.3124] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",0]: Started the VPN service, PID 14000
Jan 2 15:41:51 Xenoid NetworkManager[1102]: <info> [1514904111.3289] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",0]: Saw the service appear; activating connection
Jan 2 15:41:51 Xenoid NetworkManager[1102]: nm-openvpn-Message: openvpn[14003] started
Jan 2 15:41:51 Xenoid NetworkManager[1102]: <info> [1514904111.3433] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",0]: VPN plugin: state changed: starting (3)
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: Control Channel Authentication: using '/home/me/.local/share/networkmanagement/certificates/SomeKey-tls.key' as a OpenVPN static key file
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: UDPv4 link local: [undef]
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: UDPv4 link remote: [AF_INET]aaa.bbb.ccc.ddd:1194
Jan 2 15:41:51 Xenoid nm-openvpn[14003]: [Bad_VPN] Peer Connection Initiated with [AF_INET]aaa.bbb.ccc.ddd:1194
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: TUN/TAP device tun0 opened
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper --bus-name org.freedesktop.NetworkManager.openvpn.Connection_113 --tun -- tun0 1500 1558 192.168.30.3 255.255.255.0 init
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0624] manager: (tun0): new Tun device (/org/freedesktop/NetworkManager/Devices/57)
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0688] devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0688] device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0733] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",0]: VPN connection: (IP Config Get) reply received.
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0752] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN connection: (IP4 Config Get) reply received
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0758] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: VPN Gateway: aaa.bbb.ccc.ddd
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0758] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Tunnel Device: "tun0"
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: chroot to '/var/lib/openvpn/chroot' and cd to '/' succeeded
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: IPv4 configuration:
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: GID set to nm-openvpn
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Internal Gateway: 192.168.30.1
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: UID set to nm-openvpn
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Internal Address: 192.168.30.3
Jan 2 15:41:54 Xenoid nm-openvpn[14003]: Initialization Sequence Completed
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Internal Prefix: 24
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Internal Point-to-Point Address: 192.168.30.3
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0759] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Maximum Segment Size (MSS): 0
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0760] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Static Route: 10.101.54.0/24 Next Hop: 192.168.30.1
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0760] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: Forbid Default Route: no
Jan 2 15:41:54 Xenoid acvpnagent[1851]: A new network interface has been detected.
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0760] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: DNS Domain: '(none)'
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: logInterfaces File: RouteMgr.cpp Line: 2105 Invoked Function: logInterfaces Return Code: 0 (0x00000000) Description: IP Address Interface List: xxx.143.163.90 FE80:0:0:0:8F3A:7426:4E4E:ADBC FE80:0:0:0:BE55:25A5:1450:A479
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0760] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: Data: No IPv6 configuration
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0761] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN plugin: state changed: started (4)
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid acvpnagent[1851]: A new network interface has been detected.
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: logInterfaces File: RouteMgr.cpp Line: 2105 Invoked Function: logInterfaces Return Code: 0 (0x00000000) Description: IP Address Interface List: xxx.143.163.90 192.168.30.3 FE80:0:0:0:8F3A:7426:4E4E:ADBC FE80:0:0:0:BE55:25A5:1450:A479
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0790] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN connection: (IP Config Get) complete
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0792] device (tun0): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0823] manager: NetworkManager state is now CONNECTED_LOCAL
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0824] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 2 15:41:54 Xenoid dbus[1080]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Jan 2 15:41:54 Xenoid systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0857] keyfile: add connection in-memory (e354d75d-c20c-49d7-ab96-8dc25ebc53d2,"tun0")
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0863] device (tun0): state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.0891] device (tun0): Activation: starting connection 'tun0' (e354d75d-c20c-49d7-ab96-8dc25ebc53d2)
Jan 2 15:41:54 Xenoid kernel: [1062318.614395] IPv4: martian source xxx.143.163.90 from xxx.0.136.50, on dev enp0s31f6
Jan 2 15:41:54 Xenoid kernel: [1062318.614398] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c0 64 c0 08 00 .[v.9...%.d...
[... repeated three times total ...]
Jan 2 15:41:54 Xenoid dbus[1080]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 2 15:41:54 Xenoid systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 2 15:41:54 Xenoid nm-dispatcher: req:1 'vpn-up' [tun0]: new request (1 scripts)
Jan 2 15:41:54 Xenoid nm-dispatcher: req:1 'vpn-up' [tun0]: start running ordered scripts...
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1088] device (tun0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1094] device (tun0): state change: prepare -> config (reason 'none') [40 50 0]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1097] device (tun0): state change: config -> ip-config (reason 'none') [50 70 0]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1099] device (tun0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Jan 2 15:41:54 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1110] device (tun0): state change: ip-check -> secondaries (reason 'none') [80 xxx. 0]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1113] device (tun0): state change: secondaries -> activated (reason 'none') [90 100 0]
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1138] manager: NetworkManager state is now CONNECTED_LOCAL
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1139] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1139] policy: set 'tun0' (tun0) as default for IPv4 routing and DNS
Jan 2 15:41:54 Xenoid NetworkManager[1102]: <info> [1514904114.1140] device (tun0): Activation: successful, device activated.
Jan 2 15:41:54 Xenoid kernel: [1062318.640875] IPv4: martian source xxx.143.163.90 from 54.230.92.116, on dev enp0s31f6
Jan 2 15:41:54 Xenoid kernel: [1062318.640878] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c1 6b 40 08 00 .[v.9...%.k@..
Jan 2 15:41:54 Xenoid nm-dispatcher: req:2 'up' [tun0]: new request (1 scripts)
Jan 2 15:41:54 Xenoid org.kde.kdeconnect[18558]: kdeconnect.core: Broadcasting identity packet
Jan 2 15:41:54 Xenoid kernel: [1062318.654094] IPv4: martian source xxx.143.163.90 from xxx.0.136.50, on dev enp0s31f6
Jan 2 15:41:54 Xenoid kernel: [1062318.654096] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c0 64 c0 08 00 .[v.9...%.d...
[... More "martian source" and "ll header" messages ...]
Jan 2 15:41:59 Xenoid kernel: [1062323.619584] net_ratelimit: 14 callbacks suppressed
[... More "martian source" and "ll header" messages ...]
Jan 2 15:42:01 Xenoid org.kde.kdeconnect[18558]: kdeconnect.core: Broadcasting identity packet
Jan 2 15:42:04 Xenoid kernel: [1062328.625257] net_ratelimit: 6 callbacks suppressed
[... More "martian source" and "ll header" messages ...]
Jan 2 15:42:04 Xenoid nm-dispatcher: req:2 'up' [tun0]: start running ordered scripts...
[... More "martian source", "ll header", and "net_ratelimit" messages ...]
Jan 2 15:43:51 Xenoid nm-openvpn[14003]: [Bad_VPN] Inactivity timeout (--ping-restart), restarting
Jan 2 15:43:51 Xenoid nm-openvpn[14003]: SIGUSR1[soft,ping-restart] received, process restarting
Jan 2 15:43:52 Xenoid kernel: [1062436.606725] IPv4: martian source xxx.143.163.90 from xxx.0.136.50, on dev enp0s31f6
Jan 2 15:43:52 Xenoid kernel: [1062436.606750] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c0 64 c0 08 00 .[v.9...%.d...
Jan 2 15:43:52 Xenoid kernel: [1062436.610871] IPv4: martian source xxx.143.163.90 from xxx.0.138.50, on dev enp0s31f6
Jan 2 15:43:52 Xenoid kernel: [1062436.610894] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c0 64 c0 08 00 .[v.9...%.d...
Jan 2 15:43:53 Xenoid nm-openvpn[14003]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jan 2 15:43:53 Xenoid nm-openvpn[14003]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 2 15:43:53 Xenoid nm-openvpn[14003]: UDPv4 link local: [undef]
Jan 2 15:43:53 Xenoid nm-openvpn[14003]: UDPv4 link remote: [AF_INET]aaa.bbb.ccc.ddd:1194
Jan 2 15:43:53 Xenoid nm-openvpn[14003]: [Bad_VPN] Peer Connection Initiated with [AF_INET]aaa.bbb.ccc.ddd:1194
Jan 2 15:43:53 Xenoid kernel: [1062438.330281] IPv4: martian source xxx.143.163.90 from xxx.57.61.80, on dev enp0s31f6
Jan 2 15:43:53 Xenoid kernel: [1062438.330286] ll header: 00000000: c8 5b 76 df 39 d9 0c 85 25 c1 6b 40 08 00 .[v.9...%.k@..
Jan 2 15:43:55 Xenoid nm-openvpn[14003]: Preserving previous TUN/TAP instance: tun0
Jan 2 15:43:55 Xenoid nm-openvpn[14003]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper --bus-name org.freedesktop.NetworkManager.openvpn.Connection_113 --tun -- tun0 1500 1558 192.168.30.3 255.255.255.0 restart
Jan 2 15:43:55 Xenoid nm-openvpn[14003]: WARNING: Failed running command (--up/--down): could not execute external program
Jan 2 15:43:55 Xenoid nm-openvpn[14003]: Exiting due to fatal error
Jan 2 15:43:55 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:43:55 Xenoid acvpnagent[1851]: A network interface has gone down.
Jan 2 15:43:55 Xenoid acvpnagent[1851]: Function: logInterfaces File: RouteMgr.cpp Line: 2105 Invoked Function: logInterfaces Return Code: 0 (0x00000000) Description: IP Address Interface List: xxx.143.163.90 FE80:0:0:0:8F3A:7426:4E4E:ADBC
Jan 2 15:43:55 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <error> [1514904235.1882] platform-linux: do-add-ip4-route[24: 0.0.0.0/0 50]: failure 101 (Network is unreachable)
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <warn> [1514904235.1883] default-route: failed to add default route 0.0.0.0/0 via 192.168.30.1 dev 24 metric 50 mss 0 src vpn with effective metric 50
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.1883] manager: NetworkManager state is now CONNECTED_LOCAL
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.1884] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.1885] policy: set 'ProblemVPN' (tun0) as default for IPv4 routing and DNS
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.1898] device (tun0): state change: activated -> unmanaged (reason 'unmanaged') [100 10 3]
Jan 2 15:43:55 Xenoid dbus[1080]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.1956] devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
Jan 2 15:43:55 Xenoid systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 2 15:43:55 Xenoid dbus[1080]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 2 15:43:55 Xenoid systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 2 15:43:55 Xenoid nm-dispatcher: req:1 'down' [tun0]: new request (1 scripts)
Jan 2 15:43:55 Xenoid nm-dispatcher: req:1 'down' [tun0]: start running ordered scripts...
Jan 2 15:43:55 Xenoid NetworkManager[1102]: (nm-openvpn-service:14000): nm-openvpn-WARNING **: openvpn[14003] exited with error code 1
Jan 2 15:43:55 Xenoid whoopsie[1562]: [15:43:55] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/113
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <warn> [1514904235.2272] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN plugin: failed: connect-failed (1)
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.2272] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN plugin: state changed: stopping (5)
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.2272] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN plugin: state changed: stopped (6)
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.2278] vpn-connection[0x1c2e630,46cde9dc-b96e-4a27-92f2-980856086015,"ProblemVPN",24:(tun0)]: VPN plugin: state change reason: unknown (0)
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.2278] manager: NetworkManager state is now CONNECTED_LOCAL
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <info> [1514904235.2303] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 2 15:43:55 Xenoid NetworkManager[1102]: <error> [1514904235.2309] platform-linux: do-change-link[24]: failure changing link: failure 19 (No such device)
Jan 2 15:43:55 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:43:55 Xenoid nm-dispatcher: req:2 'vpn-down' [tun0]: new request (1 scripts)
Jan 2 15:43:55 Xenoid acvpnagent[1851]: Function: tableCallbackHandler File: RouteMgr.cpp Line: 1723 Invoked Function: recv Return Code: 11 (0x0000000B) Description: unknown
Jan 2 15:43:55 Xenoid nm-dispatcher: req:2 'vpn-down' [tun0]: start running ordered scripts...
使用 NM gui,我尝试删除自动路由,但无法通过这种方式获得有效的配置。我还尝试了几种变体,ip route del default via 192.168.30.1 dev tun0
但尽管我没有看到任何错误消息,但路线仍然存在。
有什么想法(除了启动 Windows VM...)?
运行(K)ubuntu 16.04
更新:好吧,我撒谎了:)我也有 docker,并docker0
从ip route
输出中删除...并且使用 NM GUI 断开连接docker0
似乎可以解决问题。跑了 2000 万次,只丢失了几个数据包 (10/1261)。然而,我找不到任何 OpenVPN 和 docker 不喜欢彼此的暗示。
更新“2:上述工作测试是在家中通过 PLC 在以太网上进行的。因此,它可以通过有线连接到我的简单家庭 LAN,但不适用于:
- 公司内部网络(wifi或以太网)
- 公司的“客人”wifi
- 我家的无线网络
- 我的手机(作为 Wifi 主机点)
- 我的手机(带 USB 线)