Skip to main content

Questions tagged [xl2tpd]

xl2tpd is a layer 2 tunneling protocol client/daemon for Linux. It's typically used to configure PPP tunnels as part of a VPN. Since it provides only simple, unencrypted tunnels, it's usually used in conjunction with IPSec.

Filter by
Sorted by
Tagged with
9 votes
0 answers
2k views

Android to openswan/xl2tpd/pppd error: result_code_avp: avp is incorrect size. 8 < 10

I am trying to use a simple Android 4.4.4 VPN connection to openswan/xl2tpd/pppd combo. the IPSec SA works, but xl2tpd at one point terminates the pppd and this shows up in logs: xl2tpd[17990]: ...
Konrads's user avatar
  • 900
6 votes
1 answer
3k views

IPSec + L2TP + NAT-Traversal does not work for multiple clients behind same nat

I have recently configured a VPN server hosted in AWS EC2. Details: Centos 6.4, openswan, xl2tpd, NAT-traversal. The configuration works great for a scenario when only one user connects form a given ...
Fentik's user avatar
  • 61
3 votes
1 answer
669 views

strongSwan 5.6.2 and xl2tp 1.3.12 on Ubuntu 18.04 SA established but no traffic

Since updating strongSwan and xl2tpd to the latest versions available for Ubuntu I encounter a problem with ESP and AH in L2TP. Server config: Interface for generating traffic ens224: flags=4163<...
Boris's user avatar
  • 31
3 votes
1 answer
2k views

L2TP VPN Connection on Debian Squeeze

I need to make an L2TP VPN connection from a Debian Squeeze server. What I have is: The server IP address Shared Key My username and password Just using these 3 parameteres I can establish the VPN ...
Lashae's user avatar
  • 183
2 votes
1 answer
917 views

Proxy vpn traffic into socks or second vpn

I have an Ubuntu 16.04 server that I have running xl2tp and openvpn as a VPN server. However, I want the server itself to be connected to either a SOCKS Proxy or another OpenVPN connection. That is: ...
cegfault's user avatar
  • 185
2 votes
2 answers
2k views

How to deny connections to xl2tp without ipsec encryption?

I try to setup l2tp+ipsec server for my mobile use and my home router use. So I made some setup and checked it works fine from android device. I see encryption on ipsec --status. My system is CentOS ...
Insspb's user avatar
  • 33
2 votes
1 answer
2k views

VPN with xl2tpd and racoon - how to NAT traffic out of non-default IP address

I have a server running Debian which has networking like this: eth0 - has public IP address 1.2.3.4 eth1 - has public IP address 1.2.3.5 I'm trying to set up a VPN on the server which I can connect ...
David North's user avatar
2 votes
0 answers
1k views

Xl2tpd + pppd tunnel persist error

The issue I am experiencing is based around a l2tp tunnel from a Raspberry pi3 to our radius server. If there is no response from the server for over a minuet the ‘ppp0’ interface made by xl2tpd gets ...
Sam Hester's user avatar
2 votes
1 answer
2k views

Can't Ping other local ips on l2tp vpn connection, getting: ping: sendmsg: No such device

I have setup an l2tp client using xl2tp to connect to an l2tp vpn server. The server connection requires that the connection be setup WITHOUT ipsec. So I have set up a basic xl2tp connection. The ...
user2293727's user avatar
2 votes
0 answers
572 views

Separate L2TP/IPsec VPNs with dynamic VLAN assignment

I am working on a Linux (Debian 7) VPN concentrator for different kinds of remote access. One of the offered protocols is L2TP/IPsec because of the client availability. I am using xl2tpd which in turn ...
terminal's user avatar
2 votes
0 answers
579 views

IPsec connection established but xl2tpd times out

This may or may not be related to my problem with passing ipsec verify. I have configured L2TP/IPsec VPN on Ubuntu 13.04 following Ubuntu's community documentation and while IPsec connection seems ...
Damn Terminal's user avatar
1 vote
1 answer
13k views

strongSwan + xl2tpd VPN server: how to configure several config files?

I set up my VPN server with strongSwan and xl2tpd on Ubuntu server 16.04. After configuring, I tried to connect from a iPad, but got the errors as follows: Mar 26 02:22:13 myname-ubuntu-server charon:...
Taiki Bessho's user avatar
1 vote
2 answers
2k views

Seeing Who is Logged into LibreSwan VPN

We recently setup a LibreSwan VPN and for the most part it is working great. One thing we are having some trouble with is trying to see who is currently logged in. I found a solution for seeing ...
Nathan's user avatar
  • 171
1 vote
1 answer
3k views

IDir '193.174.193.64' does not match to 'vpngw.fh-kempten.de

I am trying to configure my client using VPN (strongswan) to access the remote server whose DNS is vpngw.fh-kempten.de Details of my remote VPN Server are: Authentication Method = Mutual +XAuth PSK =*...
Saqib Shakeel's user avatar
1 vote
1 answer
1k views

Clients cannot connect to L2TP server on Ubuntu 12.04 & 14.04 LTS

I am trying to set up a L2TP/IPSec server on AWS with instance running Ubuntu 14.04LTS. I followed the instructions that I found here : https://raymii.org/s/tags/vpn.html. I tried to use 12.04LTS ...
CK Tan's user avatar
  • 171
1 vote
1 answer
1k views

l2tp/pptp + freeradius (accounting information only gets updated on disconnect)

I have a basic PPTP/L2TP setup that uses a remote freeradius server with mysql. Issue is that when a user gets connected to the vpn and as long as the user stays connected (could be hours), no ...
miso's user avatar
  • 11
1 vote
2 answers
14k views

Openswan + xl2tpd connections time out after a while

I have a non-NATed Openswan+xl2tpd server (Ubuntu 12.04), to which I connect with a Windows 8 behind NAT. The client loses its connection after a while of doing nothing (between 30 and 60 minutes, but ...
Halfgaar's user avatar
  • 8,234
1 vote
1 answer
3k views

Setup L2TP Ubuntu Server without IPSec (yes I know thats very odd)

Im trying to tunnell my traffic from a bunch of low end mikrotik routers through a L2PT tunnel, and these routers are not powerful enough to run encryption. I have Ubuntu 20.04 VPS, and have ...
Evan Feldman's user avatar
1 vote
0 answers
2k views

L2TP over IPSec strongswan/xl2tpd pppd interface name changes

I have encountered a possible problem in my VPN setup. I have two different entry points into clients network, so I set two services up and, since one of the VPN-connections is slightly better for us, ...
Tymur Gubayev's user avatar
1 vote
1 answer
2k views

l2tp/ipsec unable to connect on linux

I'm trying to connect to cisco l2tp/ipsec vpn with PSK and IKEv1 username/password. According to this article, I've found that server supports following authentification methods: SA=(Enc=3DES Hash=MD5 ...
Denis Sheremet's user avatar
1 vote
0 answers
342 views

FreeRADIUS 3, libradcli4 and ppp compatibility

I'm using Freeradius to authenticate VPN clients using PPTP or L2TP/IPSec (xl2tpd) and I want to do an upgrade from Debian 8 to 9 on our servers incl. upgrading version of Freeradius (2 -> 3). Both ...
Naxos's user avatar
  • 11
1 vote
0 answers
812 views

Openswan l2tp vpn ppp wrong ip address

Using Openswan with xl2tp on archlinux (4.20) to connect to a vpn, I can create the tunnel and the ppp interface is created howerver it gets the wrong ip address: enp4s0: <BROADCAST,MULTICAST,...
2A-66-42's user avatar
  • 111
1 vote
0 answers
953 views

Strongswan + xl2tpd vpn client Assigning static ip address for ppp interfaces

I have strongswan + xl2tpd vpn client working, it assigns ip address to ppp interface via dhcp from vpn server, how can i assign static ip for the ppp interface discarding dhcp
Priyan R's user avatar
  • 171
1 vote
1 answer
3k views

OpenWRT StrongSwan IPsec client connection (XAuth authentication of 'user' (myself) failed)

I am trying to configure my OpenWRT router to connect to a remote VPN server. The credentials that I have are correct, but for some reason the connection is failing to authenticate on the router. Here ...
Max00355's user avatar
  • 133
1 vote
1 answer
2k views

How to connect VPN Client Openswan

I have VPN server using Openswan with address 103.19.208.247 Then, i want connect my laptop (CENTOS) with IP 103.19.208.243 to VPN server. Here my configuration: /etc/ipsec.conf config setup ...
lala's user avatar
  • 13
1 vote
1 answer
7k views

xl2tp + strongswan ipsec -- xl2tp timeout

I'm trying to connect to a ipsec/l2tp vpn from a private network behind a nat-router. It works from different windows clients, but from my linux machine (openSuSE 12.3, strongswan 5.1.3, xl2tp 1.3.0) ...
thr's user avatar
  • 23
1 vote
0 answers
189 views

OpenSwan and L2TPd traversing secondary gateway

I need some help with a networking project using Linux (RHEL based) and open swan with L2TPd (xl2tpd). While the initial setup works great, I want my VPN traffic to traverse over the secondary ...
PsychoSquirrel's user avatar
1 vote
0 answers
2k views

Strongswan IPSec + XL2TP connection not working

I am trying to set up a VPN (Strongswan + xl2tpd) between my desktop and a server in AWS both running Linux (Ubuntu) but I really am getting lost. I believe I have the IPSec part working but I am not ...
Robin Elvin's user avatar
1 vote
0 answers
299 views

ubuntu xl2tp ppp0 not properly handling the DF flag (Packet Corrupt) while sending packages > defined MTU

While trying to setup an Ubuntu Linux server as a client to an l2tp/IPSEC server, I notice inconsistencies while trying to send data. The tunnel/VPN establish the connection / handshake properly and ...
nbari's user avatar
  • 568
1 vote
0 answers
3k views

Cannot connect to IPSEC/L2TP VPN Arch Linux/Windows 8

I have check a lot of other L2TP/IPsec VPN post and none of them seem to quite match the issues I am having so here is what going on. I am trying to set up a VPN on my Arch Linux server that I can ...
angellusmortis's user avatar
0 votes
1 answer
2k views

ubuntu 16.04 l2tp over ipsec

i have vpn server and i use this tutorial to connect l2tpd over ipsec: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#linux http://www.jasonernst.com/2016/06/21/l2tp-ipsec-vpn-...
Piotr Kazuś's user avatar
0 votes
0 answers
510 views

VPN client creation on Ubuntu with strongswan fails

I've set up a L2TP VPN server on my home router and the connection between Windows 10 clients works properly. Now I want to set up a VPN client on a Ubuntu 18.04 machine. I've used this configuration (...
Luca De Fassi's user avatar
0 votes
1 answer
1k views

How to fix these xl2tpd errors?

How to fix these xl2tpd errors? How to fix these xl2tpd errors? l2tp/ipsec connection. I use xl2tpd along with strongswan. Strongswan is rising, everything is ok. I see myself connected to the gateway ...
epx's user avatar
  • 1
0 votes
1 answer
261 views

Is it possible to have L2TP/IPsec VPN auto disconnect after x hours?

I couldn't find anything on Google, everything that I found was related to the opposite problem, VPN disconnecting when people don't want it to. A little backstory: one of our potential clients needs ...
Rikudou_Sennin's user avatar
0 votes
1 answer
2k views

L2TP over IPSec strongswan/xl2tpd works on clone but not on original

I'm setting up VPN connection from firm network to clients. Currently: L2TP VPN. My first step was cloning current router-VM (it's a Hyper-V machine). I then proceeded to configure and experiment with ...
Tymur Gubayev's user avatar
0 votes
2 answers
6k views

Setup l2tp using Strongswan

I setup ikev2 using Strongswan, Now I need to add l2tp support to that What is the best and easy method to add l2tp support to Strongswan? Appreciate for any help
Farhad Sakhaei's user avatar
0 votes
2 answers
3k views

radiusclient on debian 9

I have debian 9 server and want to setup a Xl2tp with radius authentication. When I add plugin radius.so on my ppp options, it try to read /etc/radiusclient and unfortunately I don't have ...
Pouria Mousavizadeh Tehrani's user avatar
0 votes
1 answer
1k views

L2TP/IPsec server - reserve an IP address to a certain user in AD

I have set up a rather simple L2TP/IPsec server with xl2tpd, which has a pool of IP addresses in xl2tpd.conf configured for VPN clients. I now need to assign a certain IP address to a VPN client if ...
Vesper's user avatar
  • 824
0 votes
0 answers
1k views

Routing to L2TP/IPSec VPN (strongswan, xl2tpd). Can ping server inside VPN, cannot ssh (SSH is not ESP payload)

I created a L2TP/IPSec tunnel and I am struggling with routing, I cannot SSH to a machine in the remote network. My local system is Debian buster (current testing). Here is my local networkg config; ...
kmwil's user avatar
  • 225
0 votes
1 answer
3k views

I can't connect to my L2TP server from Windows and Android clients

On my Ubuntu 16.04 server xl2tpd service running successful. My /etc/ipsec.conf: version 2.0 config setup nat_traversal=yes oe=off protostack=netkey conn L2TP-PSK authby=secret ...
Platon Efimov's user avatar
0 votes
0 answers
3k views

unable to install inbound and outbound IPsec SA (SAD) in kernel

I'm trying to install L2TP over IPsec using strognswan and xl2tp daemon. this is my config : conn L2TP-PSK-NAT also=L2TP-PSK-noNAT conn L2TP-PSK-noNAT authby=secret auto=...
Vitalik Jimbei's user avatar
0 votes
1 answer
4k views

StrongSwan + xl2tpd client timeout between 2-5 minutes

I run CentOS 6.4 on Amazon EC2, using xl2tpd-1.3.1 from EPEL repository together with StrongSwan 5.0.4. I setup a simple IPSec connection: conn l2tp type=transport keyexchange=ikev1 ...
Howard's user avatar
  • 313
0 votes
1 answer
563 views

ipsec (openswan) routing or dns issue with iphone

I got an established VPN connection, but either the routing or the resolving is not working. The configuration is taken from http://louwrentius.com/blog/2011/12/setting-up-a-vpn-with-your-iphone-using-...
Daniel W.'s user avatar
  • 1,799
-1 votes
1 answer
2k views

How to proxy a l2tp server? [closed]

My topologic is : Host1(MyL2TP Client) <=========> Host2 (L2TP Server, SOCKS5 Proxy Client) <==========> Host3(SOCKS5 Proxy Server) <======> Internet Host2 is ubuntu14.04, how ...
Alex Chan's user avatar
  • 107
-1 votes
1 answer
620 views

Install and configure xl2tpd server side by side strongswan

I installed strongSwan 5.9.1 and working fine, I need to install xl2tpd side by side with running strongSwan service. Please guide me to configure xl2tpd service step by step. My OS is *Debian 11.
Realbitt's user avatar
  • 101