You are not logged in.

#1 2022-04-09 09:46:02

F-104ASA
Member
Registered: 2019-04-19
Posts: 9

setup of a l2tp VPN connection to Windows server

Dear all,

I am trying to connect via VPN to a (Windows) PC in my office at the university, but my connection fails, and cat /var/log/messages tells me the following:

Apr  9 17:48:38 lenovo-laptop NetworkManager[617]: <info>  [1649494118.8683] audit: op="connection-activate" uuid="79690af9-7c93-400d-9c4f-48dac7af97a9" name="VPNSaDaiOffice" pid=1415 uid=1000 result="success"
Apr  9 17:48:38 lenovo-laptop NetworkManager[617]: <info>  [1649494118.8726] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: Started the VPN service, PID 19453
Apr  9 17:48:38 lenovo-laptop NetworkManager[617]: <info>  [1649494118.8825] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: Saw the service appear; activating connection
Apr  9 17:48:38 lenovo-laptop NetworkManager[617]: <info>  [1649494118.9489] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: VPN connection: (ConnectInteractive) reply received
Apr  9 17:48:39 lenovo-laptop nm-l2tp-service[19453]: Check port 1701
Apr  9 17:48:42 lenovo-laptop nm-l2tp-service[19453]: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
Apr  9 17:48:42 lenovo-laptop NetworkManager[617]: <info>  [1649494122.4485] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: VPN plugin: state changed: stopped (6)
Apr  9 17:48:42 lenovo-laptop NetworkManager[617]: <info>  [1649494122.4533] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: VPN service disappeared
Apr  9 17:48:42 lenovo-laptop NetworkManager[617]: <warn>  [1649494122.4547] vpn-connection[0x5632c829e2e0,79690af9-7c93-400d-9c4f-48dac7af97a9,"VPNSaDaiOffice",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'

I am on BunsenLabs Lithium, I have network-manager-l2tp, network-manager-l2tp-gnome, xl2tp, openvpn, network-manager-openvpn, strongswan installed, but I have to stop xl2tpd service to open port 1701.
On the server side, the server type is Windows builtin, and the type of VPN connection is L2TP/IPsec with a pre-shared key. I have gotten the server name and address, the pre-shared key, the password, and the user name from the computer center, and I enter them all in network manager GUI. I have left the gateway ID and Phase 1/2 Algorithms fields blank.
I have searched about that g_dbus_method_invocation_take_error, but found no helpful solution...
Can someone help me ?

Thank you for your time and attention.

P.S. Thank you very much to the developers for this reliable, pleasant, and nimble distribution that is my main drive since three years by now

Offline

#2 2022-04-09 10:43:05

twoion
-
Registered: 2015-08-10
Posts: 3,541

Re: setup of a l2tp VPN connection to Windows server

So am I reading this right: you are using the network manager plugin to configure this setup. Here's the source of the nm-l2tp plugin. https://github.com/nm-l2tp/NetworkManager-l2tp ACcording to it, it orchestrates both strongswan and xl2tp to handle the connection. Stepping back from the problem, perhaps you could try reading through the debugging instructions https://github.com/nm-l2tp/NetworkManag … #debugging first; this shows you how to get the logs from the strongswan and xl2tp daemons directly (not network manager's version). It also mentions implications and workarounds for the port 1701 problem. Additionally, their wiki https://github.com/nm-l2tp/NetworkManag … own-Issues contains a list of known issues. I think unless a user here is actively using nm-l2tp and knows exactly where to look, following these materials would be your best bet for debugging first (I've never used this particular protocol configuration).

Offline

#3 2022-04-15 10:23:40

F-104ASA
Member
Registered: 2019-04-19
Posts: 9

Re: setup of a l2tp VPN connection to Windows server

thank you twoion for your fast reply.

Actually, the problem was on the server side and not on my client side: as the university computer center corrected the server settings, I have been able to connect to VPN with the setup I detailed in my initial post.
Then I installed remmina, set up the RDP connection with the IP address, username, and password of the remote Windows 10, and now I can access my Windows desktop at the university from my BunseLabs desktop at home smile  smile  big_smile

Offline

Board footer

Powered by FluxBB