Hi
I link to internet mostly through openvpn service .
I used for that NetworkManager, but recently NM allows connect only once after switching ON system or reboot.
If I disconnect VPN using NM-applet next time switching ON VPN does not work .
Using CLi pure openvpn client works flawlesly OFF and ON.
I suppose something happens from routing, and bringing UP tun0 interface but I do not know the cause.
This is snippet after first succesfull connection:
PHP Code:
16:31:19 --> root in po]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.178.1 0.0.0.0 UG 100 0 0 eth0
10.108.21.0 * 255.255.255.0 U 0 0 0 tun0
10.108.21.0 * 255.255.255.0 U 50 0 0 tun0
loopback * 255.0.0.0 U 0 0 0 lo
zurich.tigerbac 192.168.178.1 255.255.255.255 UGH 100 0 0 eth0
192.168.178.0 * 255.255.255.0 U 100 0 0 eth0
[16:31:33 --> root in po]$ ip route
default via 192.168.178.1 dev eth0 proto static metric 100
10.108.21.0/24 dev tun0 proto kernel scope link src 10.108.21.19
10.108.21.0/24 dev tun0 proto kernel scope link src 10.108.21.19 metric 50
127.0.0.0/8 dev lo scope link
178.255.153.76 via 192.168.178.1 dev eth0 proto static metric 100
192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.7 metric 100
[16:31:49 --> root in po]$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.7 netmask 255.255.255.0 broadcast 192.168.178.255
ether 74:d4:35:a1:82:23 txqueuelen 1000 (Ethernet)
RX packets 107 bytes 19611 (19.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 159 bytes 10542 (10.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 26 base 0x6000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 129 bytes 7167 (6.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 129 bytes 7167 (6.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.108.21.19 netmask 255.255.255.0 destination 10.108.21.19
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
When I switch off VPN using NM go down tun0 interface and routes goes back to default but there is log error from NM that tell something goes wrong.
Quote:
<error> [1448465548.948607] [platform/nm-linux-platform.c:2883] do_change_link(): platform-linux: do-change-link: failure changing link 5: No such device (31)
|
If I try reconnect after that logs says that there is something like connection ????? but interface tun0 is down and routing went to eth0 like it should be.
Quote:
25/11/2015 16:57:14 brat NetworkManager[789] <info> VPN plugin requested secrets; state connect (4)
25/11/2015 16:57:14 brat nm-openvpn[2630] UDPv4 link local: [undef]
25/11/2015 16:57:14 brat nm-openvpn[2630] UDPv4 link remote: [AF_INET]178.255.153.76:1194
25/11/2015 16:57:15 brat nm-openvpn[2630] [tigervpn.com] Peer Connection Initiated with [AF_INET]178.255.153.76:1194
25/11/2015 16:57:18 brat nm-openvpn[2630] AUTH: Received control message: AUTH_FAILED,You are already logged in - access denied
25/11/2015 16:57:18 brat nm-openvpn[2630] SIGUSR1[soft,auth-failure] received, process restarting
|
after several attempts in the end either links VPN or not. If links logs says OK.....
PHP Code:
25/11/2015 17:45:48 brat NetworkManager[789] <info> VPN connection 'CH - Zurich @tigervpn.com' (IP Config Get) reply received.
25/11/2015 17:45:48 brat NetworkManager[789] <info> VPN connection 'CH - Zurich @tigervpn.com' (IP4 Config Get) reply received.
25/11/2015 17:45:48 brat NetworkManager[789] <info> VPN Gateway: 178.255.153.76
25/11/2015 17:45:48 brat NetworkManager[789] <info> Tunnel Device: tun0
25/11/2015 17:45:48 brat NetworkManager[789] <info> IPv4 configuration:
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal Gateway: 10.108.21.1
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal Address: 10.108.21.16
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal Prefix: 24
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal Point-to-Point Address: 0.0.0.0
25/11/2015 17:45:48 brat NetworkManager[789] <info> Maximum Segment Size (MSS): 0
25/11/2015 17:45:48 brat NetworkManager[789] <info> Forbid Default Route: no
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal DNS: 178.255.153.77
25/11/2015 17:45:48 brat NetworkManager[789] <info> Internal DNS: 8.8.8.8
25/11/2015 17:45:48 brat NetworkManager[789] <info> DNS Domain: '(none)'
25/11/2015 17:45:48 brat NetworkManager[789] <info> No IPv6 configuration
25/11/2015 17:45:48 brat NetworkManager[789] <info> VPN plugin state changed: started (4)
.......but there is another error about routing
PHP Code:
25/11/2015 17:45:48 brat NetworkManager[789] <error> [1448469948.775758] [platform/nm-linux-platform.c:2883] do_change_link(): platform-linux: do-change-link: failure changing link 6: No such device (31)
25/11/2015 17:45:48 brat NetworkManager[789] <warn> platform-linux: do-add-ip4-address: failure adding ip4-address '6: 10.108.21.16/24': No such device (31)
25/11/2015 17:45:48 brat NetworkManager[789] <warn> platform-linux: do-add-ip4-route: failure adding ip4-route '6: 0.0.0.0/0 50': Unspecific failure (1)
25/11/2015 17:45:48 brat NetworkManager[789] <warn> default-route: failed to add default route 0.0.0.0/0 via 10.108.21.1 dev 6 metric 50 mss 0 src vpn with effective metric 50
and there is no tun0 in routing table but nm-applet shows connection.Route command shows that tunnel is assembled from eth0 and there is no tun0 interface.
PHP Code:
[16:36:28 --> root in po]$ ip route
default via 192.168.178.1 dev eth0 proto static metric 100
127.0.0.0/8 dev lo scope link
178.255.153.76 via 192.168.178.1 dev eth0 proto static metric 100
192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.7 metric 100
[16:36:33 --> root in po]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.178.1 0.0.0.0 UG 100 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
zurich.tigerbac 192.168.178.1 255.255.255.255 UGH 100 0 0 eth0
192.168.178.0 * 255.255.255.0 U 100 0 0 eth0
I do not know what to say. I revert back NM to that from slackware 14.1 that works but in current do not work previous like a newest.
Something goes wrong with NM but cli openvpn works like expected without issue.