-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L2TP connection doesn't work and is being removed automatically after ~1 minute #18
Comments
I have seen "plugin NeedSecrets request #1 failed" before, but not "No valid VPN secrets", so I'm not sure what the issue there is. I'm not sure which version you are using, is it from the master branch or nm-1-2 branch? I would recommend the master branch as the nm-1-2 branch is currently a work in progress. Or as you are not using IPsec and strongSwan, the 1.2.2 version tag should be fine also. Some people have reported issues with the system xl2tpd and are able to get a stable L2TP connection with a locally built xl2tpd installed to /usr/local/, i.e. :
|
I tried both current master and nm-1.2 with the same result. I think there is something wrong with the routes being setup after the connection is established. before
after
In this case DNS addresses are 213.234.192.7, 85.21.152.5, VPN gateway IP is 213.234.199.198. |
I think what you are seeing is the default NetworkManager VPN routing table behaviour, i.e. all traffic goes over the VPN connection. Routes with lower metrics are chosen over routes with higher metrics and it has a full netmask of 255.255.255.255. I don't see anything wrong with the routing table. You could try the solution on the following page for a possible DNS solution : You can also override the default routes in the "IPv4 Settings" for the VPN connection in the NetworkManager connection manager editor. |
I tried overriding default routes but was unable to reflect the if-up script I used before
Please look at my logs here |
From the screenshots, I thought you weren't using IPsec (i.e. strongSwan), but looks like I didn't read the log properly and now see lines with strongSwan's IKE keying daemon charon :
It doesn't look any IPsec session is being setup, so not sure why that charon line appears. You could try stopping IPsec (and charon) with:
and then try again. |
Unfortunately that didn't help. I also tried live ubuntu for the experimental integrity - same results. I'm worried about the lines
Usually it's like |
Have you tried with a locally built xl2tpd installed to /usr/local/ yet ? Are you able to get a successful L2TP connection with the xl2tpd command-line and suitable config files ? I'm not seeing the /dev/pts/* in my log output for the Connect line either on Ubuntu 16.04 and Fedora both using pppd 2.4.7, but I do see it with Debian 8 and pppd 2.4.6. Snippet from my log output for a successful connection around that line :
|
I tried a new Ubuntu 16.04 installation, still with no success. But when I create the connection manually it works:
nm-l2tp plugin still doesn't work even if xl2tpd is compiled locally. |
It's weird but after the aforementioned procedure nm-l2tp plugin started to work. You may close the issue but I still don't understand it. |
Glad to hear it is now working. I wonder if it there was a NetworkManager package update, Ubuntu 16.04 shipped with a developer release of NetworkManager 1.1.93 and then they made version 1.2.0 available as an update. Version 1.9.3 had a number of issues, but can't remember if routing was one of them. |
I have downloaded version 1.2 for NetworkManager 1.2 and successfully compiled it for my Mint 18 x86_64 (Cinnamon). The first problem I've encountered was "No valid VPN secrets" which I solved editing file
/etc/NetworkManager/system-connections/MyConnection
settingpassword-flags=0
and adding:Now L2TP connection is being established but nothing works neither DNS nor any connections. Besides after like 1 minute the L2TP connection gets terminated automatically.
Relevant system logs
The text was updated successfully, but these errors were encountered: