[Swan] VPN server on Debian 10 using L2TP with IPSEC PSK not working

Paul Wouters paul at nohats.ca
Mon Nov 22 19:51:19 EET 2021

On Mon, 22 Nov 2021, Mirsad Goran Todorovac wrote:

> I have made the suggested correction, and now the error message is different:
> The new error log is available at 
> https://domac.alu.hr/mtodorov/xl2tpd-ipsec-20211122-3.log

> What strikes at first is the line:
> Nov 22 18:06:09.628375: packet from initial Main Mode 
> message received on but no connection has been authorized 
> with policy PSK+IKEV1_ALLOW

Did you not confiure PSK (authby=secret) on the server ?

> I will try IKEv2, but does it connect from both Windows 10 and Android just 
> like this old setup?

Old Android's need the strongswan app to use IKEv2. The latest android
should have support for IKEv2 natively.


More information about the Swan mailing list