Code Monkey home page Code Monkey logo

networkmanager-l2tp's Introduction

NetworkManager-l2tp

NetworkManager-l2tp is a VPN plugin for NetworkManager 1.20 and later which provides support for L2TP and L2TP/IPsec (i.e. L2TP over IPsec) connections.

For L2TP support, it uses either of the following :

For IPsec support, it uses either of the following :

For user authentication it supports either:

  • username/password credentials.
  • TLS certificates.

For machine authentication it supports either:

  • Pre-shared key (PSK).
  • TLS certificates.

For TLS user certificate support, ppp >= 2.4.9 is required or the EAP-TLS patch for pppd needs to be applied to the ppp source code for older versions :

The configure script will attempt to determine if pppd EAP-TLS support is available and will disable the build time TLS user certificate support if it can not be detected.

This VPN plugin auto detects the following TLS certificate and private key file formats by looking at the file contents and not the file extension :

  • PKCS#12 certificates.
  • X509 certificates (PEM or DER).
  • PKCS#8 private keys (PEM or DER)
  • traditional OpenSSL RSA, DSA and ECDSA private keys (PEM or DER).

For details on pre-built packages, known issues and build dependencies, please visit the Wiki :

Building

./autogen.sh
./configure  # (see below)
make

The default ./configure settings aren't reasonable and should be explicitly overridden with ./configure arguments. In the configure examples below, if you have pppd < 2.5.0 you may need to use --with-pppd-plugin-dir and set it to an appropriate directory that exists, similarly --with-nm-ipsec-nss-dir may need to be set to the Libreswan NSS database location if it is not located in /var/lib/ipsec/nss. The --enable-libreswan-dh2 switch can be used with libreswan < 3.30 or libreswan packages built with USE_DH2=true i.e. have modp1024 support.

Debian 13 and Ubuntu 24.04 (AMD64, i.e. x86-64)

./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
  --runstatedir=/run \
  --with-gtk4

Debian 11 and Ubuntu 22.04 (AMD64, i.e. x86-64)

./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
  --libexecdir=/usr/lib/NetworkManager \
  --runstatedir=/run \
  --with-pppd-plugin-dir=/usr/lib/pppd/2.4.9

Fedora 39 and later (x86-64)

./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib64 \
  --runstatedir=/run \
  --with-gtk4

Red Hat Enterprise Linux 8 (x86-64)

./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib64 \
  --localstatedir=/var \
  --enable-libreswan-dh2 \
  --with-nm-ipsec-nss-dir=/etc/ipsec.d \
  --with-pppd-plugin-dir=/usr/lib64/pppd/2.4.7

openSUSE Tumbleweed (x86-64)

./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib64 \
  --libexecdir=/usr/lib \
  --localstatedir=/var \
  --enable-libreswan-dh2 \
  --with-gtk4

Run-time generated files

The following files located under /var/run assume --localstatedir=/var or --runstatedir=/var/run were supplied to the configure script at build time.

  • /var/run/nm-l2tp-UUID/xl2tpd.conf
  • /var/run/nm-l2tp-UUID/xl2tpd-control
  • /var/run/nm-l2tp-UUID/xl2tpd.pid
  • /var/run/nm-l2tp-UUID/ppp-options
  • /var/run/nm-l2tp-UUID/ipsec.conf
  • /etc/ipsec.d/ipsec.nm-l2tp.secrets

where UUID is the NetworkManager UUID for the VPN connection.

If strongswan is being used, NetworkManager-l2tp will append the following line to /etc/ipsec.secrets at run-time if the line is missing:

include ipsec.d/ipsec.nm-l2tp.secrets

Password protecting the libreswan NSS database

The NSS database is used by NetworkManager-l2tp for machine certificate VPN connections using libreswan.

libreswan >= 4.0 default NSS database location is /var/lib/ipsec/nss/ and for all versions of libreswan on Debian/Ubuntu. Older libreswan versions often use /etc/ipsec.d/ such as on older version of RHEL/Fedora/CentOS.

The default libreswan package install for most Linux distributions uses an empty password. It is up to the administrator to decide on whether to use a password or not. However, a non-empty database password must be provided when running in FIPS mode.

See the following page on how to set the password for the libreswan NSS database and the syntax for the /var/lib/ipsec/nss/nsspassword file where the password is stored:

Debugging

For Systemd based Linux distributions logging goes to the Systemd journal which can be viewed by issuing the following :

journalctl --no-hostname _SYSTEMD_UNIT=NetworkManager.service + SYSLOG_IDENTIFIER=pppd

if using go-l2tp's kl2tpd, it is recommended to issue the following :

journalctl --no-hostname _SYSTEMD_UNIT=NetworkManager.service + _COMM=kl2tpd + SYSLOG_IDENTIFIER=pppd

For some versions of Fedora, libreswan logging also goes to /var/log/pluto.log.

For non-Systemd based Linux distributions, view the appropriate system log file which is most likely located under /var/log/.

Increase Debugging Output

To increase debugging output, issue the following on the command line, it will also prevent the run-time generated config files from being deleted after the VPN connection is disconnected :

Debian and Ubuntu

sudo killall -TERM nm-l2tp-service
sudo /usr/lib/NetworkManager/nm-l2tp-service --debug

Fedora and Red Hat Enterprise Linux

sudo killall -TERM nm-l2tp-service
sudo /usr/libexec/nm-l2tp-service --debug

openSUSE

sudo killall -TERM nm-l2tp-service
sudo /usr/lib/nm-l2tp-service --debug

then start your VPN connection and reproduce the problem.

For Systemd based Linux distributions when increasing the debugging output by running nm-l2tp-service --debug on the command-line, you may need to issue the following to see more log output:

journalctl -b

Libreswan Custom Debugging

The Libreswan debugging can be customized by setting the PLUTODEBUG env variable which corresponds to the plutodebug ipsec.conf config section option. The syntax for PLUTODEBUG is a white-space separated list of the following format :

PLUTODEBUG="TYPE TYPE ... TYPE"

Where TYPE is a debug option from the list output by issuing the following on the command-line :

ipsec whack --debug list

Examples:

Debian and Ubuntu

sudo PLUTODEBUG="all proposal-parser" /usr/lib/NetworkManager/nm-l2tp-service --debug

Fedora and Red Hat Enterprise Linux

sudo PLUTODEBUG="all proposal-parser" /usr/libexec/nm-l2tp-service --debug

openSUSE

sudo PLUTODEBUG="all proposal-parser" /usr/lib/nm-l2tp-service --debug

strongSwan Custom Debugging

The strongSwan debugging can be cutomized by setting the CHARONDEBUG env variable which corresponds to the charondebug ipsec.conf config section option. The syntax for CHARONDEBUG is a comma separated list of the following format :

CHARONDEBUG="TYPE LEVEL, TYPE LEVEL, ..., TYPE LEVEL"

where TYPE is: any|dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|esp|lib

and LEVEL is: -1|0|1|2|3|4

Examples:

Debian and Ubuntu

sudo CHARONDEBUG="knl 1, ike 2, esp 2, lib 1, cfg 3" /usr/lib/NetworkManager/nm-l2tp-service --debug

Fedora and Red Hat Enterprise Linux

sudo CHARONDEBUG="knl 1, ike 2, esp 2, lib 1, cfg 3" /usr/libexec/nm-l2tp-service --debug

openSUSE

sudo CHARONDEBUG="knl 1, ike 2, esp 2, lib 1, cfg 3" /usr/lib/nm-l2tp-service --debug

Libreswan no longer supports IKEv1 packets by default

On some later Linux distributions, Libreswan no longer supports IKEv1 packets by default, the following error occurs if this is the case :

failed to add IKEv1 connection: global ikev1-policy does not allow IKEv1 connections

To re-enable IKEv1, add ikev1-policy=accept to the config setup section of /etc/ipsec.conf

Issue with blacklisting of L2TP kernel modules

go-l2tp's kl2tpd requires l2tp_ppp and l2tp_netlink kernel modules which will fail to auto-load if the kernel modules are blacklisted.

If you are using xl2tpd and see the following error message, then chances are that the l2tp_ppp and l2tp_netlink kernel modules are blacklisted :

xl2tpd[1234]: L2TP kernel support not detected (try modprobing l2tp_ppp and pppol2tp)

For xl2tpd compatibility with Microsoft L2TP servers (and some other L2TP servers), L2TP kernel modules are required.

sudo modprobe l2tp_ppp (or sudo modprobe pppol2tp for older kernels) can be used as a temporary workaround, but it is recommended to do a blacklist removal as described further which provides a permanent solution.

The following is an extract from "Enhanced security of auto-loading kernel modules in RHEL 8 " web page :

To enhance Red Hat Enterprise Linux against possible future security vulnerabilities in lesser-known components which system administrators typically do not protect against, a set of kernel modules have been moved to the kernel-modules-extra package and blacklisted by default so those components cannot be loaded by non-root users.

When a system requires use of one of these kernel modules, the system administrator must explicitly remove the module blacklist.

Although the above is for RHEL8, it is also applicable to Fedora >= 31, CentOS 8 and other derivatives.

The /etc/modprobe.d/l2tp_netlink-blacklist.conf file contains:

# Remove the blacklist by adding a comment # at the start of the line.
blacklist l2tp_netlink

The /etc/modprobe.d/l2tp_ppp-blacklist.conf file contains :

# Remove the blacklist by adding a comment # at the start of the line.
blacklist l2tp_ppp

To remove the blacklist of the L2TP modules by adding a # comment to the start of the blacklist lines can be achieved with:

sudo sed -e '/blacklist l2tp_netlink/s/^b/#b/g' -i /etc/modprobe.d/l2tp_netlink-blacklist.conf
sudo sed -e '/blacklist l2tp_ppp/s/^b/#b/g' -i /etc/modprobe.d/l2tp_ppp-blacklist.conf

L2TP connection issues with UDP source port 1701

First some examples showing successful L2TP connections demonstrating source port and ephemeral port terminologies used by the subsequent issues.

The following example uses network diagnostic tools netstat and the newer ss to show a successful L2TP connection between a client with its local address (source address and port) and a server with its foreign/peer address and port, where the source port is 1701.

$ netstat -u -n
Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 10.184.42.84:1701      123.45.6.78:1701        ESTABLISHED

$ ss -u -n
Recv-Q   Send-Q         Local Address:Port        Peer Address:Port   Process
0        0               10.184.42.84:1701         123.45.6.78:1701

The following shows a successful L2TP connection where the source port is an ephemeral port (i.e. random high port), in this example it is 45575.

$ netstat -un
Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 10.184.42.84:45575     123.45.6.78:1701        ESTABLISHED

$ ss -u -n
Recv-Q   Send-Q         Local Address:Port        Peer Address:Port   Process
0        0               10.184.42.84:45575        123.45.6.78:1701

Unable to establish L2TP connection without UDP source port 1701

There are some L2TP/IPsec servers that will reject L2TP connections when an ephemeral source port is used (i.e. when UDP source port 1701 is not used), even though the use of an ephemeral port is considered acceptable in RFC3193, the L2TP/IPsec standard co-authored by Microsoft and Cisco.

When NetworkManager-l2tp tries to start its own instance of xl2tpd or kl2tpd, if UDP port 1701 is not free (e.g. system xl2tpd is listening on UDP port 1701), an ephemeral source port will be used.

The following netstat and ss command-lines can be used to check if there is system xl2tpd (or some other daemon) listening on UDP port 1701 :

$ sudo netstat -unlp | grep 1701
udp        0      0 0.0.0.0:1701            0.0.0.0:*                           4123/xl2tpd

$ sudo ss -unlp | grep 1701
UNCONN 0      0                               0.0.0.0:1701         0.0.0.0:*     users:(("xl2tpd",pid=4123,fd=3))

Stopping the system xl2tpd service should free UDP port 1701 and on systemd based Linux distributions, the xl2tpd service can be stopped with the following:

sudo systemctl stop xl2tpd.service

If stopping the xl2tpd service fixes your VPN connection issue, you can disable the xl2tpd service from starting at boot time with :

sudo systemctl disable xl2tpd.service

There are some cases where disabling a service doesn't stop it from being started at boot time. You can check if the xl2tp service is still running with the following :

systemctl disable xl2tpd.service

If it is still running, you can issue the following to ensure is isn't started at boot time:

sudo systemctl mask xl2tpd.service

Unable to establish L2TP connection with UDP source port 1701

Generally NAT-Traversal does not work for multiple L2TP clients behind the same NAT if the clients are all using UDP source port 1701, as the server is unable to differentiate between multiple L2TP connections coming from the same NAT.

For NetworkManager-l2tp the simplest workaround to allow the server to differentiate between multiple L2TP connections from the same NAT is to use an ephemeral source port. Either click the "Use L2TP ephemeral source port" checkbox in the settings, or enable and start the system xl2tpd.

Some L2TP/IPsec servers can be configured to use a connmark plugin (or similar) to differentiate between L2TP connections from the same NAT.

IPsec IKEv1 weak legacy algorithms and backwards compatibility

There is a general consensus that the following legacy algorithms are now considered weak or broken in regards to security and should be phased out and replaced with stronger algorithms.

Encryption Algorithms :

  • 3DES
  • Blowfish

Integrity Algorithms :

  • MD5
  • SHA1

Diffie Hellman Groups :

  • MODP768
  • MODP1024
  • MODP1536

The following strongSwan page has more details on which algorithms are considered broken:

Legacy algorithms that are considered weak or broken are regularly removed from the default set of allowed algorithms with newer releases of strongSwan and libreswan.

As of NetworkManager-l2tp version 1.2.16, it was decided to compromise for backwards compatibility by not using the strongSwan and libreswan default set of allowed algorithms, instead algorithms that are a merge of Windows 10 and macOS/iOS/iPadOS L2TP/IPsec clients' IKEv1 proposals are used instead. The weakest proposals that were not common to both Win10 and iOS were dropped, but all of the strongest ones were kept:

Phase 1 - Main Mode
{enc=AES_CBC_256 integ=HMAC_SHA2_256_128 group=MODP_2048}
{enc=AES_CBC_256 integ=HMAC_SHA2_256_128 group=MODP_1536}
{enc=AES_CBC_256 integ=HMAC_SHA2_256_128 group=MODP_1024} *
{enc=AES_CBC_256 integ=HMAC_SHA1_96 group=MODP_2048}
{enc=AES_CBC_256 integ=HMAC_SHA1_96 group=MODP_1536}
{enc=AES_CBC_256 integ=HMAC_SHA1_96 group=MODP_1024} *
{enc=AES_CBC_256 integ=HMAC_SHA1_96 group=ECP_384}
{enc=AES_CBC_128 integ=HMAC_SHA1_96 group=MODP_1024} *
{enc=AES_CBC_128 integ=HMAC_SHA1_96 group=ECP_256}
{enc=3DES_CBC integ=HMAC_SHA1_96 group=MODP_2048}
{enc=3DES_CBC integ=HMAC_SHA1_96 group=MODP_1024} *
Phase 2 - Quick Mode
{enc=AES_CBC_256 integ=HMAC_SHA1_96}
{enc=AES_CBC_128 integ=HMAC_SHA1_96}
{enc=3DES_CBC integ=HMAC_SHA1_96}

* Libreswan >= 3.30 is no longer built with DH2 (modp1024) support, so above proposals which have modp1024 have been excluded when libreswan is used, except if NetworkManager-l2tp is built with the --enable-libreswan-dh2 configure switch.

The above proposals are equivalent to setting the following phase 1 and 2 algorithms in the Advanced section of NetworkManager-l2tp's IPsec Options dialog box:

Phase 1 algorithms with libreswan :

aes256-sha2_256-modp2048,aes256-sha2_256-modp1536,aes256-sha2_256-modp1024,aes256-sha1-modp2048,aes256-sha1-modp1536,aes256-sha1-modp1024,aes256-sha1-ecp_384,aes128-sha1-modp1024,aes128-sha1-ecp_256,3des-sha1-modp2048,3des-sha1-modp1024

Phase 2 algorithms with libreswan :

aes256-sha1,aes128-sha1,3des-sha1

Phase 1 algorithms with strongSwan :

aes256-sha2_256-modp2048,aes256-sha2_256-modp1536,aes256-sha2_256-modp1024,aes256-sha1-modp2048,aes256-sha1-modp1536,aes256-sha1-modp1024,aes256-sha1-ecp384,aes128-sha1-modp1024,aes128-sha1-ecp256,3des-sha1-modp2048,3des-sha1-modp1024!

Phase 2 algorithms with strongSwan :

aes256-sha1,aes128-sha1,3des-sha1!

If you are not sure if you are using libreswan or strongSwan, issue the following on the command-line:

ipsec --version

If you are concerned about security and wish to use algorithms that are stronger than the proposals offered by Windows 10 and macOS/iOS/iPadOS L2TP/IPsec clients, user specified phase 1 (ike - Main Mode) and phase 2 (esp - Quick Mode) algorithms can be specified in the IPsec Options dialog box. Please see the libreswan or strongSwan ipsec.conf documentation for the ike and esp (aka phase2alg) syntax.

If you are not sure which IKEv1 Phase 1 algorithms your VPN server proposes, you can query the VPN server with the ike-scan.sh script located in the IPsec IKEv1 algorithms section of the Wiki :

networkmanager-l2tp's People

Contributors

araujorm avatar atorkhov avatar dkosovic avatar domosekai avatar enaess avatar frenetic1 avatar geocar avatar hedayat avatar joanbm avatar lkundrak avatar makiftasova avatar maqi7 avatar microcai avatar mmattes avatar norwayfun avatar peterdavehello avatar seriyps avatar slichtzzz avatar thesamesam avatar uniontech-lilinjie avatar wsxy162 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

networkmanager-l2tp's Issues

Secret Service issue with qemu-kvm

I used master from this repo. I can't add l2tp connection in the "Edit Connections" dialog.

nm service says "path is not absolute" in logs.

After I added absolute path to plugin entry in /usr/lib/NetworkManager/VPN/nm-l2tp-service.name I was able to add a connection, but wasn't able to edit it. When I press "Edit" nm-l2tp-auth-dialog crashes. Also error dialog appears with title "Error initializing editor" and contents "User canceled the secrets request.

When I try to connect, "Timed out waiting for the service to start" appears, and then:

(NetworkManager:645): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

It's a fresh install in qemu. I'm not sure if I installed all the required packages, but all the packages required for building have been installed.

Arch linux - cannot ping any ip in vpn after creating connection

Hi,
I have strange issue. Connection to vpn is successfuly estabilished, but I cannot ping any IP in vpn network. Can you see something interesting in logs, please?
I also do not get address from dhcp, I need to set static one.

NetworkManager[451]: <info>  [1500622355.8227] audit: op="connection-activate" uuid="61718d08-6663-461d-a847-ad6becdcf94f" name="xxx" pid=3278 uid=1000 result="success"
NetworkManager[451]: <info>  [1500622355.8250] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",0]: Started the VPN service, PID 8448
NetworkManager[451]: <info>  [1500622355.8292] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",0]: Saw the service appear; activating connection
NetworkManager[451]: <info>  [1500622358.7828] keyfile: update /etc/NetworkManager/system-connections/xxx (61718d08-6663-461d-a847-ad6becdcf94f,"xxx")
NetworkManager[451]: <info>  [1500622358.7840] keyfile: update /etc/NetworkManager/system-connections/xxx (61718d08-6663-461d-a847-ad6becdcf94f,"xxx") after persisting connection
NetworkManager[451]: <info>  [1500622358.7967] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",0]: VPN connection: (ConnectInteractive) reply received
nm-l2tp-service[8448]: Check port 1701
NetworkManager[451]: Redirecting to: systemctl stop ipsec.service
systemd[1]: Stopping Internet Key Exchange (IKE) Protocol Daemon for IPsec...
pluto[8090]: shutting down
whack[8470]: 002 shutting down
pluto[8090]: forgetting secrets
pluto[8090]: "v6neighbor-hole-out": deleting non-instance connection
pluto[8090]: "v6neighbor-hole-in": deleting non-instance connection
pluto[8090]: shutting down interface wlp3s0/wlp3s0 fd16:672f:afe2:0:5ee8:a4bd:19ba:b4f2:500
pluto[8090]: shutting down interface lo/lo ::1:500
pluto[8090]: shutting down interface wlp3s0/wlp3s0 fd16:672f:afe2::ef9:500
pluto[8090]: shutting down interface lo/lo 127.0.0.1:4500
pluto[8090]: shutting down interface lo/lo 127.0.0.1:500
pluto[8090]: shutting down interface wlp3s0/wlp3s0 10.88.0.117:4500
pluto[8090]: shutting down interface wlp3s0/wlp3s0 10.88.0.117:500
pluto[8090]: leak: EVENT_SHUNT_SCAN, item size: 32
pluto[8090]: leak: EVENT_SD_WATCHDOG, item size: 32
pluto[8090]: leak: EVENT_PENDING_DDNS, item size: 32
pluto[8090]: leak: EVENT_PENDING_PHASE2, item size: 32
pluto[8090]: leak: EVENT_LOG_DAILY, item size: 32
pluto[8090]: leak: kernel integ, item size: 32
pluto[8090]: leak: EVENT_REINIT_SECRET, item size: 32
pluto[8090]: leak detective found 7 leaks, total size 224
systemd[1]: Stopped Internet Key Exchange (IKE) Protocol Daemon for IPsec.
NetworkManager[451]: Redirecting to: systemctl start ipsec.service
systemd[1]: Starting Internet Key Exchange (IKE) Protocol Daemon for IPsec...
ipsec[9088]: nflog ipsec capture disabled
pluto[9101]: NSS DB directory: sql:/etc/ipsec.d
pluto[9101]: Initializing NSS
pluto[9101]: Opening NSS database "sql:/etc/ipsec.d" read-only
pluto[9101]: NSS initialized
pluto[9101]: NSS crypto library initialized
pluto[9101]: FIPS HMAC integrity support [disabled]
pluto[9101]: libcap-ng support [enabled]
pluto[9101]: Linux audit support [disabled]
pluto[9101]: Starting Pluto (Libreswan Version 3.20 XFRM(netkey) KLIPS USE_FORK USE_PTHREAD_SETSCHEDPRIO NSS DNSSEC USE_SYSTEMD_WATCHDOG LIBCAP_NG XAUTH_PAM NETWORKMANAGER CURL(non-NSS)) pid:9101
pluto[9101]: core dump dir: /var/run/pluto/
pluto[9101]: secrets file: /etc/ipsec.secrets
pluto[9101]: leak-detective enabled
pluto[9101]: NSS crypto [enabled]
pluto[9101]: XAUTH PAM support [enabled]
pluto[9101]: NAT-Traversal support  [enabled]
pluto[9101]: ENCRYPT aes_ccm_16:    IKEv1:     ESP     IKEv2:     ESP     FIPS  {256,192,*128}  (aes_ccm aes_ccm_c)
pluto[9101]: ENCRYPT aes_ccm_12:    IKEv1:     ESP     IKEv2:     ESP     FIPS  {256,192,*128}  (aes_ccm_b)
pluto[9101]: ENCRYPT aes_ccm_8:     IKEv1:     ESP     IKEv2:     ESP     FIPS  {256,192,*128}  (aes_ccm_a)
pluto[9101]: ENCRYPT 3des_cbc:      IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  [*192]  (3des)
pluto[9101]: ENCRYPT camellia_ctr:  IKEv1:     ESP     IKEv2:     ESP           {256,192,*128}
pluto[9101]: ENCRYPT camellia:      IKEv1: IKE ESP     IKEv2: IKE ESP           {256,192,*128}  (camellia_cbc)
pluto[9101]: ENCRYPT aes_gcm_16:    IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  {256,192,*128}  (aes_gcm aes_gcm_c)
pluto[9101]: ENCRYPT aes_gcm_12:    IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  {256,192,*128}  (aes_gcm_b)
pluto[9101]: ENCRYPT aes_gcm_8:     IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  {256,192,*128}  (aes_gcm_a)
pluto[9101]: ENCRYPT aes_ctr:       IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  {256,192,*128}  (aesctr)
pluto[9101]: ENCRYPT aes:           IKEv1: IKE ESP     IKEv2: IKE ESP     FIPS  {256,192,*128}  (aes_cbc)
pluto[9101]: ENCRYPT serpent:       IKEv1: IKE ESP     IKEv2: IKE ESP           {256,192,*128}  (serpent_cbc)
pluto[9101]: ENCRYPT twofish:       IKEv1: IKE ESP     IKEv2: IKE ESP           {256,192,*128}  (twofish_cbc)
pluto[9101]: ENCRYPT twofish_ssh:   IKEv1: IKE         IKEv2: IKE ESP           {256,192,*128}  (twofish_cbc_ssh)
pluto[9101]: ENCRYPT cast:          IKEv1:     ESP     IKEv2:     ESP           {*128}  (cast_cbc)
pluto[9101]: ENCRYPT null:          IKEv1:     ESP     IKEv2:     ESP           []
pluto[9101]: HASH md5:              IKEv1: IKE         IKEv2:
pluto[9101]: HASH sha:              IKEv1: IKE         IKEv2:             FIPS  (sha1)
pluto[9101]: HASH sha2_256:         IKEv1: IKE         IKEv2:             FIPS  (sha2 sha256)
pluto[9101]: HASH sha2_384:         IKEv1: IKE         IKEv2:             FIPS  (sha384)
pluto[9101]: HASH sha2_512:         IKEv1: IKE         IKEv2:             FIPS  (sha512)
pluto[9101]: PRF md5:               IKEv1: IKE         IKEv2: IKE               (hmac_md5)
pluto[9101]: PRF sha:               IKEv1: IKE         IKEv2: IKE         FIPS  (sha1 hmac_sha1)
pluto[9101]: PRF sha2_256:          IKEv1: IKE         IKEv2: IKE         FIPS  (sha2 sha256 hmac_sha2_256)
pluto[9101]: PRF sha2_384:          IKEv1: IKE         IKEv2: IKE         FIPS  (sha384 hmac_sha2_384)
pluto[9101]: PRF sha2_512:          IKEv1: IKE         IKEv2: IKE         FIPS  (sha512 hmac_sha2_512)
pluto[9101]: INTEG md5:             IKEv1: IKE ESP AH  IKEv2: IKE ESP AH        (hmac_md5 hmac_md5_96)
pluto[9101]: INTEG sha:             IKEv1: IKE ESP AH  IKEv2: IKE ESP AH  FIPS  (sha1 sha1_96 hmac_sha1 hmac_sha1_96)
pluto[9101]: INTEG sha2_512:        IKEv1: IKE ESP AH  IKEv2: IKE ESP AH  FIPS  (sha512 hmac_sha2_512 hmac_sha2_512_256)
pluto[9101]: INTEG sha2_384:        IKEv1: IKE ESP AH  IKEv2: IKE ESP AH  FIPS  (sha384 hmac_sha2_384 hmac_sha2_384_192)
pluto[9101]: INTEG sha2_256:        IKEv1: IKE ESP AH  IKEv2: IKE ESP AH  FIPS  (sha2 sha256 hmac_sha2_256 hmac_sha2_256_128)
pluto[9101]: INTEG aes_xcbc:        IKEv1:     ESP AH  IKEv2:     ESP AH  FIPS  (aes_xcbc_96)
pluto[9101]: INTEG aes_cmac:        IKEv1:     ESP AH  IKEv2:     ESP AH  FIPS  (aes_cmac_96)
pluto[9101]: INTEG ripemd:          IKEv1:     ESP AH  IKEv2:                   (hmac_ripemd hmac_ripemd_160_96)
pluto[9101]: DH MODP1024:           IKEv1: IKE         IKEv2: IKE               (dh2)
pluto[9101]: DH MODP1536:           IKEv1: IKE         IKEv2: IKE               (dh5)
pluto[9101]: DH MODP2048:           IKEv1: IKE         IKEv2: IKE         FIPS  (dh14)
pluto[9101]: DH MODP3072:           IKEv1: IKE         IKEv2: IKE         FIPS  (dh15)
pluto[9101]: DH MODP4096:           IKEv1: IKE         IKEv2: IKE         FIPS  (dh16)
pluto[9101]: DH MODP6144:           IKEv1: IKE         IKEv2: IKE         FIPS  (dh17)
pluto[9101]: DH MODP8192:           IKEv1: IKE         IKEv2: IKE         FIPS  (dh18)
pluto[9101]: DH DH19:               IKEv1: IKE         IKEv2: IKE         FIPS  (ecp_256)
pluto[9101]: DH DH20:               IKEv1: IKE         IKEv2: IKE         FIPS  (ecp_384)
pluto[9101]: DH DH21:               IKEv1: IKE         IKEv2: IKE         FIPS  (ecp_521)
pluto[9101]: DH DH23:               IKEv1: IKE         IKEv2: IKE         FIPS
pluto[9101]: DH DH24:               IKEv1: IKE         IKEv2: IKE         FIPS
pluto[9101]: starting up 7 crypto helpers
pluto[9101]: started thread for crypto helper 0 (master fd 11)
pluto[9101]: started thread for crypto helper 1 (master fd 13)
pluto[9101]: started thread for crypto helper 2 (master fd 15)
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: started thread for crypto helper 3 (master fd 17)
pluto[9101]: started thread for crypto helper 4 (master fd 19)
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: started thread for crypto helper 5 (master fd 21)
pluto[9101]: started thread for crypto helper 6 (master fd 23)
pluto[9101]: seccomp security for crypto helper not supported
pluto[9101]: Using Linux XFRM/NETKEY IPsec interface code on 4.9.37-1-lts
pluto[9101]: systemd watchdog for ipsec service configured with timeout of 200000000 usecs
pluto[9101]: watchdog: sending probes every 100 secs
systemd[1]: Started Internet Key Exchange (IKE) Protocol Daemon for IPsec.
pluto[9101]: seccomp security not supported
pluto[9101]: listening for IKE messages
pluto[9101]: adding interface wlp3s0/wlp3s0 10.88.0.117:500
NetworkManager[451]: 002 listening for IKE messages
NetworkManager[451]: 002 adding interface wlp3s0/wlp3s0 10.88.0.117:500
NetworkManager[451]: 002 adding interface wlp3s0/wlp3s0 10.88.0.117:4500
NetworkManager[451]: 002 adding interface lo/lo 127.0.0.1:500
NetworkManager[451]: 002 adding interface lo/lo 127.0.0.1:4500
NetworkManager[451]: 002 adding interface wlp3s0/wlp3s0 fd16:672f:afe2::ef9:500
NetworkManager[451]: 002 adding interface lo/lo ::1:500
NetworkManager[451]: 002 adding interface wlp3s0/wlp3s0 fd16:672f:afe2:0:5ee8:a4bd:19ba:b4f2:500
NetworkManager[451]: 002 loading secrets from "/etc/ipsec.secrets"
NetworkManager[451]: 002 loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.secrets"
pluto[9101]: adding interface wlp3s0/wlp3s0 10.88.0.117:4500
pluto[9101]: adding interface lo/lo 127.0.0.1:500
pluto[9101]: adding interface lo/lo 127.0.0.1:4500
pluto[9101]: adding interface wlp3s0/wlp3s0 fd16:672f:afe2::ef9:500
pluto[9101]: adding interface lo/lo ::1:500
pluto[9101]: adding interface wlp3s0/wlp3s0 fd16:672f:afe2:0:5ee8:a4bd:19ba:b4f2:500
pluto[9101]: | setup callback for interface wlp3s0:500 fd 34
pluto[9101]: | setup callback for interface lo:500 fd 33
pluto[9101]: | setup callback for interface wlp3s0:500 fd 32
pluto[9101]: | setup callback for interface lo:4500 fd 31
pluto[9101]: | setup callback for interface lo:500 fd 30
pluto[9101]: | setup callback for interface wlp3s0:4500 fd 29
pluto[9101]: | setup callback for interface wlp3s0:500 fd 28
pluto[9101]: loading secrets from "/etc/ipsec.secrets"
pluto[9101]: loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.secrets"
NetworkManager[451]: debugging mode enabled
NetworkManager[451]: end of file /var/run/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.conf
NetworkManager[451]: Loading conn 61718d08-6663-461d-a847-ad6becdcf94f
NetworkManager[451]: starter: left is KH_DEFAULTROUTE
NetworkManager[451]: conn: "61718d08-6663-461d-a847-ad6becdcf94f" modecfgdomain=(null)
NetworkManager[451]: conn: "61718d08-6663-461d-a847-ad6becdcf94f" modecfgbanner=(null)
NetworkManager[451]: conn: "61718d08-6663-461d-a847-ad6becdcf94f" mark-in=(null)
NetworkManager[451]: conn: "61718d08-6663-461d-a847-ad6becdcf94f" mark-out=(null)
NetworkManager[451]: conn: "61718d08-6663-461d-a847-ad6becdcf94f" vti_iface=(null)
NetworkManager[451]: opening file: /var/run/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.conf
NetworkManager[451]: loading named conns: 61718d08-6663-461d-a847-ad6becdcf94f
NetworkManager[451]: seeking_src = 1, seeking_gateway = 1, has_peer = 1
NetworkManager[451]: seeking_src = 0, seeking_gateway = 1, has_dst = 1
NetworkManager[451]: dst  via 10.88.0.1 dev wlp3s0 src  table 254
NetworkManager[451]: set nexthop: 10.88.0.1
NetworkManager[451]: dst 10.88.0.0 via  dev wlp3s0 src 10.88.0.117 table 254
NetworkManager[451]: dst 10.88.0.0 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
NetworkManager[451]: dst 10.88.0.117 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
NetworkManager[451]: dst 10.88.0.255 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
NetworkManager[451]: dst 127.0.0.0 via  dev lo src 127.0.0.1 table 255 (ignored)
NetworkManager[451]: dst 127.0.0.1 via  dev lo src 127.0.0.1 table 255 (ignored)
NetworkManager[451]: dst 127.255.255.255 via  dev lo src 127.0.0.1 table 255 (ignored)
NetworkManager[451]: seeking_src = 1, seeking_gateway = 0, has_peer = 1
NetworkManager[451]: seeking_src = 1, seeking_gateway = 0, has_dst = 1
NetworkManager[451]: dst 10.88.0.1 via  dev wlp3s0 src 10.88.0.117 table 254
NetworkManager[451]: set addr: 10.88.0.117
NetworkManager[451]: seeking_src = 0, seeking_gateway = 0, has_peer = 1
pluto[9101]: added connection description "61718d08-6663-461d-a847-ad6becdcf94f"
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: initiating Main Mode
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: initiating Main Mode
NetworkManager[451]: 104 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I1: initiate
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f758f22668750f03b08df6ebe1d00403]
NetworkManager[451]: 003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f758f22668750f03b08df6ebe1d00403]
NetworkManager[451]: 003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [afcad71368a1f1c96b8696fc7757]
NetworkManager[451]: 003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [c44fedc749f9e6ae5b04ec969cb25d69]
NetworkManager[451]: 003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f9196df86b812fb0f68026d8876dcb7b00042000]
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [afcad71368a1f1c96b8696fc7757]
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
NetworkManager[451]: 106 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I2: sent MI2, expecting MR2
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [c44fedc749f9e6ae5b04ec969cb25d69]
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f9196df86b812fb0f68026d8876dcb7b00042000]
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I2: sent MI2, expecting MR2
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I3: sent MI3, expecting MR3
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
NetworkManager[451]: 108 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I3: sent MI3, expecting MR3
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: Main mode peer ID is ID_IPV4_ADDR: 'xxx.xxx.xxx.xxx'
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: Main mode peer ID is ID_IPV4_ADDR: 'xxx.xxx.xxx.xxx'
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
NetworkManager[451]: 004 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3des_cbc_192 integ=sha group=MODP1024}
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #2: initiating Quick Mode PSK+ENCRYPT+UP+IKEV1_ALLOW+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO {using isakmp#1 msgid:e0237379 proposal=AES(12)_128-SHA1(2), 3DES(3)_000-SHA1(2) pfsgroup=no-pfs}
NetworkManager[451]: 117 "61718d08-6663-461d-a847-ad6becdcf94f" #2: STATE_QUICK_I1: initiate
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3des_cbc_192 integ=sha group=MODP1024}
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #2: initiating Quick Mode PSK+ENCRYPT+UP+IKEV1_ALLOW+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO {using isakmp#1 msgid:e0237379 proposal=AES(12)_128-SHA1(2), 3DES(3)_000-SHA1(2) pfsgroup=no-pfs}
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #2: NAT-Traversal: received 2 NAT-OA. Ignored because peer is not NATed
NetworkManager[451]: 003 "61718d08-6663-461d-a847-ad6becdcf94f" #2: NAT-Traversal: received 2 NAT-OA. Ignored because peer is not NATed
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #2: transition from state STATE_QUICK_I1 to state STATE_QUICK_I2
NetworkManager[451]: 002 "61718d08-6663-461d-a847-ad6becdcf94f" #2: transition from state STATE_QUICK_I1 to state STATE_QUICK_I2
NetworkManager[451]: 004 "61718d08-6663-461d-a847-ad6becdcf94f" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP/NAT=>0x95d8afc4 <0xe6ced650 xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=xxx.xxx.xxx.xxx:4500 DPD=passive}
pluto[9101]: "61718d08-6663-461d-a847-ad6becdcf94f" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP/NAT=>0x95d8afc4 <0xe6ced650 xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=xxx.xxx.xxx.xxx:4500 DPD=passive}
nm-l2tp-service[8448]: xl2tpd started with pid 9138
NetworkManager[451]: xl2tpd[9138]: setsockopt recvref[30]: Protocol not available
NetworkManager[451]: xl2tpd[9138]: Using l2tp kernel support.
PID:9138
NetworkManager[451]: xl2tpd[9138]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
NetworkManager[451]: xl2tpd[9138]: Forked by Scott Balmos and David Stipp, (C) 2001
NetworkManager[451]: xl2tpd[9138]: Inherited by Jeff McAdams, (C) 2002
NetworkManager[451]: xl2tpd[9138]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
NetworkManager[451]: xl2tpd[9138]: Listening on IP address 0.0.0.0, port 1701
NetworkManager[451]: xl2tpd[9138]: Connecting to host xxx.xxx.xxx.xxx, port 1701
NetworkManager[451]: <info>  [1500622361.2188] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",0]: VPN plugin: state changed: starting (3)
pluto[9101]: added connection description "v6neighbor-hole-in"
pluto[9101]: added connection description "v6neighbor-hole-out"
pluto[9101]: listening for IKE messages
pluto[9101]: | refresh. setup callback for interface wlp3s0:500 34
pluto[9101]: | setup callback for interface wlp3s0:500 fd 34
pluto[9101]: | refresh. setup callback for interface lo:500 33
pluto[9101]: | setup callback for interface lo:500 fd 33
pluto[9101]: | refresh. setup callback for interface wlp3s0:500 32
pluto[9101]: | setup callback for interface wlp3s0:500 fd 32
pluto[9101]: | refresh. setup callback for interface lo:4500 31
pluto[9101]: | setup callback for interface lo:4500 fd 31
pluto[9101]: | refresh. setup callback for interface lo:500 30
pluto[9101]: | setup callback for interface lo:500 fd 30
pluto[9101]: | refresh. setup callback for interface wlp3s0:4500 29
pluto[9101]: | setup callback for interface wlp3s0:4500 fd 29
pluto[9101]: | refresh. setup callback for interface wlp3s0:500 28
pluto[9101]: | setup callback for interface wlp3s0:500 fd 28
pluto[9101]: forgetting secrets
pluto[9101]: loading secrets from "/etc/ipsec.secrets"
pluto[9101]: loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.secrets"
NetworkManager[451]: xl2tpd[9138]: Connection established to xxx.xxx.xxx.xxx, 1701.  Local: 59448, Remote: 62237 (ref=0/0).
NetworkManager[451]: xl2tpd[9138]: Calling on tunnel 59448
NetworkManager[451]: xl2tpd[9138]: Call established with xxx.xxx.xxx.xxx, Local: 63410, Remote: 13495, Serial: 1 (ref=0/0)
NetworkManager[451]: xl2tpd[9138]: start_pppd: I'm running:
NetworkManager[451]: xl2tpd[9138]: "/usr/sbin/pppd"
NetworkManager[451]: xl2tpd[9138]: "plugin"
NetworkManager[451]: xl2tpd[9138]: "pppol2tp.so"
NetworkManager[451]: xl2tpd[9138]: "pppol2tp"
NetworkManager[451]: xl2tpd[9138]: "7"
NetworkManager[451]: xl2tpd[9138]: "passive"
NetworkManager[451]: xl2tpd[9138]: "nodetach"
NetworkManager[451]: xl2tpd[9138]: ":"
NetworkManager[451]: xl2tpd[9138]: "file"
NetworkManager[451]: xl2tpd[9138]: "/var/run/nm-l2tp-ppp-options-61718d08-6663-461d-a847-ad6becdcf94f"
pppd[9147]: Plugin pppol2tp.so loaded.
pppd[9147]: Plugin /usr/lib/pppd/2.4.7/nm-l2tp-pppd-plugin.so loaded.
pppd[9147]: pppd 2.4.7 started by root, uid 0
pppd[9147]: Using interface ppp0
pppd[9147]: Connect: ppp0 <-->
pppd[9147]: Overriding mtu 1500 to 1100
pppd[9147]: Overriding mru 1500 to mtu value 1100
NetworkManager[451]: <info>  [1500622362.2798] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/11)
pppd[9147]: Overriding mtu 1400 to 1100
pppd[9147]: PAP authentication succeeded
pppd[9147]: Could not determine remote IP address: defaulting to 10.64.64.64
pppd[9147]: Cannot determine ethernet address for proxy ARP
pppd[9147]: local  IP address 192.168.180.1
pppd[9147]: remote IP address 10.64.64.64
pppd[9147]: primary   DNS address 192.168.1.9
pppd[9147]: secondary DNS address 192.168.1.11
NetworkManager[451]: <info>  [1500622372.0097] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",0]: VPN connection: (IP4 Config Get) reply received from old-style plugin
NetworkManager[451]: <info>  [1500622372.0115] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data: VPN Gateway: xxx.xxx.xxx.xxx
NetworkManager[451]: <info>  [1500622372.0116] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data: Tunnel Device: "ppp0"
NetworkManager[451]: <info>  [1500622372.0116] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data: IPv4 configuration:
NetworkManager[451]: <info>  [1500622372.0116] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Internal Address: 192.168.180.1
NetworkManager[451]: <info>  [1500622372.0117] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Internal Prefix: 32
NetworkManager[451]: <info>  [1500622372.0117] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Internal Point-to-Point Address: 0.0.0.0
NetworkManager[451]: <info>  [1500622372.0117] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Maximum Segment Size (MSS): 0
NetworkManager[451]: <info>  [1500622372.0118] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Forbid Default Route: yes
NetworkManager[451]: <info>  [1500622372.0118] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Internal DNS: 192.168.1.9
NetworkManager[451]: <info>  [1500622372.0119] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   Internal DNS: 192.168.1.11
NetworkManager[451]: <info>  [1500622372.0119] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data:   DNS Domain: '(none)'
NetworkManager[451]: <info>  [1500622372.0119] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: Data: No IPv6 configuration
NetworkManager[451]: <info>  [1500622372.0120] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: VPN plugin: state changed: started (4)
NetworkManager[451]: <info>  [1500622372.0142] vpn-connection[0x258a4b0,61718d08-6663-461d-a847-ad6becdcf94f,"xxx",10:(ppp0)]: VPN connection: (IP Config Get) complete
NetworkManager[451]: <info>  [1500622372.0171] dns-mgr: Writing DNS information to /usr/bin/resolvconf
dbus[437]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
systemd[1]: Starting Network Manager Script Dispatcher Service...
dbus[437]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
systemd[1]: Started Network Manager Script Dispatcher Service.
nm-dispatcher[9231]: req:1 'vpn-up' [ppp0]: new request (1 scripts)
nm-dispatcher[9231]: req:1 'vpn-up' [ppp0]: start running ordered scripts...
ntpd[484]: Listen normally on 23 ppp0 192.168.180.1:123
ntpd[484]: Listen normally on 24 ppp0 192.168.1.190:123
ntpd[484]: new interface(s) found: waking up resolver
nm-l2tp[7431] <debug> nm-l2tp-service (version 1.2.8) starting...
nm-l2tp[7431] <debug>  uses default --bus-name "org.freedesktop.NetworkManager.l2tp"
nm-l2tp[7431] <info>  ipsec enable flag: yes
** Message: Check port 1701
connection
    id : "xxx" (s)
    uuid : "61718d08-6663-461d-a847-ad6becdcf94f" (s)
    interface-name : NULL (sd)
    type : "vpn" (s)
    permissions : ["user:honza:"] (s)
    autoconnect : FALSE (s)
    autoconnect-priority : 0 (sd)
    autoconnect-retries : -1 (sd)
    timestamp : 1500620749 (s)
    read-only : FALSE (sd)
    zone : NULL (sd)
    master : NULL (sd)
    slave-type : NULL (sd)
    autoconnect-slaves : ((NMSettingConnectionAutoconnectSlaves) NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT) (sd)
    secondaries : NULL (sd)
    gateway-ping-timeout : 0 (sd)
    metered : ((NMMetered) NM_METERED_UNKNOWN) (sd)
    lldp : -1 (sd)
    stable-id : NULL (sd)


ipv6
    method : "auto" (s)
    dns : [] (s)
    dns-search : [] (s)
    dns-options : NULL (sd)
    dns-priority : 0 (sd)
    addresses : ((GPtrArray*) 0xd66f00) (s)
    gateway : NULL (sd)
    routes : ((GPtrArray*) 0xd7a820) (s)
    route-metric : -1 (sd)
    ignore-auto-routes : FALSE (sd)
    ignore-auto-dns : FALSE (sd)
    dhcp-hostname : NULL (sd)
    dhcp-send-hostname : TRUE (sd)
    never-default : FALSE (sd)
    may-fail : TRUE (sd)
    dad-timeout : -1 (sd)
    dhcp-timeout : 0 (sd)
    ip6-privacy : ((NMSettingIP6ConfigPrivacy) NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN) (sd)
    addr-gen-mode : 1 (sd)
    token : NULL (sd)


proxy
    method : 0 (sd)
    browser-only : FALSE (sd)
    pac-url : NULL (sd)
    pac-script : NULL (sd)


vpn
    service-type : "org.freedesktop.NetworkManager.l2tp" (s)
    user-name : "honza" (s)
    persistent : FALSE (sd)
    data : ((GHashTable*) 0xd7d0c0) (s)
    secrets : ((GHashTable*) 0xd7d120) (s)
    timeout : 0 (sd)


ipv4
    method : "manual" (s)
    dns : [] (s)
    dns-search : [] (s)
    dns-options : NULL (sd)
    dns-priority : 0 (sd)
    addresses : ((GPtrArray*) 0xd7a440) (s)
    gateway : NULL (sd)
    routes : ((GPtrArray*) 0xd67040) (s)
    route-metric : -1 (sd)
    ignore-auto-routes : FALSE (sd)
    ignore-auto-dns : FALSE (sd)
    dhcp-hostname : NULL (sd)
    dhcp-send-hostname : TRUE (sd)
    never-default : TRUE (s)
    may-fail : TRUE (sd)
    dad-timeout : -1 (sd)
    dhcp-timeout : 0 (sd)
    dhcp-client-id : NULL (sd)
    dhcp-fqdn : NULL (sd)


nm-l2tp[7431] <info>  starting ipsec
Redirecting to: systemctl stop ipsec.service
Redirecting to: systemctl start ipsec.service
002 listening for IKE messages
002 adding interface wlp3s0/wlp3s0 10.88.0.117:500
002 adding interface wlp3s0/wlp3s0 10.88.0.117:4500
002 adding interface lo/lo 127.0.0.1:500
002 adding interface lo/lo 127.0.0.1:4500
002 adding interface wlp3s0/wlp3s0 fd16:672f:afe2::ef9:500
002 adding interface lo/lo ::1:500
002 adding interface wlp3s0/wlp3s0 fd16:672f:afe2:0:5ee8:a4bd:19ba:b4f2:500
002 loading secrets from "/etc/ipsec.secrets"
002 loading secrets from "/etc/ipsec.d/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.secrets"
opening file: /var/run/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.conf
debugging mode enabled
end of file /var/run/nm-l2tp-ipsec-61718d08-6663-461d-a847-ad6becdcf94f.conf
Loading conn 61718d08-6663-461d-a847-ad6becdcf94f
starter: left is KH_DEFAULTROUTE
loading named conns: 61718d08-6663-461d-a847-ad6becdcf94f
seeking_src = 1, seeking_gateway = 1, has_peer = 1
seeking_src = 0, seeking_gateway = 1, has_dst = 1
dst  via 10.88.0.1 dev wlp3s0 src  table 254
set nexthop: 10.88.0.1
dst 10.88.0.0 via  dev wlp3s0 src 10.88.0.117 table 254
dst 10.88.0.0 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
dst 10.88.0.117 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
dst 10.88.0.255 via  dev wlp3s0 src 10.88.0.117 table 255 (ignored)
dst 127.0.0.0 via  dev lo src 127.0.0.1 table 255 (ignored)
dst 127.0.0.0 via  dev lo src 127.0.0.1 table 255 (ignored)
dst 127.0.0.1 via  dev lo src 127.0.0.1 table 255 (ignored)
dst 127.255.255.255 via  dev lo src 127.0.0.1 table 255 (ignored)

seeking_src = 1, seeking_gateway = 0, has_peer = 1
seeking_src = 1, seeking_gateway = 0, has_dst = 1
dst 10.88.0.1 via  dev wlp3s0 src 10.88.0.117 table 254
set addr: 10.88.0.117

seeking_src = 0, seeking_gateway = 0, has_peer = 1
conn: "61718d08-6663-461d-a847-ad6becdcf94f" modecfgdomain=(null)
conn: "61718d08-6663-461d-a847-ad6becdcf94f" modecfgbanner=(null)
conn: "61718d08-6663-461d-a847-ad6becdcf94f" mark-in=(null)
conn: "61718d08-6663-461d-a847-ad6becdcf94f" mark-out=(null)
conn: "61718d08-6663-461d-a847-ad6becdcf94f" vti_iface=(null)
002 added connection description "61718d08-6663-461d-a847-ad6becdcf94f"
nm-l2tp[7431] <info>  Spawned ipsec auto --up script with PID 8116.
002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: initiating Main Mode
104 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I1: initiate
003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f758f22668750f03b08df6ebe1d00403]
003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [afcad71368a1f1c96b8696fc7757]
003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [c44fedc749f9e6ae5b04ec969cb25d69]
003 "61718d08-6663-461d-a847-ad6becdcf94f" #1: ignoring unknown Vendor ID payload [f9196df86b812fb0f68026d8876dcb7b00042000]
002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
106 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I2: sent MI2, expecting MR2
002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
108 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I3: sent MI3, expecting MR3
002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: Main mode peer ID is ID_IPV4_ADDR: 'xxx.xxx.xxx.xxx'
002 "61718d08-6663-461d-a847-ad6becdcf94f" #1: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
004 "61718d08-6663-461d-a847-ad6becdcf94f" #1: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3des_cbc_192 integ=sha group=MODP1024}
002 "61718d08-6663-461d-a847-ad6becdcf94f" #2: initiating Quick Mode PSK+ENCRYPT+UP+IKEV1_ALLOW+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO {using isakmp#1 msgid:9476836e proposal=AES(12)_128-SHA1(2), 3DES(3)_000-SHA1(2) pfsgroup=no-pfs}
117 "61718d08-6663-461d-a847-ad6becdcf94f" #2: STATE_QUICK_I1: initiate
003 "61718d08-6663-461d-a847-ad6becdcf94f" #2: NAT-Traversal: received 2 NAT-OA. Ignored because peer is not NATed
002 "61718d08-6663-461d-a847-ad6becdcf94f" #2: transition from state STATE_QUICK_I1 to state STATE_QUICK_I2
004 "61718d08-6663-461d-a847-ad6becdcf94f" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP/NAT=>0x03a5f222 <0x427a35a6 xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=xxx.xxx.xxx.xxx:4500 DPD=passive}
nm-l2tp[7431] <info>  Libreswan IPsec tunnel is up.
** Message: xl2tpd started with pid 8127
xl2tpd[8127]: setsockopt recvref[30]: Protocol not available
xl2tpd[8127]: Using l2tp kernel support.
xl2tpd[8127]: xl2tpd version xl2tpd-1.3.9 started on jules-w PID:8127
xl2tpd[8127]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[8127]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[8127]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[8127]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
xl2tpd[8127]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[8127]: get_call: allocating new tunnel for host xxx.xxx.xxx.xxx, port 1701.
xl2tpd[8127]: Connecting to host xxx.xxx.xxx.xxx, port 1701
xl2tpd[8127]: control_finish: message type is (null)(0).  Tunnel is 0, call is 0.
xl2tpd[8127]: control_finish: sending SCCRQ
xl2tpd[8127]: message_type_avp: message type 2 (Start-Control-Connection-Reply)
xl2tpd[8127]: protocol_version_avp: peer is using version 1, revision 0.
xl2tpd[8127]: framing_caps_avp: supported peer frames: sync
xl2tpd[8127]: hostname_avp: peer reports hostname '(none)'
xl2tpd[8127]: assigned_tunnel_avp: using peer's tunnel 36061
xl2tpd[8127]: bearer_caps_avp: supported peer bearers:
xl2tpd[8127]: firmware_rev_avp: peer reports firmware version 1025 (0x0401)
xl2tpd[8127]: vendor_avp: peer reports vendor 'SafeNet Inc.'
xl2tpd[8127]: receive_window_size_avp: peer wants RWS of 16.  Will use flow control.
xl2tpd[8127]: control_finish: message type is Start-Control-Connection-Reply(2).  Tunnel is 36061, call is 0.
xl2tpd[8127]: control_finish: sending SCCCN
xl2tpd[8127]: Connection established to xxx.xxx.xxx.xxx, 1701.  Local: 37748, Remote: 36061 (ref=0/0).
xl2tpd[8127]: Calling on tunnel 37748
xl2tpd[8127]: control_finish: message type is (null)(0).  Tunnel is 36061, call is 0.
xl2tpd[8127]: control_finish: sending ICRQ
xl2tpd[8127]: message_type_avp: message type 11 (Incoming-Call-Reply)
xl2tpd[8127]: assigned_call_avp: using peer's call 50258
xl2tpd[8127]: control_finish: message type is Incoming-Call-Reply(11).  Tunnel is 36061, call is 50258.
xl2tpd[8127]: control_finish: Sending ICCN
xl2tpd[8127]: Call established with xxx.xxx.xxx.xxx, Local: 31198, Remote: 50258, Serial: 1 (ref=0/0)
xl2tpd[8127]: start_pppd: I'm running: 
xl2tpd[8127]: "/usr/sbin/pppd" 
xl2tpd[8127]: "plugin" 
xl2tpd[8127]: "pppol2tp.so" 
xl2tpd[8127]: "pppol2tp" 
xl2tpd[8127]: "7" 
xl2tpd[8127]: "passive" 
xl2tpd[8127]: "nodetach" 
xl2tpd[8127]: ":" 
xl2tpd[8127]: "debug" 
xl2tpd[8127]: "file" 
xl2tpd[8127]: "/var/run/nm-l2tp-ppp-options-61718d08-6663-461d-a847-ad6becdcf94f" 
xl2tpd[8127]: message_type_avp: message type 16 (Set-Link-Info)
xl2tpd[8127]: ignore_avp : Ignoring AVP
xl2tpd[8127]: control_finish: message type is Set-Link-Info(16).  Tunnel is 36061, call is 50258.
xl2tpd[8127]: message_type_avp: message type 6 (Hello)
xl2tpd[8127]: control_finish: message type is Hello(6).  Tunnel is 36061, call is 0.
$ ip route 
default via 10.88.0.1 dev wlp3s0 proto static metric 600 
10.88.0.0/24 dev wlp3s0 proto kernel scope link src 10.88.0.117 metric 600 
10.88.0.1 dev wlp3s0 proto static scope link metric 600 
xxx.xxx.xxx.xxx via 10.88.0.1 dev wlp3s0 proto static metric 600 
192.168.0.0/23 dev ppp0 proto kernel scope link src 192.168.1.190 metric 50 
$ ping 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.
^C
--- 192.168.1.11 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1032ms

IPSec options hard coded

Most configuration options of the IPSec connection are hard coded in nm-l2tp-service.c. There seems to be no possibility to adjust these options to match the requirements of a VPN server other than patching the source code.

I understand that not every option needs to be configurable, but some of them depend on the configuration of the remote VPN server. The ones I encountered so far are:

  • pfs
  • esp
  • ike
  • keyexchange

Please see the strongSwan documentation for an explanation of these options.

Would it be possible to allow users to tune these options to their needs?

Error when Installing l2tp by ppa

Hi, I used the ppa method to install and got this error when I create L2TP.

Could not create connection
Could not load editor VPN plugin for 'org.freedesktop.NetworkManager.l2tp' (missing plugin file "/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-l2tp-edito...").

According to this error, I try the following commands though still not working either.

sudo apt install network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev libnm-dev

What should I do? Thanks!

Unable to connect to (NO_PROPOSAL_CHOSEN)

When I try to connect to my companies L2TP/IPsec via PSK it is not working.
On Android Device I can connect without any problems-

Logs when I try to connect to the VPN:
nm-l2tp --debug

** Message: starting ipsec
Stopping strongSwan IPsec...
Starting strongSwan 5.3.5 IPsec [starter]...
Loading config setup
Loading conn 'nm-ipsec-l2tp-4631'
found netkey IPsec stack
initiating Main Mode IKE_SA nm-ipsec-l2tp-4631[1] to *snip*
generating ID_PROT request 0 [ SA V V V V ]
sending packet: from 192.168.77.66[500] to *snip*[500] (248 bytes)
received packet: from *snip*[500] to 192.168.77.66[500] (56 bytes)
parsed INFORMATIONAL_V1 request 4204653677 [ N(NO_PROP) ]
received NO_PROPOSAL_CHOSEN error notify
establishing connection 'nm-ipsec-l2tp-4631' failed
** Message: ipsec ready for action
** Message: xl2tpd started with pid 4740
xl2tpd[4740]: setsockopt recvref[30]: Protocol not available
xl2tpd[4740]: Using l2tp kernel support.
xl2tpd[4740]: xl2tpd version xl2tpd-1.3.7 started on Laptop PID:4740
xl2tpd[4740]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[4740]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[4740]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[4740]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
xl2tpd[4740]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[4740]: get_call: allocating new tunnel for host *snip*, port 1701.
xl2tpd[4740]: Connecting to host *snip*, port 1701
xl2tpd[4740]: control_finish: message type is (null)(0).  Tunnel is 0, call is 0.
xl2tpd[4740]: control_finish: sending SCCRQ

** (nm-l2tp-service:4631): WARNING **: Looks like pppd didn't initialize our dbus module
** Message: Terminated xl2tpd daemon with PID 4740.
xl2tpd[4740]: death_handler: Fatal signal 15 received
xl2tpd[4740]: Connection 0 closed to *snip*, port 1701 (Server closing)
** Message: ipsec shut down

** (nm-l2tp-service:4631): WARNING **: xl2tpd exited with error code 1
** Message: ipsec shut down

syslog:

Jun 12 13:12:31 Laptop NetworkManager[859]: <info>  [1465729951.2480] audit: op="connection-activate" uuid="923f0286-bff7-494f-831a-599ca05962e1" name="VPNpsk" pid=3973 uid=1000 result="success"
Jun 12 13:12:31 Laptop NetworkManager[859]: <info>  [1465729951.2508] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: Saw the service appear; activating connection
Jun 12 13:12:31 Laptop charon: 00[DMN] signal of type SIGINT received. Shutting down
Jun 12 13:12:33 Laptop charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-24-generic, x86_64)
Jun 12 13:12:33 Laptop charon: 00[CFG] disabling load-tester plugin, not configured
Jun 12 13:12:33 Laptop charon: 00[LIB] plugin 'load-tester': failed to load - load_tester_plugin_create returned NULL
Jun 12 13:12:33 Laptop charon: 00[CFG] dnscert plugin is disabled
Jun 12 13:12:33 Laptop charon: 00[CFG] ipseckey plugin is disabled
Jun 12 13:12:33 Laptop charon: 00[CFG] attr-sql plugin: database URI not set
Jun 12 13:12:33 Laptop charon: 00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
Jun 12 13:12:33 Laptop charon: 00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
Jun 12 13:12:33 Laptop charon: 00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
Jun 12 13:12:33 Laptop charon: 00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
Jun 12 13:12:33 Laptop charon: 00[CFG] loading crls from '/etc/ipsec.d/crls'
Jun 12 13:12:33 Laptop charon: 00[CFG] loading secrets from '/etc/ipsec.secrets'
Jun 12 13:12:33 Laptop charon: 00[CFG]   loaded IKE secret for @vpnpsk @psk
Jun 12 13:12:33 Laptop charon: 00[CFG] sql plugin: database URI not set
Jun 12 13:12:33 Laptop charon: 00[CFG] opening triplet file /etc/ipsec.d/triplets.dat failed: No such file or directory
Jun 12 13:12:33 Laptop charon: 00[CFG] eap-simaka-sql database URI missing
Jun 12 13:12:33 Laptop charon: 00[CFG] loaded 0 RADIUS server configurations
Jun 12 13:12:33 Laptop charon: 00[CFG] no threshold configured for systime-fix, disabled
Jun 12 13:12:33 Laptop charon: 00[CFG] coupling file path unspecified
Jun 12 13:12:33 Laptop charon: 00[LIB] loaded plugins: charon test-vectors unbound ldap pkcs11 aes rc2 sha1 sha2 md4 md5 rdrand random nonce x509 revocation constraints acert pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey dnscert ipseckey pem openssl gcrypt af-alg fips-prf gmp agent chapoly xcbc cmac hmac ctr ccm gcm ntru bliss curl soup mysql sqlite attr kernel-netlink resolve socket-default connmark farp stroke updown eap-identity eap-sim eap-sim-pcsc eap-aka eap-aka-3gpp2 eap-simaka-pseudonym eap-simaka-reauth eap-md5 eap-gtc eap-mschapv2 eap-dynamic eap-radius eap-tls eap-ttls eap-peap eap-tnc xauth-generic xauth-eap xauth-pam xauth-noauth tnc-tnccs tnccs-20 tnccs-11 tnccs-dynamic dhcp whitelist lookip error-notify certexpire led radattr addrblock unity
Jun 12 13:12:33 Laptop charon: 00[LIB] dropped capabilities, running as uid 0, gid 0
Jun 12 13:12:33 Laptop charon: 00[JOB] spawning 16 worker threads
Jun 12 13:12:33 Laptop charon: 04[CFG] received stroke: add connection 'nm-ipsec-l2tp-4631'
Jun 12 13:12:33 Laptop charon: 04[CFG] added configuration 'nm-ipsec-l2tp-4631'
Jun 12 13:12:34 Laptop charon: 02[CFG] rereading secrets
Jun 12 13:12:34 Laptop charon: 02[CFG] loading secrets from '/etc/ipsec.secrets'
Jun 12 13:12:34 Laptop charon: 02[CFG]   loaded IKE secret for @vpnpsk @psk
Jun 12 13:12:34 Laptop charon: 09[CFG] received stroke: initiate 'nm-ipsec-l2tp-4631'
Jun 12 13:12:34 Laptop charon: 10[IKE] initiating Main Mode IKE_SA nm-ipsec-l2tp-4631[1] to *snip*
Jun 12 13:12:34 Laptop charon: 10[ENC] generating ID_PROT request 0 [ SA V V V V ]
Jun 12 13:12:34 Laptop charon: 10[NET] sending packet: from 192.168.77.66[500] to *snip*[500] (248 bytes)
Jun 12 13:12:34 Laptop charon: 11[NET] received packet: from *snip*[500] to 192.168.77.66[500] (56 bytes)
Jun 12 13:12:34 Laptop charon: 11[ENC] parsed INFORMATIONAL_V1 request 4204653677 [ N(NO_PROP) ]
Jun 12 13:12:34 Laptop charon: 11[IKE] received NO_PROPOSAL_CHOSEN error notify
Jun 12 13:12:34 Laptop charon: 12[CFG] rereading secrets
Jun 12 13:12:34 Laptop charon: 12[CFG] loading secrets from '/etc/ipsec.secrets'
Jun 12 13:12:34 Laptop NetworkManager[859]: <info>  [1465729954.4582] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: state changed: starting (3)
Jun 12 13:12:44 Laptop NetworkManager[859]: <warn>  [1465729964.4688] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: failed: (7) (7)
Jun 12 13:12:44 Laptop NetworkManager[859]: <warn>  [1465729964.4693] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: failed: connect-failed (1)
Jun 12 13:12:44 Laptop NetworkManager[859]: <info>  [1465729964.4693] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: state changed: stopping (5)
Jun 12 13:12:44 Laptop charon: 07[CFG] received stroke: terminate 'nm-ipsec-l2tp-4631'
Jun 12 13:12:44 Laptop charon: 07[CFG] no IKE_SA named 'nm-ipsec-l2tp-4631' found
Jun 12 13:12:44 Laptop NetworkManager[859]: <info>  [1465729964.4733] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: state changed: stopped (6)
Jun 12 13:12:44 Laptop NetworkManager[859]: <info>  [1465729964.4738] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: state change reason: unknown (0)
Jun 12 13:12:44 Laptop org.kde.kdeconnect[1575]: "No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/NetworkManager/ActiveConnection/9"
Jun 12 13:12:44 Laptop charon: 04[CFG] received stroke: terminate 'nm-ipsec-l2tp-4631'
Jun 12 13:12:44 Laptop charon: 04[CFG] no IKE_SA named 'nm-ipsec-l2tp-4631' found
Jun 12 13:12:44 Laptop NetworkManager[859]: <warn>  [1465729964.4868] vpn-connection[0xc871d0,923f0286-bff7-494f-831a-599ca05962e1,"VPNpsk",0]: VPN plugin: failed: connect-failed (1)

in addition here is the ike-scan report:

sudo ike-scan -M *snip*
Starting ike-scan 1.9 with 1 hosts (http://www.nta-monitor.com/tools/ike-scan/)
*snip*    Main Mode Handshake returned
        HDR=(CKY-R=*snip*)
        SA=(Enc=3DES Hash=SHA1 Group=2:modp1024 Auth=PSK LifeType=Seconds LifeDuration(4)=0x00007080)
        VID=*snip* (MS NT5 ISAKMPOAKLEY)
        VID=*snip* (RFC 3947 NAT-T)
        VID=*snip* (draft-ietf-ipsec-nat-t-ike-02\n)
        VID=*snip* (IKE Fragmentation)
        VID=*snip*
        VID=*snip*

Ending ike-scan 1.9: 1 hosts scanned in 0.045 seconds (22.39 hosts/sec).  1 returned handshake; 0 returned notify

I've installed:
Kubuntu 16.04
xl2tpd-1.3.7 (compiled from master branch)
pppd 2.4.7
strongSwan U5.3.5/K4.4.0-24-generic
network manager 1.2.0
and applied:
apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon
apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke

Unable to connect to L2TP over IPSec network

Whenever I try to connect to an L2TP over IPSec network, I get the following error:

(nm-l2tp-service:3272): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed

Is there something wrong with my dbus?

I am running Ubuntu 16.04 GNOME

no libnma or libnma-dev in Ubuntu 14.04

I can't find libnma or libnma-dev as mentioned in issue 12

Futher, I can't find any source repository or mention of libnma for Linux on search engines. What am I missing?

apt-get could not find--

sudo apt-get install intltool libtool network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev libnm-dev libnma-dev ppp-dev libdbus-glib-1-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev xl2tpd strongswan
[sudo] password for chris: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libnm-dev
E: Unable to locate package libnma-dev

So I tried without those two libraries--

chris@paco-work:~/scripts/network-manager-l2tp$ sudo apt-get install intltool \
> libtool \
> network-manager-dev \
> libnm-util-dev \
> libnm-glib-dev \
> libnm-glib-vpn-dev \
> libnm-gtk-dev \
> libnm-dev \
> libnma-dev \
> ppp-dev \
> libdbus-glib-1-dev \
> libsecret-1-dev \
> libgtk-3-dev \
> libglib2.0-dev \
> xl2tpd \
> strongswan
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libnm-dev
E: Unable to locate package libnma-dev
chris@paco-work:~/scripts/network-manager-l2tp$ sudo apt-get install intltool libtool network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev ppp-dev libdbus-glib-1-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev xl2tpd strongswan                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libappindicator1 libbonoboui2-0 libbonoboui2-common libgail18
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
  libgtk-vnc-1.0-0 libindicator7 python-appindicator python-gnome2
  python-gtk-vnc python-pyorbit
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  debhelper dh-apparmor gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0
  gir1.2-secret-1 libatk-bridge2.0-dev libatk1.0-dev
  libcairo-script-interpreter2 libcairo2-dev libdbus-1-dev libfontconfig1-dev
  libfreetype6-dev libgdk-pixbuf2.0-dev libharfbuzz-dev libharfbuzz-gobject0
  libice-dev libltdl-dev libmail-sendmail-perl libpango1.0-dev libpcre3-dev
  libpcrecpp0 libpixman-1-dev libpng12-dev libpthread-stubs0-dev libsm-dev
  libstrongswan libsys-hostname-long-perl libwayland-dev libx11-dev libx11-doc
  libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
  libxrender-dev po-debconf strongswan-ike strongswan-plugin-openssl
  strongswan-starter x11proto-composite-dev x11proto-core-dev
  x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
  x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
Suggested packages:
  dh-make apparmor-easyprof libcairo2-doc libglib2.0-doc libgtk-3-doc
  libice-doc libtool-doc libpango1.0-doc imagemagick libsm-doc
  strongswan-tnc-imcvs gfortran fortran95-compiler gcj-jdk libxcb-doc
  libxext-doc libmail-box-perl network-manager-strongswan
  strongswan-plugin-agent strongswan-plugin-certexpire
  strongswan-plugin-coupling strongswan-plugin-curl strongswan-plugin-dnscert
  strongswan-plugin-dnskey strongswan-plugin-duplicheck
  strongswan-plugin-error-notify strongswan-plugin-ipseckey
  strongswan-plugin-ldap strongswan-plugin-led strongswan-plugin-lookip
  strongswan-plugin-ntru strongswan-plugin-pkcs11 strongswan-plugin-radattr
  strongswan-plugin-sql strongswan-plugin-soup strongswan-plugin-unity
  strongswan-plugin-whitelist strongswan-tnc-client strongswan-tnc-server
The following NEW packages will be installed:
  debhelper dh-apparmor gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0
  gir1.2-secret-1 intltool libatk-bridge2.0-dev libatk1.0-dev
  libcairo-script-interpreter2 libcairo2-dev libdbus-1-dev libdbus-glib-1-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libgtk-3-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libltdl-dev
  libmail-sendmail-perl libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev
  libnm-util-dev libpango1.0-dev libpcre3-dev libpcrecpp0 libpixman-1-dev
  libpng12-dev libpthread-stubs0-dev libsecret-1-dev libsm-dev libstrongswan
  libsys-hostname-long-perl libtool libwayland-dev libx11-dev libx11-doc
  libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
  libxrender-dev network-manager-dev po-debconf ppp-dev strongswan
  strongswan-ike strongswan-plugin-openssl strongswan-starter
  x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
  x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xl2tpd
  xorg-sgml-doctools xtrans-dev zlib1g-dev
0 upgraded, 77 newly installed, 0 to remove and 7 not upgraded.
Need to get 15.6 MB of archives.
After this operation, 87.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libcairo-script-interpreter2 amd64 1.13.0~20140204-0ubuntu1.1 [53.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libharfbuzz-gobject0 amd64 0.9.27-1ubuntu1 [10.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpcrecpp0 amd64 1:8.31-2ubuntu2.3 [14.5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libstrongswan amd64 5.1.2-0ubuntu2.4 [1448 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main strongswan-starter amd64 5.1.2-0ubuntu2.4 [708 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main strongswan-plugin-openssl amd64 5.1.2-0ubuntu2.4 [189 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main strongswan-ike amd64 5.1.2-0ubuntu2.4 [1199 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main dh-apparmor all 2.8.95~2430-0ubuntu5.3 [12.2 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty/main debhelper all 9.20131227ubuntu1 [604 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gir1.2-networkmanager-1.0 amd64 0.9.8.8-0ubuntu7.3 [35.5 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gir1.2-nmgtk-1.0 amd64 0.9.8.8-0ubuntu4.4 [4234 B]
Get:13 http://us.archive.ubuntu.com/ubuntu/ trusty/main gir1.2-secret-1 amd64 0.16-0ubuntu1 [8032 B]
Get:14 http://us.archive.ubuntu.com/ubuntu/ trusty/main intltool all 0.50.2-2 [52.0 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpcre3-dev amd64 1:8.31-2ubuntu2.3 [237 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ trusty/main zlib1g-dev amd64 1:1.2.8.dfsg-1ubuntu1 [183 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libglib2.0-dev amd64 2.40.2-0ubuntu1 [1322 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ trusty/main libatk-bridge2.0-dev amd64 2.10.2-2ubuntu1 [2778 B]
Get:19 http://us.archive.ubuntu.com/ubuntu/ trusty/main libatk1.0-dev amd64 2.10.0-2ubuntu2 [67.8 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpng12-dev amd64 1.2.50-1ubuntu2.14.04.2 [206 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libfreetype6-dev amd64 2.5.2-1ubuntu2.5 [621 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1-dev amd64 2.11.0-0ubuntu4.1 [664 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu/ trusty/main xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main x11proto-core-dev all 7.0.26-1~ubuntu2 [700 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxau-dev amd64 1:1.0.8-1 [11.1 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxdmcp-dev amd64 1:1.1.1-1 [26.9 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-input-dev all 2.3-1 [139 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-kb-dev all 1.0.6-2 [269 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main xtrans-dev all 1.3.5-1~ubuntu14.04.1 [70.3 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu/ trusty/main libpthread-stubs0-dev amd64 0.3-4 [4068 B]
Get:31 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxcb1-dev amd64 1.10-2ubuntu1 [76.6 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu/ trusty/main libx11-dev amd64 2:1.6.2-1ubuntu2 [629 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-render-dev all 2:0.11.1-2 [20.1 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxrender-dev amd64 1:0.9.8-1build0.14.04.1 [23.8 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu/ trusty/main libice-dev amd64 2:1.0.8-2 [57.6 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu/ trusty/main libsm-dev amd64 2:1.2.1-2 [19.9 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpixman-1-dev amd64 0.30.2-2ubuntu1.1 [240 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxcb-render0-dev amd64 1.10-2ubuntu1 [16.7 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxcb-shm0-dev amd64 1.10-2ubuntu1 [6868 B]
Get:40 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-xext-dev all 7.3.0-1 [212 kB]
Get:41 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxext-dev amd64 2:1.3.2-1ubuntu0.0.14.04.1 [81.2 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libcairo2-dev amd64 1.13.0~20140204-0ubuntu1.1 [574 kB]
Get:43 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libdbus-1-dev amd64 1.6.18-0ubuntu4.3 [151 kB]
Get:44 http://us.archive.ubuntu.com/ubuntu/ trusty/main libdbus-glib-1-dev amd64 0.100.2-1 [125 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgdk-pixbuf2.0-dev amd64 2.30.7-0ubuntu1.2 [43.0 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxft-dev amd64 2.3.1-2 [45.8 kB]
Get:47 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libharfbuzz-dev amd64 0.9.27-1ubuntu1 [29.0 kB]
Get:48 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpango1.0-dev amd64 1.36.3-1ubuntu1.1 [278 kB]
Get:49 http://us.archive.ubuntu.com/ubuntu/ trusty/main libwayland-dev amd64 1.4.0-1ubuntu1 [104 kB]
Get:50 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxkbcommon-dev amd64 0.4.1-0ubuntu1 [131 kB]
Get:51 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-xinerama-dev all 1.2.1-2 [4966 B]
Get:52 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxinerama-dev amd64 2:1.1.3-1 [8404 B]
Get:53 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-fixes-dev all 1:5.0-2ubuntu2 [14.2 kB]
Get:54 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxfixes-dev amd64 1:5.0.1-1ubuntu1.1 [10.8 kB]
Get:55 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxi-dev amd64 2:1.7.1.901-1ubuntu1.1 [184 kB]
Get:56 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-randr-dev all 1.4.0+git20120101.is.really.1.4.0-0ubuntu1 [32.9 kB]
Get:57 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxrandr-dev amd64 2:1.4.2-1 [22.6 kB]
Get:58 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxcursor-dev amd64 1:1.1.14-1 [29.8 kB]
Get:59 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-composite-dev all 1:0.4.2-2 [10.5 kB]
Get:60 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxcomposite-dev amd64 1:0.4.4-1 [9954 B]
Get:61 http://us.archive.ubuntu.com/ubuntu/ trusty/main x11proto-damage-dev all 1:1.2.1-2 [8286 B]
Get:62 http://us.archive.ubuntu.com/ubuntu/ trusty/main libxdamage-dev amd64 1:1.1.4-1ubuntu1 [5450 B]
Get:63 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgtk-3-dev amd64 3.10.8-0ubuntu1.6 [807 kB]
Get:64 http://us.archive.ubuntu.com/ubuntu/ trusty/main libltdl-dev amd64 2.4.2-1.7ubuntu1 [157 kB]
Get:65 http://us.archive.ubuntu.com/ubuntu/ trusty/main libsys-hostname-long-perl all 1.4-3 [11.3 kB]
Get:66 http://us.archive.ubuntu.com/ubuntu/ trusty/main libmail-sendmail-perl all 0.79.16-1 [26.5 kB]
Get:67 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libnm-util-dev amd64 0.9.8.8-0ubuntu7.3 [173 kB]
Get:68 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main network-manager-dev amd64 0.9.8.8-0ubuntu7.3 [54.4 kB]
Get:69 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libnm-glib-dev amd64 0.9.8.8-0ubuntu7.3 [161 kB]
Get:70 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libnm-glib-vpn-dev amd64 0.9.8.8-0ubuntu7.3 [5860 B]
Get:71 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libnm-gtk-dev amd64 0.9.8.8-0ubuntu4.4 [8624 B]
Get:72 http://us.archive.ubuntu.com/ubuntu/ trusty/main libsecret-1-dev amd64 0.16-0ubuntu1 [170 kB]
Get:73 http://us.archive.ubuntu.com/ubuntu/ trusty/main libtool amd64 2.4.2-1.7ubuntu1 [188 kB]
Get:74 http://us.archive.ubuntu.com/ubuntu/ trusty/main libx11-doc all 2:1.6.2-1ubuntu2 [1448 kB]
Get:75 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main strongswan all 5.1.2-0ubuntu2.4 [29.7 kB]
Get:76 http://us.archive.ubuntu.com/ubuntu/ trusty/universe xl2tpd amd64 1.3.6+dfsg-1 [64.8 kB]
Get:77 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main ppp-dev all 2.4.5-5.1ubuntu2.2 [31.6 kB]
Fetched 15.6 MB in 1min 13s (213 kB/s)                                         
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libcairo-script-interpreter2:amd64.
(Reading database ... 186061 files and directories currently installed.)
Preparing to unpack .../libcairo-script-interpreter2_1.13.0~20140204-0ubuntu1.1_amd64.deb ...
Unpacking libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
Selecting previously unselected package libharfbuzz-gobject0:amd64.
Preparing to unpack .../libharfbuzz-gobject0_0.9.27-1ubuntu1_amd64.deb ...
Unpacking libharfbuzz-gobject0:amd64 (0.9.27-1ubuntu1) ...
Selecting previously unselected package libpcrecpp0:amd64.
Preparing to unpack .../libpcrecpp0_1%3a8.31-2ubuntu2.3_amd64.deb ...
Unpacking libpcrecpp0:amd64 (1:8.31-2ubuntu2.3) ...
Selecting previously unselected package libstrongswan.
Preparing to unpack .../libstrongswan_5.1.2-0ubuntu2.4_amd64.deb ...
Unpacking libstrongswan (5.1.2-0ubuntu2.4) ...
Selecting previously unselected package strongswan-starter.
Preparing to unpack .../strongswan-starter_5.1.2-0ubuntu2.4_amd64.deb ...
Unpacking strongswan-starter (5.1.2-0ubuntu2.4) ...
Selecting previously unselected package strongswan-plugin-openssl.
Preparing to unpack .../strongswan-plugin-openssl_5.1.2-0ubuntu2.4_amd64.deb ...
Unpacking strongswan-plugin-openssl (5.1.2-0ubuntu2.4) ...
Selecting previously unselected package strongswan-ike.
Preparing to unpack .../strongswan-ike_5.1.2-0ubuntu2.4_amd64.deb ...
Unpacking strongswan-ike (5.1.2-0ubuntu2.4) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../po-debconf_1.0.16+nmu2ubuntu1_all.deb ...
Unpacking po-debconf (1.0.16+nmu2ubuntu1) ...
Selecting previously unselected package dh-apparmor.
Preparing to unpack .../dh-apparmor_2.8.95~2430-0ubuntu5.3_all.deb ...
Unpacking dh-apparmor (2.8.95~2430-0ubuntu5.3) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../debhelper_9.20131227ubuntu1_all.deb ...
Unpacking debhelper (9.20131227ubuntu1) ...
Selecting previously unselected package gir1.2-networkmanager-1.0.
Preparing to unpack .../gir1.2-networkmanager-1.0_0.9.8.8-0ubuntu7.3_amd64.deb ...
Unpacking gir1.2-networkmanager-1.0 (0.9.8.8-0ubuntu7.3) ...
Selecting previously unselected package gir1.2-nmgtk-1.0.
Preparing to unpack .../gir1.2-nmgtk-1.0_0.9.8.8-0ubuntu4.4_amd64.deb ...
Unpacking gir1.2-nmgtk-1.0 (0.9.8.8-0ubuntu4.4) ...
Selecting previously unselected package gir1.2-secret-1.
Preparing to unpack .../gir1.2-secret-1_0.16-0ubuntu1_amd64.deb ...
Unpacking gir1.2-secret-1 (0.16-0ubuntu1) ...
Selecting previously unselected package intltool.
Preparing to unpack .../intltool_0.50.2-2_all.deb ...
Unpacking intltool (0.50.2-2) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../libpcre3-dev_1%3a8.31-2ubuntu2.3_amd64.deb ...
Unpacking libpcre3-dev:amd64 (1:8.31-2ubuntu2.3) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1) ...
Selecting previously unselected package libglib2.0-dev.
Preparing to unpack .../libglib2.0-dev_2.40.2-0ubuntu1_amd64.deb ...
Unpacking libglib2.0-dev (2.40.2-0ubuntu1) ...
Selecting previously unselected package libatk-bridge2.0-dev:amd64.
Preparing to unpack .../libatk-bridge2.0-dev_2.10.2-2ubuntu1_amd64.deb ...
Unpacking libatk-bridge2.0-dev:amd64 (2.10.2-2ubuntu1) ...
Selecting previously unselected package libatk1.0-dev.
Preparing to unpack .../libatk1.0-dev_2.10.0-2ubuntu2_amd64.deb ...
Unpacking libatk1.0-dev (2.10.0-2ubuntu2) ...
Selecting previously unselected package libpng12-dev.
Preparing to unpack .../libpng12-dev_1.2.50-1ubuntu2.14.04.2_amd64.deb ...
Unpacking libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
Selecting previously unselected package libfreetype6-dev.
Preparing to unpack .../libfreetype6-dev_2.5.2-1ubuntu2.5_amd64.deb ...
Unpacking libfreetype6-dev (2.5.2-1ubuntu2.5) ...
Selecting previously unselected package libfontconfig1-dev.
Preparing to unpack .../libfontconfig1-dev_2.11.0-0ubuntu4.1_amd64.deb ...
Unpacking libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../x11proto-core-dev_7.0.26-1~ubuntu2_all.deb ...
Unpacking x11proto-core-dev (7.0.26-1~ubuntu2) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../libxdmcp-dev_1%3a1.1.1-1_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.1-1) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../x11proto-input-dev_2.3-1_all.deb ...
Unpacking x11proto-input-dev (2.3-1) ...
Selecting previously unselected package x11proto-kb-dev.
Preparing to unpack .../x11proto-kb-dev_1.0.6-2_all.deb ...
Unpacking x11proto-kb-dev (1.0.6-2) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../xtrans-dev_1.3.5-1~ubuntu14.04.1_all.deb ...
Unpacking xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../libxcb1-dev_1.10-2ubuntu1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.10-2ubuntu1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../libx11-dev_2%3a1.6.2-1ubuntu2_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package x11proto-render-dev.
Preparing to unpack .../x11proto-render-dev_2%3a0.11.1-2_all.deb ...
Unpacking x11proto-render-dev (2:0.11.1-2) ...
Selecting previously unselected package libxrender-dev:amd64.
Preparing to unpack .../libxrender-dev_1%3a0.9.8-1build0.14.04.1_amd64.deb ...
Unpacking libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../libice-dev_2%3a1.0.8-2_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.8-2) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../libsm-dev_2%3a1.2.1-2_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.1-2) ...
Selecting previously unselected package libpixman-1-dev.
Preparing to unpack .../libpixman-1-dev_0.30.2-2ubuntu1.1_amd64.deb ...
Unpacking libpixman-1-dev (0.30.2-2ubuntu1.1) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../libxcb-render0-dev_1.10-2ubuntu1_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...
Selecting previously unselected package libxcb-shm0-dev:amd64.
Preparing to unpack .../libxcb-shm0-dev_1.10-2ubuntu1_amd64.deb ...
Unpacking libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../x11proto-xext-dev_7.3.0-1_all.deb ...
Unpacking x11proto-xext-dev (7.3.0-1) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../libxext-dev_2%3a1.3.2-1ubuntu0.0.14.04.1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...
Selecting previously unselected package libcairo2-dev.
Preparing to unpack .../libcairo2-dev_1.13.0~20140204-0ubuntu1.1_amd64.deb ...
Unpacking libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...
Selecting previously unselected package libdbus-1-dev:amd64.
Preparing to unpack .../libdbus-1-dev_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking libdbus-1-dev:amd64 (1.6.18-0ubuntu4.3) ...
Selecting previously unselected package libdbus-glib-1-dev.
Preparing to unpack .../libdbus-glib-1-dev_0.100.2-1_amd64.deb ...
Unpacking libdbus-glib-1-dev (0.100.2-1) ...
Selecting previously unselected package libgdk-pixbuf2.0-dev.
Preparing to unpack .../libgdk-pixbuf2.0-dev_2.30.7-0ubuntu1.2_amd64.deb ...
Unpacking libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...
Selecting previously unselected package libxft-dev.
Preparing to unpack .../libxft-dev_2.3.1-2_amd64.deb ...
Unpacking libxft-dev (2.3.1-2) ...
Selecting previously unselected package libharfbuzz-dev.
Preparing to unpack .../libharfbuzz-dev_0.9.27-1ubuntu1_amd64.deb ...
Unpacking libharfbuzz-dev (0.9.27-1ubuntu1) ...
Selecting previously unselected package libpango1.0-dev.
Preparing to unpack .../libpango1.0-dev_1.36.3-1ubuntu1.1_amd64.deb ...
Unpacking libpango1.0-dev (1.36.3-1ubuntu1.1) ...
Selecting previously unselected package libwayland-dev.
Preparing to unpack .../libwayland-dev_1.4.0-1ubuntu1_amd64.deb ...
Unpacking libwayland-dev (1.4.0-1ubuntu1) ...
Selecting previously unselected package libxkbcommon-dev.
Preparing to unpack .../libxkbcommon-dev_0.4.1-0ubuntu1_amd64.deb ...
Unpacking libxkbcommon-dev (0.4.1-0ubuntu1) ...
Selecting previously unselected package x11proto-xinerama-dev.
Preparing to unpack .../x11proto-xinerama-dev_1.2.1-2_all.deb ...
Unpacking x11proto-xinerama-dev (1.2.1-2) ...
Selecting previously unselected package libxinerama-dev:amd64.
Preparing to unpack .../libxinerama-dev_2%3a1.1.3-1_amd64.deb ...
Unpacking libxinerama-dev:amd64 (2:1.1.3-1) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../x11proto-fixes-dev_1%3a5.0-2ubuntu2_all.deb ...
Unpacking x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../libxfixes-dev_1%3a5.0.1-1ubuntu1.1_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:5.0.1-1ubuntu1.1) ...
Selecting previously unselected package libxi-dev.
Preparing to unpack .../libxi-dev_2%3a1.7.1.901-1ubuntu1.1_amd64.deb ...
Unpacking libxi-dev (2:1.7.1.901-1ubuntu1.1) ...
Selecting previously unselected package x11proto-randr-dev.
Preparing to unpack .../x11proto-randr-dev_1.4.0+git20120101.is.really.1.4.0-0ubuntu1_all.deb ...
Unpacking x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ...
Selecting previously unselected package libxrandr-dev:amd64.
Preparing to unpack .../libxrandr-dev_2%3a1.4.2-1_amd64.deb ...
Unpacking libxrandr-dev:amd64 (2:1.4.2-1) ...
Selecting previously unselected package libxcursor-dev:amd64.
Preparing to unpack .../libxcursor-dev_1%3a1.1.14-1_amd64.deb ...
Unpacking libxcursor-dev:amd64 (1:1.1.14-1) ...
Selecting previously unselected package x11proto-composite-dev.
Preparing to unpack .../x11proto-composite-dev_1%3a0.4.2-2_all.deb ...
Unpacking x11proto-composite-dev (1:0.4.2-2) ...
Selecting previously unselected package libxcomposite-dev.
Preparing to unpack .../libxcomposite-dev_1%3a0.4.4-1_amd64.deb ...
Unpacking libxcomposite-dev (1:0.4.4-1) ...
Selecting previously unselected package x11proto-damage-dev.
Preparing to unpack .../x11proto-damage-dev_1%3a1.2.1-2_all.deb ...
Unpacking x11proto-damage-dev (1:1.2.1-2) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../libxdamage-dev_1%3a1.1.4-1ubuntu1_amd64.deb ...
Unpacking libxdamage-dev:amd64 (1:1.1.4-1ubuntu1) ...
Selecting previously unselected package libgtk-3-dev.
Preparing to unpack .../libgtk-3-dev_3.10.8-0ubuntu1.6_amd64.deb ...
Unpacking libgtk-3-dev (3.10.8-0ubuntu1.6) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../libltdl-dev_2.4.2-1.7ubuntu1_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.2-1.7ubuntu1) ...
Selecting previously unselected package libsys-hostname-long-perl.
Preparing to unpack .../libsys-hostname-long-perl_1.4-3_all.deb ...
Unpacking libsys-hostname-long-perl (1.4-3) ...
Selecting previously unselected package libmail-sendmail-perl.
Preparing to unpack .../libmail-sendmail-perl_0.79.16-1_all.deb ...
Unpacking libmail-sendmail-perl (0.79.16-1) ...
Selecting previously unselected package libnm-util-dev.
Preparing to unpack .../libnm-util-dev_0.9.8.8-0ubuntu7.3_amd64.deb ...
Unpacking libnm-util-dev (0.9.8.8-0ubuntu7.3) ...
Selecting previously unselected package network-manager-dev.
Preparing to unpack .../network-manager-dev_0.9.8.8-0ubuntu7.3_amd64.deb ...
Unpacking network-manager-dev (0.9.8.8-0ubuntu7.3) ...
Selecting previously unselected package libnm-glib-dev.
Preparing to unpack .../libnm-glib-dev_0.9.8.8-0ubuntu7.3_amd64.deb ...
Unpacking libnm-glib-dev (0.9.8.8-0ubuntu7.3) ...
Selecting previously unselected package libnm-glib-vpn-dev.
Preparing to unpack .../libnm-glib-vpn-dev_0.9.8.8-0ubuntu7.3_amd64.deb ...
Unpacking libnm-glib-vpn-dev (0.9.8.8-0ubuntu7.3) ...
Selecting previously unselected package libnm-gtk-dev.
Preparing to unpack .../libnm-gtk-dev_0.9.8.8-0ubuntu4.4_amd64.deb ...
Unpacking libnm-gtk-dev (0.9.8.8-0ubuntu4.4) ...
Selecting previously unselected package libsecret-1-dev.
Preparing to unpack .../libsecret-1-dev_0.16-0ubuntu1_amd64.deb ...
Unpacking libsecret-1-dev (0.16-0ubuntu1) ...
Selecting previously unselected package libtool.
Preparing to unpack .../libtool_2.4.2-1.7ubuntu1_amd64.deb ...
Unpacking libtool (2.4.2-1.7ubuntu1) ...
Selecting previously unselected package libx11-doc.
Preparing to unpack .../libx11-doc_2%3a1.6.2-1ubuntu2_all.deb ...
Unpacking libx11-doc (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package strongswan.
Preparing to unpack .../strongswan_5.1.2-0ubuntu2.4_all.deb ...
Unpacking strongswan (5.1.2-0ubuntu2.4) ...
Selecting previously unselected package xl2tpd.
Preparing to unpack .../xl2tpd_1.3.6+dfsg-1_amd64.deb ...
Unpacking xl2tpd (1.3.6+dfsg-1) ...
Selecting previously unselected package ppp-dev.
Preparing to unpack .../ppp-dev_2.4.5-5.1ubuntu2.2_all.deb ...
Unpacking ppp-dev (2.4.5-5.1ubuntu2.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for doc-base (0.10.5) ...
Processing 3 added doc-base files...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Setting up libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
Setting up libharfbuzz-gobject0:amd64 (0.9.27-1ubuntu1) ...
Setting up libpcrecpp0:amd64 (1:8.31-2ubuntu2.3) ...
Setting up libstrongswan (5.1.2-0ubuntu2.4) ...
Setting up strongswan-plugin-openssl (5.1.2-0ubuntu2.4) ...
Setting up po-debconf (1.0.16+nmu2ubuntu1) ...
Setting up dh-apparmor (2.8.95~2430-0ubuntu5.3) ...
Setting up debhelper (9.20131227ubuntu1) ...
Setting up gir1.2-networkmanager-1.0 (0.9.8.8-0ubuntu7.3) ...
Setting up gir1.2-nmgtk-1.0 (0.9.8.8-0ubuntu4.4) ...
Setting up gir1.2-secret-1 (0.16-0ubuntu1) ...
Setting up intltool (0.50.2-2) ...
Setting up libpcre3-dev:amd64 (1:8.31-2ubuntu2.3) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1) ...
Setting up libglib2.0-dev (2.40.2-0ubuntu1) ...
Setting up libatk-bridge2.0-dev:amd64 (2.10.2-2ubuntu1) ...
Setting up libatk1.0-dev (2.10.0-2ubuntu2) ...
Setting up libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
Setting up libfreetype6-dev (2.5.2-1ubuntu2.5) ...
Setting up libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up x11proto-core-dev (7.0.26-1~ubuntu2) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.1-1) ...
Setting up x11proto-input-dev (2.3-1) ...
Setting up x11proto-kb-dev (1.0.6-2) ...
Setting up xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libxcb1-dev:amd64 (1.10-2ubuntu1) ...
Setting up libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...
Setting up x11proto-render-dev (2:0.11.1-2) ...
Setting up libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...
Setting up libice-dev:amd64 (2:1.0.8-2) ...
Setting up libsm-dev:amd64 (2:1.2.1-2) ...
Setting up libpixman-1-dev (0.30.2-2ubuntu1.1) ...
Setting up libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...
Setting up libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...
Setting up x11proto-xext-dev (7.3.0-1) ...
Setting up libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...
Setting up libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...
Setting up libdbus-1-dev:amd64 (1.6.18-0ubuntu4.3) ...
Setting up libdbus-glib-1-dev (0.100.2-1) ...
Setting up libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...
Setting up libxft-dev (2.3.1-2) ...
Setting up libharfbuzz-dev (0.9.27-1ubuntu1) ...
Setting up libpango1.0-dev (1.36.3-1ubuntu1.1) ...
Setting up libwayland-dev (1.4.0-1ubuntu1) ...
Setting up libxkbcommon-dev (0.4.1-0ubuntu1) ...
Setting up x11proto-xinerama-dev (1.2.1-2) ...
Setting up libxinerama-dev:amd64 (2:1.1.3-1) ...
Setting up x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Setting up libxfixes-dev:amd64 (1:5.0.1-1ubuntu1.1) ...
Setting up libxi-dev (2:1.7.1.901-1ubuntu1.1) ...
Setting up x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ...
Setting up libxrandr-dev:amd64 (2:1.4.2-1) ...
Setting up libxcursor-dev:amd64 (1:1.1.14-1) ...
Setting up x11proto-composite-dev (1:0.4.2-2) ...
Setting up libxcomposite-dev (1:0.4.4-1) ...
Setting up x11proto-damage-dev (1:1.2.1-2) ...
Setting up libxdamage-dev:amd64 (1:1.1.4-1ubuntu1) ...
Setting up libgtk-3-dev (3.10.8-0ubuntu1.6) ...
Setting up libltdl-dev:amd64 (2.4.2-1.7ubuntu1) ...
Setting up libsys-hostname-long-perl (1.4-3) ...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libnm-util-dev (0.9.8.8-0ubuntu7.3) ...
Setting up network-manager-dev (0.9.8.8-0ubuntu7.3) ...
Setting up libnm-glib-dev (0.9.8.8-0ubuntu7.3) ...
Setting up libnm-glib-vpn-dev (0.9.8.8-0ubuntu7.3) ...
Setting up libnm-gtk-dev (0.9.8.8-0ubuntu4.4) ...
Setting up libsecret-1-dev (0.16-0ubuntu1) ...
Setting up libtool (2.4.2-1.7ubuntu1) ...
Setting up libx11-doc (2:1.6.2-1ubuntu2) ...
Setting up xl2tpd (1.3.6+dfsg-1) ...
Starting xl2tpd: xl2tpd.
Setting up ppp-dev (2.4.5-5.1ubuntu2.2) ...
Setting up strongswan-ike (5.1.2-0ubuntu2.4) ...
Setting up strongswan (5.1.2-0ubuntu2.4) ...
Setting up strongswan-starter (5.1.2-0ubuntu2.4) ...
strongswan start/running
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ureadahead (0.100.0-16) ...
chris@paco-work:~/scripts/network-manager-l2tp$ ./autogen.sh                        
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
configure.ac:17: installing './compile'
configure.ac:20: installing './config.guess'
configure.ac:20: installing './config.sub'
configure.ac:7: installing './install-sh'
configure.ac:7: installing './missing'
auth-dialog/Makefile.am: installing './depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking pppd/pppd.h usability... yes
checking pppd/pppd.h presence... yes
checking for pppd/pppd.h... yes
checking for mode_t... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for select... yes
checking for socket... yes
checking for uname... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.18.2
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTK... yes
checking for LIBNMA... no
configure: error: Package requirements (libnma >= 1.1.0) were not met:

No package 'libnma' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNMA_CFLAGS
and LIBNMA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

undefined symbol: nma_utils_setup_password_storage

Hi, all. I'm on Ubuntu 15.10. I followed the build instructions from the readme as well as the "known issues" page. Everything makes and installs, but there's a crash on creating a new L2TP connection profile. journalctl shows this:

Nov 23 16:58:18 downhome gnome-session[1536]: /usr/bin/nm-connection-editor: symbol lookup error: /usr/lib/x86_64-linux-gnu/NetworkManager/libnm-l2tp-properties.so: undefined symbol: nm

IPsec XAUTH compatibility with installed package from PPA.

Hello, guys. I installed package from ppa, configured l2tp network in network manager but it doesn't works for me.Here is my loggs:

sudo /usr/lib/Netw
orkManager/nm-l2tp-service --debug
nm-l2tp[12432] <debug> nm-l2tp-service (version 1.2.6) starting...
nm-l2tp[12432] <debug>  uses default --bus-name "org.freedesktop.NetworkManager.l2tp"
nm-l2tp[12432] <info>  ipsec enable flag: yes
** Message: Check port 1701
connection
	id : "Curve VPN" (s)
	uuid : "e15702fb-0564-4118-bf00-b4fbb1010465" (s)
	interface-name : NULL (sd)
	type : "vpn" (s)
	permissions : ["user:maxzubr:"] (s)
	autoconnect : FALSE (s)
	autoconnect-priority : 0 (sd)
	timestamp : 0 (sd)
	read-only : FALSE (sd)
	zone : NULL (sd)
	master : NULL (sd)
	slave-type : NULL (sd)
	autoconnect-slaves : ((NMSettingConnectionAutoconnectSlaves) NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT) (sd)
	secondaries : [] (s)
	gateway-ping-timeout : 0 (sd)
	metered : ((NMMetered) NM_METERED_UNKNOWN) (sd)
	lldp : -1 (sd)


ipv6
	method : "auto" (s)
	dns : [] (s)
	dns-search : [] (s)
	dns-options : NULL (sd)
	dns-priority : 0 (sd)
	addresses : ((GPtrArray*) 0x1845960) (s)
	gateway : NULL (sd)
	routes : ((GPtrArray*) 0x1845940) (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	dhcp-hostname : NULL (sd)
	dhcp-send-hostname : TRUE (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)
	dad-timeout : -1 (sd)
	dhcp-timeout : 0 (sd)
	ip6-privacy : ((NMSettingIP6ConfigPrivacy) NM_SETTING_IP6_CONFIG_PRIVACY_DISABLED) (s)
	addr-gen-mode : 1 (sd)


ipv4
	method : "auto" (s)
	dns : [] (s)
	dns-search : [] (s)
	dns-options : NULL (sd)
	dns-priority : 0 (sd)
	addresses : ((GPtrArray*) 0x1845820) (s)
	gateway : NULL (sd)
	routes : ((GPtrArray*) 0x1844b60) (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	dhcp-hostname : NULL (sd)
	dhcp-send-hostname : TRUE (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)
	dad-timeout : -1 (sd)
	dhcp-timeout : 0 (sd)
	dhcp-client-id : NULL (sd)
	dhcp-fqdn : NULL (sd)


vpn
	service-type : "org.freedesktop.NetworkManager.l2tp" (s)
	user-name : "maxzubr" (s)
	persistent : FALSE (sd)
	data : ((GHashTable*) 0x1846520) (s)
	secrets : ((GHashTable*) 0x1846580) (s)
	timeout : 0 (sd)


nm-l2tp[12432] <info>  starting ipsec
Stopping strongSwan IPsec...
Starting strongSwan 5.5.1 IPsec [starter]...
Loading config setup
Loading conn 'e15702fb-0564-4118-bf00-b4fbb1010465'
found netkey IPsec stack
nm-l2tp[12432] <info>  Spawned ipsec up script with PID 12531.
initiating Main Mode IKE_SA e15702fb-0564-4118-bf00-b4fbb1010465[1] to xx.xx.xx.xx
generating ID_PROT request 0 [ SA V V V V V ]
sending packet: from xxxx[500] to xxxx[500] (240 bytes)
received packet: from xxxx[500] to xxxx[500] (92 bytes)
parsed INFORMATIONAL_V1 request 0 [ N(NO_PROP) ]
received NO_PROPOSAL_CHOSEN error notify
thread 15 received 11
 dumping 2 stack frame addresses:
  /lib/x86_64-linux-gnu/libpthread.so.0 @ 0x7fb4aeb60000 [0x7fb4aeb71390]
    -> ??:?
    [0x5643161adaf0]
killing ourself, received critical signal
nm-l2tp[12432] <warn>  Could not establish IPsec tunnel.

(nm-l2tp-service:12432): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed

When I try to connect to l2tp network after feeling a password nothing happens.

Strange compile/runtime bug causing connection failure

Hi guys.
Thanks again for the great project and good support.

I've noticed a strange problem recently. My l2tp connection stopped working (does not connect, but at least tries) when I try to connect via NetworkManager on my Gentoo system. Also have a script which starts all the l2tp stuff and it connects fine.

So I compiled a fresh version from git master which is definitely newer then was before. But it fails to connect as well but now even worse (fails immediately after clicking connect)

Logs say it fails on creating RUNDIR (invalid argument).
I also noticed I can redefine RUNDIR with runstatedir parameter of configure generated but not yet released version autoconf.

So I tried
export runstatedir="${EPREFIX}/run/NetworkManager" in my Gentoo ebuild before build and it worked! My vpn is successfully connected. I rechecked this several times. This export makes the trick.

But it's weird anyway, hard to guess. Can you do anything about it?

Problem with Gateway ID

Ubuntu 16.04 Desktop, new installation

I try to configure IPsec tunnel to L2TP host

  • when I leave "Gateway ID" empty, the L2TP host returns: INVALID_ID_INFORMATION
  • when I add a value to "Gateway ID" VPN fails on the Desktop. From the syslog:

Jul 6 11:12:10 Ubuntu-Desktop NetworkManager[745]: [1499332330.2524] vpn-connection[0x1813450,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: VPN service disappeared
Jul 6 11:12:44 Ubuntu-Desktop NetworkManager[745]: [1499332364.1532] keyfile: update /etc/NetworkManager/system-connections/VPN connection 1 (a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1")
Jul 6 11:12:44 Ubuntu-Desktop NetworkManager[745]: [1499332364.1536] audit: op="connection-update" uuid="a2bcee3b-b3fc-4882-9971-a7c84fdcd882" name="VPN connection 1" pid=4174 uid=1000 result="success"
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.5255] audit: op="connection-activate" uuid="a2bcee3b-b3fc-4882-9971-a7c84fdcd882" name="VPN connection 1" pid=3997 uid=1000 result="success"
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.5370] vpn-connection[0x1813630,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: Started the VPN service, PID 4190
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.5657] vpn-connection[0x1813630,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: Saw the service appear; activating connection
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.7403] vpn-connection[0x1813630,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: VPN connection: (ConnectInteractive) reply received
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: nm-l2tp[4190] ipsec enable flag: yes
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.7674] vpn-connection[0x1813630,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: VPN service disappeared
Jul 6 11:12:46 Ubuntu-Desktop NetworkManager[745]: [1499332366.7705] vpn-connection[0x1813630,a2bcee3b-b3fc-4882-9971-a7c84fdcd882,"VPN connection 1",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'

Your support is appreciated

libnma not found

Hello,

I'm having an issue while installing networkmanager-l2tp via yaourt.
Here is the output of the error:

configure: error: Package requirements (libnma >= 1.1.0) were not met:

No package 'libnma' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNMA_CFLAGS
and LIBNMA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build networkmanager-l2tp.

I was trying to find libnma package on the aur and no luck.
Could you please help me with this?
Thank you in advance

Can not create l2tp connect with ui interface on ubuntu16.04

I directly add ppa and install network-manager-l2tp, then want to create l2tp connect in the system configure, but below issue occur:

Could not load editor VPN plugin for 'org.freedesktop.NetworkManager.l2tp' (missing plugin file "/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-l2tp-editor.so").

It seems lack lib file but i do not know how to install it.

pppd keeps running after disconnect

I am running on Ubuntu 16.04 LTS.

After disconnecting a L2TP/IPSec VPN connection using the NetworkManager Gnome applet in the top menu bar, I can see that the pppd process is not being killed and I have to kill it manually.

Unable to establish connection

Hey, I wonder if you can help me.

I managed to install this on my Ubuntu 16.10, but I'm still unable to connect. I get:

The VPN connection 'name' failed, because the VPN service failed to start

and then

The VPN connection 'name' failed, because there were no valid VPN secrets

I already posted fairly detailed description on what's going on at https://www.reddit.com/r/Ubuntu/comments/4pz1fl/l2tp_ipsec_vpn_client_under_ubuntu_1604/d90ynm8/

I would greatly appreciate if you could find a moment and give it a look.

Connection is down shortly after it is established

Hi, I compiled 6a8ed3f from source (seems ike and esp dialogue does not work, so I fall back to the version that does not use the dialogue), and also xl2tp from source. The connection is able to establish, however, after some seconds, the xl2tp tunnel just die.

Apr 11 18:52:27 shawn-world NetworkManager[1012]: xl2tpd[6885]: Maximum retries exceeded for tunnel 45495.  Closing.

I am using ubuntu 16.04. network-manager is of 1.2.6. The full log is attached, so is configuration files for xl2tp, ipsec.

ipsec.conf

conn %default
    ikelifetime=8h
    lifetime=8h
    rekeymargin=3m
    keyingtries=1
    keyexchange=ikev1
    authby=secret
    rightid=""
    auto=add
    ike=aes128-sha1-modp1024,3des-sha1-modp1024
    # esp=aes128-sha1-modp1024,3des-sha1-modp1024
    esp=aes256-sha1,3des-sha1
    # ike=aes128-md5!
    # esp=aes128-md5!

conn IE
    keyexchange=ikev1
    left=%defaultroute
    auto=add
    authby=secret
    type=transport
    leftprotoport=17/1701
    rightprotoport=17/1701
    # set this to the ip address of your vpn server
    right=VPN_SERVER_IP

xl2tp.conf

[lac IE]
lns = VPN_SERVER_IP
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = no

options.l2tp.client

ipcp-accept-local
ipcp-accept-remote
refuse-eap
require-mschap-v2
noccp
noauth
idle 1800
mtu 1410
mru 1410
defaultroute
usepeerdns
debug
lock
connect-delay 5000
name xxxx
password xxx

Syslog

Apr 11 18:51:19 shawn-world NetworkManager[1012]: nm-l2tp[6810] <info>  ipsec enable flag: yes
Apr 11 18:51:19 shawn-world NetworkManager[1012]: ** Message: Check port 1701
Apr 11 18:51:19 shawn-world NetworkManager[1012]: nm-l2tp[6810] <info>  starting ipsec
Apr 11 18:51:19 shawn-world NetworkManager[1012]: Stopping strongSwan IPsec failed: starter is not running
Apr 11 18:51:21 shawn-world NetworkManager[1012]: Starting strongSwan 5.3.5 IPsec [starter]...
Apr 11 18:51:21 shawn-world NetworkManager[1012]: Loading config setup
Apr 11 18:51:21 shawn-world NetworkManager[1012]: Loading conn 'nm-ipsec-l2tp-6810'
Apr 11 18:51:21 shawn-world NetworkManager[1012]: found netkey IPsec stack
Apr 11 18:51:21 shawn-world charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-72-generic, x86_64)
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading crls from '/etc/ipsec.d/crls'
Apr 11 18:51:21 shawn-world charon: 00[CFG] loading secrets from '/etc/ipsec.secrets'
Apr 11 18:51:21 shawn-world charon: 00[CFG]   loaded IKE secret for %any
Apr 11 18:51:21 shawn-world charon: 00[LIB] loaded plugins: charon test-vectors aes rc2 sha1 sha2 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl fips-prf gmp agent xcbc hmac gcm attr kernel-netlink resolve socket-default connmark stroke updown
Apr 11 18:51:21 shawn-world charon: 00[LIB] dropped capabilities, running as uid 0, gid 0
Apr 11 18:51:21 shawn-world charon: 00[JOB] spawning 16 worker threads
Apr 11 18:51:21 shawn-world charon: 06[CFG] received stroke: add connection 'nm-ipsec-l2tp-6810'
Apr 11 18:51:21 shawn-world charon: 06[CFG] added configuration 'nm-ipsec-l2tp-6810'
Apr 11 18:51:22 shawn-world charon: 07[CFG] rereading secrets
Apr 11 18:51:22 shawn-world charon: 07[CFG] loading secrets from '/etc/ipsec.secrets'
Apr 11 18:51:22 shawn-world charon: 07[CFG]   loaded IKE secret for %any
Apr 11 18:51:22 shawn-world NetworkManager[1012]: nm-l2tp[6810] <info>  Spawned ipsec up script with PID 6871.
Apr 11 18:51:22 shawn-world charon: 10[CFG] received stroke: initiate 'nm-ipsec-l2tp-6810'
Apr 11 18:51:22 shawn-world charon: 12[IKE] initiating Main Mode IKE_SA nm-ipsec-l2tp-6810[1] to 137.189.99.189
Apr 11 18:51:22 shawn-world charon: 12[ENC] generating ID_PROT request 0 [ SA V V V V ]
Apr 11 18:51:22 shawn-world charon: 12[NET] sending packet: from 10.6.5.202[500] to 137.189.99.189[500] (280 bytes)
Apr 11 18:51:22 shawn-world charon: 13[NET] received packet: from 137.189.99.189[500] to 10.6.5.202[500] (124 bytes)
Apr 11 18:51:22 shawn-world charon: 13[ENC] parsed ID_PROT response 0 [ SA V V ]
Apr 11 18:51:22 shawn-world charon: 13[IKE] received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Apr 11 18:51:22 shawn-world charon: 13[IKE] received FRAGMENTATION vendor ID
Apr 11 18:51:22 shawn-world charon: 13[ENC] generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Apr 11 18:51:22 shawn-world charon: 13[NET] sending packet: from 10.6.5.202[500] to 137.189.99.189[500] (244 bytes)
Apr 11 18:51:22 shawn-world charon: 11[NET] received packet: from 137.189.99.189[500] to 10.6.5.202[500] (304 bytes)
Apr 11 18:51:22 shawn-world charon: 11[ENC] parsed ID_PROT response 0 [ KE No V V V V NAT-D NAT-D ]
Apr 11 18:51:22 shawn-world charon: 11[IKE] received Cisco Unity vendor ID
Apr 11 18:51:22 shawn-world charon: 11[IKE] received XAuth vendor ID
Apr 11 18:51:22 shawn-world charon: 11[ENC] received unknown vendor ID: ec:a6:f7:20:f3:4c:f4:e0:52:bb:2b:ae:e4:3a:b0:6b
Apr 11 18:51:22 shawn-world charon: 11[ENC] received unknown vendor ID: 1f:07:f7:0e:aa:65:14:d3:b0:fa:96:54:2a:50:01:00
Apr 11 18:51:22 shawn-world charon: 11[IKE] local host is behind NAT, sending keep alives
Apr 11 18:51:22 shawn-world charon: 11[ENC] generating ID_PROT request 0 [ ID HASH ]
Apr 11 18:51:22 shawn-world charon: 11[NET] sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (68 bytes)
Apr 11 18:51:22 shawn-world charon: 14[NET] received packet: from 137.189.99.189[4500] to 10.6.5.202[4500] (84 bytes)
Apr 11 18:51:22 shawn-world charon: 14[ENC] parsed ID_PROT response 0 [ ID HASH V ]
Apr 11 18:51:22 shawn-world charon: 14[IKE] received DPD vendor ID
Apr 11 18:51:22 shawn-world charon: 14[IKE] IKE_SA nm-ipsec-l2tp-6810[1] established between 10.6.5.202[10.6.5.202]...137.189.99.189[137.189.99.189]
Apr 11 18:51:22 shawn-world charon: 14[IKE] scheduling reauthentication in 10168s
Apr 11 18:51:22 shawn-world charon: 14[IKE] maximum IKE_SA lifetime 10708s
Apr 11 18:51:22 shawn-world charon: 14[ENC] generating QUICK_MODE request 2799167388 [ HASH SA No ID ID NAT-OA NAT-OA ]
Apr 11 18:51:22 shawn-world charon: 14[NET] sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (244 bytes)
Apr 11 18:51:22 shawn-world charon: 15[NET] received packet: from 137.189.99.189[4500] to 10.6.5.202[4500] (164 bytes)
Apr 11 18:51:22 shawn-world charon: 15[ENC] parsed QUICK_MODE response 2799167388 [ HASH SA No ID ID NAT-OA ]
Apr 11 18:51:22 shawn-world charon: 15[IKE] CHILD_SA nm-ipsec-l2tp-6810{1} established with SPIs c28c60c1_i 30f103c4_o and TS 10.6.5.202/32[udp/l2f] === 137.189.99.189/32[udp/l2f]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: initiating Main Mode IKE_SA nm-ipsec-l2tp-6810[1] to 137.189.99.189
Apr 11 18:51:22 shawn-world NetworkManager[1012]: generating ID_PROT request 0 [ SA V V V V ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: sending packet: from 10.6.5.202[500] to 137.189.99.189[500] (280 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received packet: from 137.189.99.189[500] to 10.6.5.202[500] (124 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: parsed ID_PROT response 0 [ SA V V ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received FRAGMENTATION vendor ID
Apr 11 18:51:22 shawn-world NetworkManager[1012]: generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: sending packet: from 10.6.5.202[500] to 137.189.99.189[500] (244 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received packet: from 137.189.99.189[500] to 10.6.5.202[500] (304 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: parsed ID_PROT response 0 [ KE No V V V V NAT-D NAT-D ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received Cisco Unity vendor ID
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received XAuth vendor ID
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received unknown vendor ID: ec:a6:f7:20:f3:4c:f4:e0:52:bb:2b:ae:e4:3a:b0:6b
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received unknown vendor ID: 1f:07:f7:0e:aa:65:14:d3:b0:fa:96:54:2a:50:01:00
Apr 11 18:51:22 shawn-world NetworkManager[1012]: local host is behind NAT, sending keep alives
Apr 11 18:51:22 shawn-world NetworkManager[1012]: generating ID_PROT request 0 [ ID HASH ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (68 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received packet: from 137.189.99.189[4500] to 10.6.5.202[4500] (84 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: parsed ID_PROT response 0 [ ID HASH V ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received DPD vendor ID
Apr 11 18:51:22 shawn-world NetworkManager[1012]: IKE_SA nm-ipsec-l2tp-6810[1] established between 10.6.5.202[10.6.5.202]...137.189.99.189[137.189.99.189]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: scheduling reauthentication in 10168s
Apr 11 18:51:22 shawn-world NetworkManager[1012]: maximum IKE_SA lifetime 10708s
Apr 11 18:51:22 shawn-world NetworkManager[1012]: generating QUICK_MODE request 2799167388 [ HASH SA No ID ID NAT-OA NAT-OA ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (244 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: received packet: from 137.189.99.189[4500] to 10.6.5.202[4500] (164 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: parsed QUICK_MODE response 2799167388 [ HASH SA No ID ID NAT-OA ]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: CHILD_SA nm-ipsec-l2tp-6810{1} established with SPIs c28c60c1_i 30f103c4_o and TS 10.6.5.202/32[udp/l2f] === 137.189.99.189/32[udp/l2f]
Apr 11 18:51:22 shawn-world NetworkManager[1012]: connection 'nm-ipsec-l2tp-6810' established successfully
Apr 11 18:51:22 shawn-world charon: 15[ENC] generating QUICK_MODE request 2799167388 [ HASH ]
Apr 11 18:51:22 shawn-world charon: 15[NET] sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (60 bytes)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: nm-l2tp[6810] <info>  strongSwan is ready.
Apr 11 18:51:22 shawn-world charon: 08[CFG] rereading secrets
Apr 11 18:51:22 shawn-world charon: 08[CFG] loading secrets from '/etc/ipsec.secrets'
Apr 11 18:51:22 shawn-world charon: 08[CFG]   loaded IKE secret for %any
Apr 11 18:51:22 shawn-world NetworkManager[1012]: ** Message: xl2tpd started with pid 6885
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: setsockopt recvref[30]: Protocol not available
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Using l2tp kernel support.
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: xl2tpd version xl2tpd-1.3.6 started on shawn-world PID:6885
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Forked by Scott Balmos and David Stipp, (C) 2001
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Inherited by Jeff McAdams, (C) 2002
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Forked again by Xelerance (www.xelerance.com) (C) 2006
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Listening on IP address 0.0.0.0, port 1701
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Connecting to host 137.189.99.189, port 1701
Apr 11 18:51:22 shawn-world NetworkManager[1012]: <info>  [1491907882.7225] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",0]: VPN plugin: state changed: starting (3)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Connection established to 137.189.99.189, 1701.  Local: 45495, Remote: 900 (ref=0/0).
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Calling on tunnel 45495
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: Call established with 137.189.99.189, Local: 30, Remote: 899, Serial: 1 (ref=0/0)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: start_pppd: I'm running:
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "/usr/sbin/pppd"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "passive"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "nodetach"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: ":"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "file"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "/var/run/nm-ppp-options.xl2tpd.6810"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "plugin"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "pppol2tp.so"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "pppol2tp"
Apr 11 18:51:22 shawn-world NetworkManager[1012]: xl2tpd[6885]: "7"
Apr 11 18:51:22 shawn-world pppd[6886]: Plugin /usr/lib/pppd/2.4.7/nm-l2tp-pppd-plugin.so loaded.
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] initializing
Apr 11 18:51:22 shawn-world pppd[6886]: Plugin pppol2tp.so loaded.
Apr 11 18:51:22 shawn-world pppd[6886]: pppd 2.4.7 started by root, uid 0
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 3 / phase 'serial connection'
Apr 11 18:51:22 shawn-world NetworkManager[1012]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Apr 11 18:51:22 shawn-world NetworkManager[1012]: <info>  [1491907882.7432] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/8)
Apr 11 18:51:22 shawn-world NetworkManager[1012]: <info>  [1491907882.7540] devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Apr 11 18:51:22 shawn-world pppd[6886]: Using interface ppp0
Apr 11 18:51:22 shawn-world NetworkManager[1012]: <info>  [1491907882.7540] device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Apr 11 18:51:22 shawn-world pppd[6886]: Connect: ppp0 <-->
Apr 11 18:51:22 shawn-world systemd[1]: Starting Laptop Mode Tools - Battery Polling Service...
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 5 / phase 'establish'
Apr 11 18:51:22 shawn-world pppd[6886]: Overriding mtu 1500 to 1400
Apr 11 18:51:22 shawn-world pppd[6886]: Overriding mru 1500 to mtu value 1400
Apr 11 18:51:22 shawn-world pppd[6886]: Overriding mtu 1500 to 1400
Apr 11 18:51:22 shawn-world pppd[6886]: Overriding mru 1500 to mtu value 1400
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 6 / phase 'authenticate'
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] passwd-hook: requesting credentials...
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] passwd-hook: got credentials from NetworkManager-l2tp
Apr 11 18:51:22 shawn-world pppd[6886]: PAP authentication succeeded
Apr 11 18:51:22 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 8 / phase 'network'
Apr 11 18:51:22 shawn-world systemd[1]: Reloading Laptop Mode Tools.
Apr 11 18:51:22 shawn-world systemd[1]: Started Laptop Mode Tools - Battery Polling Service.
Apr 11 18:51:22 shawn-world laptop-mode: Laptop mode
Apr 11 18:51:22 shawn-world laptop_mode[6898]: Laptop mode
Apr 11 18:51:22 shawn-world laptop-mode: enabled, not active [unchanged]
Apr 11 18:51:22 shawn-world laptop_mode[6898]: enabled, not active [unchanged]
Apr 11 18:51:22 shawn-world systemd[1]: Reloaded Laptop Mode Tools.
Apr 11 18:51:25 shawn-world charon: 13[KNL] 192.168.210.147 appeared on ppp0
Apr 11 18:51:25 shawn-world pppd[6886]: local  IP address 192.168.210.147
Apr 11 18:51:25 shawn-world pppd[6886]: remote IP address 137.189.99.189
Apr 11 18:51:25 shawn-world pppd[6886]: primary   DNS address 137.189.96.200
Apr 11 18:51:25 shawn-world pppd[6886]: secondary DNS address 137.189.96.50
Apr 11 18:51:25 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 9 / phase 'running'
Apr 11 18:51:25 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] ip-up: event
Apr 11 18:51:25 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] ip-up: sending Ip4Config to NetworkManager-l2tp...
Apr 11 18:51:25 shawn-world charon: 14[KNL] 192.168.210.147 disappeared from ppp0
Apr 11 18:51:25 shawn-world charon: 15[KNL] 192.168.210.147 appeared on ppp0
Apr 11 18:51:25 shawn-world charon: 04[KNL] interface ppp0 activated
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7669] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",0]: VPN connection: (IP4 Config Get) reply received from old-style plugin
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7680] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data: VPN Gateway: 137.189.99.189
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7685] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data: Tunnel Device: "ppp0"
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7690] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data: IPv4 configuration:
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7693] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Internal Address: 192.168.210.147
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7696] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Internal Prefix: 32
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7696] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Internal Point-to-Point Address: 137.189.99.189
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7696] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Maximum Segment Size (MSS): 0
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7697] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Forbid Default Route: no
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7697] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Internal DNS: 137.189.96.200
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7697] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   Internal DNS: 137.189.96.50
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7697] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data:   DNS Domain: '(none)'
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7697] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: Data: No IPv6 configuration
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7699] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: VPN plugin: state changed: started (4)
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.7711] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: VPN connection: (IP Config Get) complete
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.8116] manager: NetworkManager state is now CONNECTED_LOCAL
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.8117] manager: NetworkManager state is now CONNECTED_GLOBAL
Apr 11 18:51:25 shawn-world NetworkManager[1012]: <info>  [1491907885.8121] dns-mgr: Writing DNS information to /sbin/resolvconf
Apr 11 18:51:25 shawn-world whoopsie[983]: [18:51:25] offline
Apr 11 18:51:25 shawn-world dnsmasq[2092]: setting upstream servers from DBus
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.96.200#53(via ppp0)
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.96.50#53(via ppp0)
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.96.200#53 for domain 147.210.168.192.in-addr.arpa
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.96.50#53 for domain 147.210.168.192.in-addr.arpa
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.192.3#53(via wlan0)
Apr 11 18:51:25 shawn-world dnsmasq[2092]: using nameserver 137.189.196.3#53(via wlan0)
Apr 11 18:51:25 shawn-world dbus[919]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Apr 11 18:51:25 shawn-world whoopsie[983]: [18:51:25] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/6
Apr 11 18:51:25 shawn-world whoopsie[983]: [18:51:25] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/6
Apr 11 18:51:25 shawn-world whoopsie[983]: [18:51:25] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/6
Apr 11 18:51:25 shawn-world whoopsie[983]: [18:51:25] online
Apr 11 18:51:25 shawn-world systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 11 18:51:25 shawn-world dbus[919]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 11 18:51:25 shawn-world systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 11 18:51:25 shawn-world nm-dispatcher: req:1 'vpn-up' [ppp0]: new request (1 scripts)
Apr 11 18:51:25 shawn-world nm-dispatcher: req:1 'vpn-up' [ppp0]: start running ordered scripts...
Apr 11 18:51:27 shawn-world org.gnome.OnlineAccounts[3015]: (goa-daemon:3354): GLib-GIO-CRITICAL **: g_simple_async_result_take_error: assertion 'error != NULL' failed
Apr 11 18:51:35 shawn-world systemd[1]: Reloading OpenBSD Secure Shell server.
Apr 11 18:51:35 shawn-world systemd[1]: Reloaded OpenBSD Secure Shell server.
Apr 11 18:51:46 shawn-world whoopsie[983]: [18:51:46] Cannot reach: https://daisy.ubuntu.com
Apr 11 18:51:46 shawn-world whoopsie[983]: [18:51:46] offline
Apr 11 18:51:48 shawn-world google-chrome.desktop[5090]: [5090:5209:0411/185148.371742:ERROR:connection_factory_impl.cc(386)] Failed to connect to MCS endpoint with error -137
Apr 11 18:51:49 shawn-world charon: 07[IKE] sending keep alive to 137.189.99.189[4500]
Apr 11 18:51:55 shawn-world ntpdate[7072]: name server cannot be used: Temporary failure in name resolution (-3)
Apr 11 18:52:09 shawn-world charon: 09[IKE] sending keep alive to 137.189.99.189[4500]
Apr 11 18:52:27 shawn-world NetworkManager[1012]: xl2tpd[6885]: Maximum retries exceeded for tunnel 45495.  Closing.
Apr 11 18:52:27 shawn-world NetworkManager[1012]: xl2tpd[6885]: Terminating pppd: sending TERM signal to pid 6886
Apr 11 18:52:27 shawn-world NetworkManager[1012]: xl2tpd[6885]: Connection 900 closed to 137.189.99.189, port 1701 (Timeout)
Apr 11 18:52:27 shawn-world pppd[6886]: Terminating on signal 15
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 10 / phase 'terminate'
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 8 / phase 'network'
Apr 11 18:52:27 shawn-world pppd[6886]: Connect time 1.1 minutes.
Apr 11 18:52:27 shawn-world pppd[6886]: Sent 3522738740 bytes, received 0 bytes.
Apr 11 18:52:27 shawn-world charon: 13[KNL] interface ppp0 deactivated
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <error> [1491907947.7572] platform-linux: do-add-ip4-route[9: 0.0.0.0/0 50]: failure 100 (Network is down)
Apr 11 18:52:27 shawn-world charon: 14[KNL] 192.168.210.147 disappeared from ppp0
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <warn>  [1491907947.7573] default-route: failed to add default route 0.0.0.0/0 via 0.0.0.0 dev 9 metric 50 mss 0 src vpn with effective metric 50
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 5 / phase 'establish'
Apr 11 18:52:27 shawn-world pppd[6886]: Overriding mtu 1500 to 1400
Apr 11 18:52:27 shawn-world pppd[6886]: Overriding mru 1500 to mtu value 1400
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 11 / phase 'disconnect'
Apr 11 18:52:27 shawn-world pppd[6886]: Connection terminated.
Apr 11 18:52:27 shawn-world charon: 11[KNL] interface ppp0 deleted
Apr 11 18:52:27 shawn-world NetworkManager[1012]: nm-l2tp[6810] <info>  Terminated xl2tpd daemon with PID 6885.
Apr 11 18:52:27 shawn-world NetworkManager[1012]: xl2tpd[6885]: death_handler: Fatal signal 15 received
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <info>  [1491907947.7617] vpn-connection[0x228a800,e49c1c36-84a6-46e8-8b9a-709ff34f7fbf,"IE",9:(ppp0)]: VPN plugin: state changed: stopping (5)
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <error> [1491907947.7627] platform-linux: do-change-link[9]: failure changing link: failure 19 (No such device)
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <warn>  [1491907947.7628] device (ppp0): failed to disable userspace IPv6LL address handling
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <error> [1491907947.7635] platform-linux: do-add-ip4-route[9: 0.0.0.0/0 50]: failure 19 (No such device)
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <warn>  [1491907947.7641] default-route: failed to add default route 0.0.0.0/0 via 0.0.0.0 dev 9 metric 50 mss 0 src vpn with effective metric 50
Apr 11 18:52:27 shawn-world NetworkManager[1012]: <info>  [1491907947.7650] devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Apr 11 18:52:27 shawn-world whoopsie[983]: [18:52:27] online
Apr 11 18:52:27 shawn-world NetworkManager[1012]: Stopping strongSwan IPsec...
Apr 11 18:52:27 shawn-world google-chrome.desktop[5090]: [5090:5209:0411/185227.767028:ERROR:connection_factory_impl.cc(386)] Failed to connect to MCS endpoint with error -21
Apr 11 18:52:27 shawn-world gnome-session[3184]: Gjs-Message: JS LOG: Removing a network device that was not added
Apr 11 18:52:27 shawn-world google-chrome.desktop[5090]: [5090:5455:0411/185227.770795:ERROR:get_updates_processor.cc(244)] PostClientToServerMessage() failed during GetUpdates
Apr 11 18:52:27 shawn-world charon: 00[DMN] signal of type SIGINT received. Shutting down
Apr 11 18:52:27 shawn-world charon: 00[IKE] closing CHILD_SA nm-ipsec-l2tp-6810{1} with SPIs c28c60c1_i (525 bytes) 30f103c4_o (7627844503 bytes) and TS 10.6.5.202/32[udp/l2f] === 137.189.99.189/32[udp/l2f]
Apr 11 18:52:27 shawn-world charon: 00[IKE] sending DELETE for ESP CHILD_SA with SPI c28c60c1
Apr 11 18:52:27 shawn-world charon: 00[ENC] generating INFORMATIONAL_V1 request 1371578295 [ HASH D ]
Apr 11 18:52:27 shawn-world charon: 00[NET] sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (76 bytes)
Apr 11 18:52:27 shawn-world charon: 00[IKE] deleting IKE_SA nm-ipsec-l2tp-6810[1] between 10.6.5.202[10.6.5.202]...137.189.99.189[137.189.99.189]
Apr 11 18:52:27 shawn-world charon: 00[IKE] sending DELETE for IKE_SA nm-ipsec-l2tp-6810[1]
Apr 11 18:52:27 shawn-world charon: 00[ENC] generating INFORMATIONAL_V1 request 1556435212 [ HASH D ]
Apr 11 18:52:27 shawn-world charon: 00[NET] sending packet: from 10.6.5.202[4500] to 137.189.99.189[4500] (84 bytes)
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] phasechange: status 1 / phase 'dead'
Apr 11 18:52:27 shawn-world pppd[6886]: nm-l2tp[6810] <info>  [helper-6886] exit: cleaning up
Apr 11 18:52:27 shawn-world pppd[6886]: Exit.
Apr 11 18:52:27 shawn-world NetworkManager[1012]: ** Message: ipsec shut down

Configured VPN not showing up under "VPN connections"

First off, thank you for maintaining this plugin. I have been tearing my hair out for the past three days on how to do L2TP/IPSEC on Ubuntu 16.04.

Running 16.04, I was able to configure an L2TP/IPSEC VPN. However, while I can see it under connections, it doesn't show up under enablable VPN connections. I don't if this has to do with previous reported issues, but from what it sounds network-manager-l2tp flat out doesn't work under 16.04.

xfrm policy doesn't match xl2tpd traffic due to hardcoded source port

Running on ubuntu 16.04 with strongswan.

The ipsec configuration generated by nm-l2tp includes the following directives:

  leftprotoport=udp/l2tp
  rightprotoport=udp/l2tp

(source)

The resulting ip xfrm policy is as follows:

src VPN_SERVER/32 dst CLIENT/32 proto udp sport 1701 dport 1701 
        dir in priority 2816 
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport
src CLIENT/32 dst VPN_SERVER/32 proto udp sport 1701 dport 1701 
        dir out priority 2816 
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport

As you can see, the policy is only matching traffic with both the source and destination port of 1701. When xl2tpd attempts to run, it utilizes whatever dynamic source port might be available. As such, the traffic does not match the defined xfrm policy, and will not be encrypted.

If a VPN server happens to allow non-IPSec L2TP traffic, this problem could result in L2TP being established without being secured.

Recommends instead of Requires for strongswan and libreswan

NetworkManager-l2tp is compatible with either libreswan or strongswan.

With the prebuilt binary packages for the dependencies on strongswan and libreswan , use Recommends instead of Requires, so users can switch between strongswan or libreswan.

Fedora and derivatives have been shipping both strongswan and libreswan for a number of years.

Debian and Ubuntu have been shipping with strongswan for a number of years and in the last few months started shipping libreswan.

ubuntu - can not connect to the work vpn (ms peap, IPsec sha256 encryption)

Hello,
I've trying to connect from the home ubuntu pc to the work network but without success.
(but I can connect from the win10 pc with automatic configurations, where I can see that IPsec uses sha256 encryption).

please help me to diagnose issue.
here is my exported config file: http://pastebin.com/6jjtvyC3
and here the log: http://pastebin.com/u8PUHPab

Firstly, I can't see SHA encryption using in the log.
Secondary, log (line 113) prints "connection established successfully"
but on the next line "Could not establish IPsec tunnel" :(
Third (and most important) "GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed"

Please, hint me and guide me, what I can try to do to connect to the remote network?

Couldn't establish IPsec tunnel

Hello!
I'm trying to establish l2tp connection and have a problem. Service in debug mode shows logs which you can read by link. I'm sorry if using link is deprecated but inserting logs "as is" causes formatting problems.
Could anybody helps with this problem? What additional information I should provide?
OS: Ubuntu 16.04 LTS
NetworkManager: 1.2.0
Thanks a lot!

make on Ubuntu 16.04 fails

Hi,

the make command gives me following output with Ubuntu 16.04:

$ make
make all-recursive
make[1]: Entering directory '/home/andreas/network-manager-l2tp'
Making all in shared
make[2]: Entering directory '/home/andreas/network-manager-l2tp/shared'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/andreas/network-manager-l2tp/shared'
Making all in properties
make[2]: Entering directory '/home/andreas/network-manager-l2tp/properties'
Makefile:618: ../shared/nm-utils/.deps/libnm_vpn_plugin_l2tp_la-nm-vpn-plugin-utils.Plo: No such file or directory
make[2]: *** No rule to make target '../shared/nm-utils/.deps/libnm_vpn_plugin_l2tp_la-nm-vpn-plugin-utils.Plo'. Stop.
make[2]: Leaving directory '/home/andreas/network-manager-l2tp/properties'
Makefile:565: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/andreas/network-manager-l2tp'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2

Please let me know if I could provide further information.

Thanks for any help.

VPN activation getting error Connection Failed: Activation of network connection failed

I've got the nm plugin built now and configured my VPN (which has been tested from windows and iPhone). I've grabbed the debug from the service (included below cleaned up) but there's nothing that stands out to me.

** Message: nm-l2tp-service (version 1.0.2) starting...
connection
id : "VPN" (s)
uuid : "fe038c9e-0403-48a8-bb94-7f79c883aa7e" (s)
interface-name : NULL (sd)
type : "vpn" (s)
permissions : user:msroest: (s)
autoconnect : FALSE (s)
timestamp : 0 (sd)
read-only : FALSE (sd)
zone : NULL (sd)
master : NULL (sd)
slave-type : NULL (sd)
secondaries : (sd)
gateway-ping-timeout : 0 (sd)

vpn
service-type : "org.freedesktop.NetworkManager.l2tp" (s)
user-name : "msroest" (s)
data : gateway=my.vpn.server,ipsec-psk=presharedkeygoeshere,user=username,password-flags=3,ipsec-enabled=yes (s)
secrets : password=password123 (s)

ipv6
method : "auto" (s)
dhcp-hostname : NULL (sd)
dns : (s)
dns-search : (sd)
addresses : (s)
routes : (s)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)
ip6-privacy : -1 (sd)

ipv4
method : "auto" (s)
dns : (s)
dns-search : (sd)
addresses : (s)
address-labels : (sd)
routes : (s)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
dhcp-client-id : NULL (sd)
dhcp-send-hostname : TRUE (sd)
dhcp-hostname : NULL (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)

** Message: ipsec enable flag: yes

"plugin NeedSecrets request #1 failed" with strongSwan

This is possibly related to #15, though since it's on Ubuntu and not Gentoo, things may be quite different. Attempting to connect to a VPN only prompts for a password on the first connection attempt after a reboot. This attempt fails to connect and any subsequent attempts do not prompt for a password. Attached are logs taken from sudo journalctl -b.

nm-l2tp-failed-connection.txt

Fedora known issues

Prerequisite L2TP kernel module issue

Due to Fedora Bugzilla bug #1284228, before installing xl2tpd or NetworkManager-l2tp, it is recommended to explicitly install kernel-modules-extra :

sudo dnf install kernel-modules-extra 

otherwise kernel-debug-modules-extra will get installed instead.

Installing NetworkManager-l2tp

The following installation instructions are for Fedora 23 and later.

Issue the following to install NetworkManager-l2tp and its GNOME components :

dnf install NetworkManager-l2tp-gnome

For KDE desktops environments:

dnf install NetworkManager-l2tp

as NetworkManager-l2tp-gnome is not required for KDE.

autoreconf: not found

➜  network-manager-l2tp git:(master) ./autogen.sh    
./autogen.sh: 17: ./autogen.sh: autoreconf: not found

strongswan charon: 04[IKE] received DELETE for IKE_SA

Greetings,

I have followed the instructions found in the wiki of this project, installed to the letter. Although there is no suggestion as to how the conf files should be defined, I am assuming the defaults take precedence.

After the install, I get the generic message popup from Network Manager:

"The VPN Connection 'MyConnection L2TP' failed because the VPN service failed to start"

Went to syslogs and see the following:

nm-l2tp-service[7864]: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed

In the context of the following messages:

Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: generating QUICK_MODE request 3996919311 [ HASH ]
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: connection 'nm-ipsec-l2tp-7864' established successfully
Jan 14 19:29:33 dephantum-dbox charon: 15[NET] sending packet: from [my.ip.add.ress][4500] to [vpn.ip.add.ress][4500] (60 bytes)
Jan 14 19:29:33 dephantum-dbox charon: 04[NET] received packet: from [vpn.ip.add.ress][4500] to [my.ip.add.ress][4500] (84 bytes)
Jan 14 19:29:33 dephantum-dbox charon: 04[ENC] parsed INFORMATIONAL_V1 request 2914406121 [ HASH D ]
Jan 14 19:29:33 dephantum-dbox charon: 04[IKE] received DELETE for IKE_SA nm-ipsec-l2tp-7864[1]
Jan 14 19:29:33 dephantum-dbox charon: 04[IKE] deleting IKE_SA nm-ipsec-l2tp-7864[1] between [my.ip.add.ress][[my.ip.add.ress]]...[vpn.ip.add.ress][[vpn.ip.add.ress]]
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: nm-l2tp[7864] <warn>  Could not establish IPsec tunnel.
Jan 14 19:29:33 dephantum-dbox charon: 08[CFG] rereading secrets
Jan 14 19:29:33 dephantum-dbox charon: 08[CFG] loading secrets from '/etc/ipsec.secrets'
Jan 14 19:29:33 dephantum-dbox charon: 08[CFG]   loaded IKE secret for [vpn.ip.add.ress]
Jan 14 19:29:33 dephantum-dbox nm-l2tp-service[7864]: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: <info>  [1484443773.9455] vpn-connection[0x5561eb4fe7b0,b96770f8-b9eb-4ee1-9810-46cee7bbdb1d,"MyConnection L2TP",0]: VPN plugin: state changed: stopped (6)
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: <info>  [1484443773.9467] vpn-connection[0x5561eb4fe7b0,b96770f8-b9eb-4ee1-9810-46cee7bbdb1d,"MyConnection L2TP",0]: VPN plugin: state change reason: unknown (0)
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: <info>  [1484443773.9475] vpn-connection[0x5561eb4fe7b0,b96770f8-b9eb-4ee1-9810-46cee7bbdb1d,"MyConnection L2TP",0]: VPN service disappeared
Jan 14 19:29:33 dephantum-dbox dbus-daemon[2200]: Activating service name='org.freedesktop.Notifications'
Jan 14 19:29:33 dephantum-dbox NetworkManager[1015]: <warn>  [1484443773.9481] vpn-connection[0x5561eb4fe7b0,b96770f8-b9eb-4ee1-9810-46cee7bbdb1d,"MyConnection L2TP",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'
Jan 14 19:29:33 dephantum-dbox dbus-daemon[2200]: Successfully activated service 'org.freedesktop.Notifications'

It appears to be something invalid with ipsec.secrets, I have only one line there:

vpn.ip.add.ress : PSK "top-secret"

where vpn.ip.add.ress is the IP address of the VPN server.

There obviously is an assertion thrown in handling the secrets and I would think this is a bug.
Any suggestions, or guidance on this matter?
Much Appreciated.

Cannot establish IPSec connection

Problem

I cannot connect via network-manager-l2tp to l2tp/ipsec VPN. I dont know how to identify the cause of problem, so i just attach my config all logs and hope you can help me with that.

Configuration

rbikkinin@rbikkinin:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.1 LTS
Release:	16.04
Codename:	xenial
rbikkinin@rbikkinin:~$ uname -a
Linux rbikkinin 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

l2tp connection settings

image

image

Debug output

I ran such commands in parallel:

$ tail -f -n 0 /var/log/syslog

Dec 14 09:59:45 rbikkinin NetworkManager[876]: <info>  [1481698785.8120] audit: op="connection-activate" uuid="67f5190e-7399-4a25-b4cd-8e429aa2413a" name="l2tp" pid=6208 uid=1000 result="success"
Dec 14 09:59:45 rbikkinin NetworkManager[876]: <info>  [1481698785.8148] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: Started the VPN service, PID 15496
Dec 14 09:59:45 rbikkinin NetworkManager[876]: <info>  [1481698785.8212] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: Saw the service appear; activating connection
Dec 14 09:59:45 rbikkinin NetworkManager[876]: <info>  [1481698785.8790] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: VPN connection: (ConnectInteractive) reply received
Dec 14 09:59:45 rbikkinin NetworkManager[876]: nm-l2tp[15496] <info>  ipsec enable flag: yes
Dec 14 09:59:45 rbikkinin NetworkManager[876]: ** Message: Check port 1701
Dec 14 09:59:45 rbikkinin NetworkManager[876]: nm-l2tp[15496] <info>  starting ipsec
Dec 14 09:59:45 rbikkinin NetworkManager[876]: Stopping strongSwan IPsec...
Dec 14 09:59:45 rbikkinin charon: 00[DMN] signal of type SIGINT received. Shutting down
Dec 14 09:59:47 rbikkinin NetworkManager[876]: Starting strongSwan 5.3.5 IPsec [starter]...
Dec 14 09:59:47 rbikkinin NetworkManager[876]: Loading config setup
Dec 14 09:59:47 rbikkinin NetworkManager[876]: Loading conn 'nm-ipsec-l2tp-15496'
Dec 14 09:59:47 rbikkinin NetworkManager[876]: found netkey IPsec stack
Dec 14 09:59:47 rbikkinin charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-53-generic, x86_64)
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading crls from '/etc/ipsec.d/crls'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] loading secrets from '/etc/ipsec.secrets'
Dec 14 09:59:48 rbikkinin charon: 00[CFG] line 1: malformed secret: missing second delimiter
Dec 14 09:59:48 rbikkinin charon: 00[LIB] loaded plugins: charon test-vectors aes rc2 sha1 sha2 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl fips-prf gmp agent xcbc hmac gcm attr kernel-netlink resolve socket-default connmark stroke updown
Dec 14 09:59:48 rbikkinin charon: 00[LIB] dropped capabilities, running as uid 0, gid 0
Dec 14 09:59:48 rbikkinin charon: 00[JOB] spawning 16 worker threads
Dec 14 09:59:48 rbikkinin charon: 05[CFG] received stroke: add connection 'nm-ipsec-l2tp-15496'
Dec 14 09:59:48 rbikkinin charon: 05[CFG] added configuration 'nm-ipsec-l2tp-15496'
Dec 14 09:59:49 rbikkinin charon: 07[CFG] rereading secrets
Dec 14 09:59:49 rbikkinin charon: 07[CFG] loading secrets from '/etc/ipsec.secrets'
Dec 14 09:59:49 rbikkinin charon: 07[CFG] line 1: malformed secret: missing second delimiter
Dec 14 09:59:49 rbikkinin charon: 09[CFG] received stroke: initiate 'nm-ipsec-l2tp-15496'
Dec 14 09:59:49 rbikkinin charon: 11[IKE] initiating Main Mode IKE_SA nm-ipsec-l2tp-15496[1] to 192.168.0.247
Dec 14 09:59:49 rbikkinin charon: 11[ENC] generating ID_PROT request 0 [ SA V V V V ]
Dec 14 09:59:49 rbikkinin charon: 11[NET] sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (280 bytes)
Dec 14 09:59:49 rbikkinin charon: 12[NET] received packet: from 192.168.0.247[500] to 192.168.0.50[500] (208 bytes)
Dec 14 09:59:49 rbikkinin charon: 12[ENC] parsed ID_PROT response 0 [ SA V V V V V V ]
Dec 14 09:59:49 rbikkinin charon: 12[IKE] received MS NT5 ISAKMPOAKLEY vendor ID
Dec 14 09:59:49 rbikkinin charon: 12[IKE] received NAT-T (RFC 3947) vendor ID
Dec 14 09:59:49 rbikkinin charon: 12[IKE] received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Dec 14 09:59:49 rbikkinin charon: 12[IKE] received FRAGMENTATION vendor ID
Dec 14 09:59:49 rbikkinin charon: 12[ENC] received unknown vendor ID: fb:1d:e3:cd:f3:41:b7:ea:16:b7:e5:be:08:55:f1:20
Dec 14 09:59:49 rbikkinin charon: 12[ENC] received unknown vendor ID: e3:a5:96:6a:76:37:9f:e7:07:22:82:31:e5:ce:86:52
Dec 14 09:59:49 rbikkinin charon: 12[ENC] generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Dec 14 09:59:49 rbikkinin charon: 12[NET] sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (244 bytes)
Dec 14 09:59:49 rbikkinin charon: 13[NET] received packet: from 192.168.0.247[500] to 192.168.0.50[500] (260 bytes)
Dec 14 09:59:49 rbikkinin charon: 13[ENC] parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
Dec 14 09:59:49 rbikkinin charon: 13[ENC] generating INFORMATIONAL_V1 request 216276590 [ N(INVAL_KE) ]
Dec 14 09:59:49 rbikkinin charon: 13[NET] sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (56 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: initiating Main Mode IKE_SA nm-ipsec-l2tp-15496[1] to 192.168.0.247
Dec 14 09:59:49 rbikkinin NetworkManager[876]: generating ID_PROT request 0 [ SA V V V V ]
Dec 14 09:59:49 rbikkinin NetworkManager[876]: sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (280 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received packet: from 192.168.0.247[500] to 192.168.0.50[500] (208 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: parsed ID_PROT response 0 [ SA V V V V V V ]
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received MS NT5 ISAKMPOAKLEY vendor ID
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received NAT-T (RFC 3947) vendor ID
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received FRAGMENTATION vendor ID
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received unknown vendor ID: fb:1d:e3:cd:f3:41:b7:ea:16:b7:e5:be:08:55:f1:20
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received unknown vendor ID: e3:a5:96:6a:76:37:9f:e7:07:22:82:31:e5:ce:86:52
Dec 14 09:59:49 rbikkinin NetworkManager[876]: generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Dec 14 09:59:49 rbikkinin NetworkManager[876]: sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (244 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: received packet: from 192.168.0.247[500] to 192.168.0.50[500] (260 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
Dec 14 09:59:49 rbikkinin NetworkManager[876]: generating INFORMATIONAL_V1 request 216276590 [ N(INVAL_KE) ]
Dec 14 09:59:49 rbikkinin NetworkManager[876]: sending packet: from 192.168.0.50[500] to 192.168.0.247[500] (56 bytes)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: establishing connection 'nm-ipsec-l2tp-15496' failed
Dec 14 09:59:49 rbikkinin NetworkManager[876]: nm-l2tp[15496] <warn>  Could not establish IPsec tunnel.
Dec 14 09:59:49 rbikkinin charon: 06[CFG] rereading secrets
Dec 14 09:59:49 rbikkinin charon: 06[CFG] loading secrets from '/etc/ipsec.secrets'
Dec 14 09:59:49 rbikkinin NetworkManager[876]: (nm-l2tp-service:15496): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
Dec 14 09:59:49 rbikkinin NetworkManager[876]: <info>  [1481698789.0333] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: VPN plugin: state changed: stopped (6)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: <info>  [1481698789.0339] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: VPN plugin: state change reason: unknown (0)
Dec 14 09:59:49 rbikkinin NetworkManager[876]: <info>  [1481698789.0348] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: VPN service disappeared
Dec 14 09:59:49 rbikkinin NetworkManager[876]: <warn>  [1481698789.0354] vpn-connection[0x13d17d0,67f5190e-7399-4a25-b4cd-8e429aa2413a,"l2tp",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'
$ sudo tcpdump host 192.168.0.247
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
09:59:49.010822 IP 192.168.0.50.isakmp > 192.168.0.247.isakmp: isakmp: phase 1 I ident
09:59:49.012357 ARP, Request who-has 192.168.0.50 tell 192.168.0.247, length 46
09:59:49.012373 ARP, Reply 192.168.0.50 is-at bc:5f:f4:df:0f:2e (oui Unknown), length 28
09:59:49.012923 IP 192.168.0.247.isakmp > 192.168.0.50.isakmp: isakmp: phase 1 R ident
09:59:49.014199 IP 192.168.0.50.isakmp > 192.168.0.247.isakmp: isakmp: phase 1 I ident
09:59:49.023652 IP 192.168.0.247.isakmp > 192.168.0.50.isakmp: isakmp: phase 1 R ident
09:59:49.024327 IP 192.168.0.50.isakmp > 192.168.0.247.isakmp: isakmp: phase 2/others I inf
09:59:49.415794 ARP, Request who-has 192.168.0.247 tell 192.168.0.212, length 46
09:59:49.416964 ARP, Request who-has 192.168.0.212 tell 192.168.0.247, length 46
09:59:52.433136 ARP, Request who-has 192.168.0.247 tell 192.168.0.176, length 46
09:59:52.433645 ARP, Request who-has 192.168.0.176 tell 192.168.0.247, length 46
^C
19 packets captured
19 packets received by filter
0 packets dropped by kernel

add dependencies to readme

I would suggest adding required libraries for common platforms to the Readme.
Otherwise a tedious ./autogen.sh roundtrip is required to look at all the errors and figure out what to install.

For ubuntu 16.10 this is sudo apt install libglib2.0-dev libtool intltool ppp-dev build-essential libgtk-3-dev libnma-dev libsecret-1-dev libnm-gtk-dev libnm-glib-vpn-dev

Building on Debian Jessie

Hi,
Trying to get your plugin to build on debian Jessie and running into all kinds of dependency failures. Any tips or a suggestion of a version that will work?

Thanks

Cannot connect to L2TP VPN via IPsec tunnel on on Ubuntu 16.10 without stopping the system xl2tpd service first

I installed the plugin from the PPA

add-apt-repository ppa:nm-l2tp/network-manager-l2tp                    
apt update && apt install network-manager-l2tp-gnome

configured it with the gateway/username/password for my VPN, enabled the IPsec tunnel to L2TP host and entered the pre-shared key. Attempts to connect fail with the following error visible in journalctl -b:

Kov 21 16:40:55 platonas NetworkManager[2326]: xl2tpd[17104]: Connecting to host 195.67.6.50, port 1701
Kov 21 16:41:00 platonas NetworkManager[2326]: xl2tpd[17104]: Maximum retries exceeded for tunnel 64640.  Closing.

I've tried to build my own xl2tpd as suggested on the wiki, except I couldn't remove the system xl2tpd package so I had to use dpkg-divert to replace its binaries with my own built versions:

apt install libpcap0.8-dev
apt remove xl2tpd
  # wants to uninstall network-manager-l2tp network-manager-l2tp-gnome, so canceled
wget https://github.com/xelerance/xl2tpd/archive/v1.3.6/xl2tpd-1.3.6.tar.gz
tar xvzf xl2tpd-1.3.6.tar.gz
cd xl2tpd-1.3.6 && make && make -n install
   # wants to install three files into /usr/local, if I ignore all the directories and documentation

service xl2tpd stop
dpkg-divert --divert /usr/sbin/xl2tpd.ubuntu --rename --add /usr/sbin/xl2tpd
dpkg-divert --divert /usr/sbin/xl2tpd-control.ubuntu --rename --add /usr/sbin/xl2tpd-control
dpkg-divert --divert /usr/bin/pfc.ubuntu --rename --add /usr/bin/pfc
install -m 0755 xl2tpd /usr/sbin/xl2tpd
install -m 0755 xl2tpd-control /usr/sbin/xl2tpd-control
install -m 0755 pfc /usr/bin/pfc
service xl2tpd start

but I still get the same "Maximum retries exceeded" error.

Other random flailing like disabling my ufw firewall or rebooting did not change anything about the failure.

I've tried Wireshark over my wifi interface, and I noticed a strange thing: there are ISAKMP messages for establishing the IPsec tunnel, but then the L2TP SCCRQ messages appear to be going to the VPN gateway over UDP directly, not over the IPsec tunnel. I'm not a networking expert, but I don't think I would be seeing those if they were tunneled.

Looking more closely over journalctl I see nothing suspicious, except maybe

Kov 21 16:40:51 platonas nm-l2tp-service[16985]: Check port 1701
Kov 21 16:40:51 platonas nm-l2tp-service[16985]: Can't bind to port 1701
Kov 21 16:40:51 platonas NetworkManager[2326]: nm-l2tp[16985] <warn>  Port 1701 is busy, use ephemeral.

(netstat -tunlvp|grep 1701 tells me it's my local xl2tpd listening on port 1701.)

Aside: a coworker did successfully connect to the VPN server using network-manager-l2tp with Ubuntu 16.04, after following the instructions at http://blog.z-proj.com/enabling-l2tp-over-ipsec-on-ubuntu-16-04/, and he tells me that I've the right settings specified in the Network Manager GUI.

Preemptive update: I've strongswan 5.3.5-1ubuntu4.1 from yakkety-updates.

pppd not recognizing option 'lock'

I recently updated to networkmanager-l2tp 1.0.0 on my Archlinux and installed libreswan, but since then I cannot connect to my VPN of my school anymore. My school's VPN doesn't use ipsec.

Package versoins:
networkmanager-l2tp 1.0.0-1
libreswan 3.17-1
ppp 2.4.7-2

Running nmcli c up myvpn gives:
Error: failed activating connection: connection trial timeout. after waiting for about 30s.

This is NetworkManager's journal:
https://gist.github.com/yejingchen/cb36b56250674b0de4c3f4e2a127ac00

I think that the "unrecognized option 'lock' " might be the key,

L2TP connection doesn't work and is being removed automatically after ~1 minute

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 setting password-flags=0 and adding:

[vpn-secrets]
password=MyPassword

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

screenshot from 2016-08-10 17-02-59

ipsec.secrets identity and left|rightid confusion

At issue is the "Gateway ID" field under the "IPsec Settings..." dialog for the VPN. If the VPN server is configured with leftid set to a FQDN, e.g., vpn.example.com, within its ipsec.conf and is using IKEv1...

  • If the Gateway ID field on the client is set to the same FQDN:

    • When bringing up the VPN connection, /etc/ipsec.secrets is replaced with the template of %any @vpn.example.com : PSK "The_VPN_PSK"

    • Unfortunately, strongSwan as documented here will not use the FQDN for identification:

      When using IKEv1 an additional complexity arises in the case of authentication by preshared secret: the responder will need to look up the secret before the Peer's ID payload has been decoded, so the ID used will be the IP address.

    • Therefore, the following error is logged in syslog by strongSwan:

      Jan 01 00:00:00 localhost charon: 09[ENC] generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
      Jan 01 00:00:00 localhost charon: 09[NET] sending packet: from 192.162.1.2[500] to 93.184.216.34[500] (372 bytes)
      Jan 01 00:00:00 localhost charon: 10[NET] received packet: from 93.184.216.34[500] to 192.162.1.2[500] (372 bytes)
      Jan 01 00:00:00 localhost charon: 10[ENC] parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
      Jan 01 00:00:00 localhost charon: 10[ENC] generating INFORMATIONAL_V1 request 4112651576 [ N(INVAL_KE) ]
      Jan 01 00:00:00 localhost charon: 10[NET] sending packet: from 192.162.1.2[500] to 93.184.216.34[500] (56 bytes)

    • strongSwan is not using the FQDN as also indicated at https://wiki.strongswan.org/issues/981:

      The only code path that produces no additional log message seems to be if no pre-shared secret is found.

  • Alternatively, if the Gateway ID field is set to the global IP address of the server, or if the Gateway ID field unset, in which case the IP address is used instead, the following occurs:

    • When bringing up the VPN connection, /etc/ipsec.secrets is replaced with the template of %any %any : PSK "The_VPN_PSK"
    • For some reason, strongSwan does not accept this as a true "any" and it does not match the server's reported identity
    • The following error is logged in syslog by strongSwan:

      Jan 01 00:00:00 localhost charon: 14[ENC] parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
      Jan 01 00:00:00 localhost charon: 14[IKE] local host is behind NAT, sending keep alives
      Jan 01 00:00:00 localhost charon: 14[IKE] remote host is behind NAT
      Jan 01 00:00:00 localhost charon: 14[ENC] generating ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]
      Jan 01 00:00:00 localhost charon: 14[NET] sending packet: from 192.162.1.2[4500] to 93.184.216.34[4500] (108 bytes)
      Jan 01 00:00:00 localhost charon: 11[NET] received packet: from 93.184.216.34[4500] to 192.162.1.2[4500] (92 bytes)
      Jan 01 00:00:00 localhost charon: 11[ENC] parsed ID_PROT response 0 [ ID HASH ]
      Jan 01 00:00:00 localhost charon: 11[IKE] IDir 'vpn.example.com' does not match to '93.184.216.34'
      Jan 01 00:00:00 localhost charon: 11[IKE] deleting IKE_SA nm-ipsec-l2tp-2615[1] between 192.162.1.2[192.162.1.2]...93.184.216.34[%any]

In both cases, the connection fails since the strongSwan client does not recognize the server's reported identity of the FQDN. This can be fixed by commenting out lines 994 to 1016 in order to make the overwritten ipsec.secrets file instead be the template of : PSK "The_VPN_PSK". In this case, strongSwan does use the global PSK for the server and the connection is established.

To fix this, either this client could:

  1. detect IKEv1 being used
  2. if "Gateway ID" is used for other purposes, create another field separate from "Gateway ID" to be used for the server identity in ipsec.secrets
  3. ignore "Gateway ID" entirely and always use the : PSK "The_VPN_PSK" template if "Gateway ID" is a FQDN
  4. allow the user to specify that no identity should be used in ipsec.secrets, resulting in the correct template of : PSK "The_VPN_PSK"

Problem with network manager

I have this nm-plugin on Arch, and the log file says this:

abr 25 23:16:12 testhost NetworkManager[432]: 002 listening for IKE messages
abr 25 23:16:12 testhost NetworkManager[432]: 002 forgetting secrets
abr 25 23:16:12 testhost NetworkManager[432]: 002 loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:12 testhost NetworkManager[432]: 003 WARNING: using a weak secret (PSK)
abr 25 23:16:12 testhost pluto[20768]: | refresh. setup callback for interface lo:500 24
abr 25 23:16:12 testhost pluto[20768]: | setup callback for interface lo:500 fd 24
abr 25 23:16:12 testhost pluto[20768]: | refresh. setup callback for interface lo:4500 23
abr 25 23:16:12 testhost pluto[20768]: | setup callback for interface lo:4500 fd 23
abr 25 23:16:12 testhost pluto[20768]: | refresh. setup callback for interface lo:500 22
abr 25 23:16:12 testhost pluto[20768]: | setup callback for interface lo:500 fd 22
abr 25 23:16:12 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:4500 21
abr 25 23:16:12 testhost pluto[20768]: | setup callback for interface wlp2s0:4500 fd 21
abr 25 23:16:12 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:500 20
abr 25 23:16:12 testhost pluto[20768]: | setup callback for interface wlp2s0:500 fd 20
abr 25 23:16:12 testhost pluto[20768]: forgetting secrets
abr 25 23:16:12 testhost pluto[20768]: loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:12 testhost pluto[20768]: WARNING: using a weak secret (PSK)
abr 25 23:16:13 testhost pluto[20768]: listening for IKE messages
abr 25 23:16:13 testhost NetworkManager[432]: 002 listening for IKE messages
abr 25 23:16:13 testhost NetworkManager[432]: 002 forgetting secrets
abr 25 23:16:13 testhost NetworkManager[432]: 002 loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:13 testhost NetworkManager[432]: 003 WARNING: using a weak secret (PSK)
abr 25 23:16:13 testhost pluto[20768]: | refresh. setup callback for interface lo:500 24
abr 25 23:16:13 testhost pluto[20768]: | setup callback for interface lo:500 fd 24
abr 25 23:16:13 testhost pluto[20768]: | refresh. setup callback for interface lo:4500 23
abr 25 23:16:13 testhost pluto[20768]: | setup callback for interface lo:4500 fd 23
abr 25 23:16:13 testhost pluto[20768]: | refresh. setup callback for interface lo:500 22
abr 25 23:16:13 testhost pluto[20768]: | setup callback for interface lo:500 fd 22
abr 25 23:16:13 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:4500 21
abr 25 23:16:13 testhost pluto[20768]: | setup callback for interface wlp2s0:4500 fd 21
abr 25 23:16:13 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:500 20
abr 25 23:16:13 testhost pluto[20768]: | setup callback for interface wlp2s0:500 fd 20
abr 25 23:16:13 testhost pluto[20768]: forgetting secrets
abr 25 23:16:13 testhost pluto[20768]: loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:13 testhost pluto[20768]: WARNING: using a weak secret (PSK)
abr 25 23:16:14 testhost pluto[20768]: listening for IKE messages
abr 25 23:16:14 testhost pluto[20768]: | refresh. setup callback for interface lo:500 24
abr 25 23:16:14 testhost NetworkManager[432]: 002 listening for IKE messages
abr 25 23:16:14 testhost NetworkManager[432]: 002 forgetting secrets
abr 25 23:16:14 testhost NetworkManager[432]: 002 loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:14 testhost NetworkManager[432]: 003 WARNING: using a weak secret (PSK)
abr 25 23:16:14 testhost pluto[20768]: | setup callback for interface lo:500 fd 24
abr 25 23:16:14 testhost pluto[20768]: | refresh. setup callback for interface lo:4500 23
abr 25 23:16:14 testhost pluto[20768]: | setup callback for interface lo:4500 fd 23
abr 25 23:16:14 testhost pluto[20768]: | refresh. setup callback for interface lo:500 22
abr 25 23:16:14 testhost pluto[20768]: | setup callback for interface lo:500 fd 22
abr 25 23:16:14 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:4500 21
abr 25 23:16:14 testhost pluto[20768]: | setup callback for interface wlp2s0:4500 fd 21
abr 25 23:16:14 testhost pluto[20768]: | refresh. setup callback for interface wlp2s0:500 20
abr 25 23:16:14 testhost pluto[20768]: | setup callback for interface wlp2s0:500 fd 20
abr 25 23:16:14 testhost pluto[20768]: forgetting secrets
abr 25 23:16:14 testhost pluto[20768]: loading secrets from "/etc/ipsec.secrets"
abr 25 23:16:14 testhost pluto[20768]: WARNING: using a weak secret (PSK)
abr 25 23:16:14 testhost NetworkManager[432]: VPN connection 'MYVPN L2TP' (Connect) reply received.
abr 25 23:16:14 testhost NetworkManager[432]: VPN connection 'MYVPN L2TP' failed to connect: 'Could not talk to pluto the IKE daemon.'.
abr 25 23:16:14 testhost NetworkManager[432]: error disconnecting VPN: Could not process the request because no VPN connection was active.

and does not connect.

Maybe i have a configuration issue, but looks like nm can't talk with pluto.

Hope you can help me or fix it if there is a bug :)

Cheers

usepeerdns is always set to pppd

There's no way to disable the usepeerdns flag to pppd. I believe that, when the IPv4 Settings Method "Automatic (VPN) Addresses Only" mode is set, this flag should be dropped from the configuration file so that DNS entries aren't overridden.

Question: Could not load new IPsec secret.

Not an issue, but perhaps I am configuring something wrong. I did try various configurations in the last 5 hours. Any chances you can tell what is going on?

File /etc/ipsec.secrets updated with:
: PSK "SHARED_KEY"

Enable IPSec tunnel to L2TP host. Checked
Gateway has an IP, not domain
NT Domain is empty.
VPN Documentation: https://documentation.meraki.com/MX-Z/Client_VPN/Client_VPN_OS_Configuration#Windows_7

Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

connection
id : "VPN connection 1" (s)
uuid : "04d79a55-4861-4738-a04c-1e465bd96e9d" (s)
interface-name : NULL (sd)
type : "vpn" (s)
permissions : ["user:miki:"] (s)
autoconnect : FALSE (s)
autoconnect-priority : 0 (sd)
timestamp : 0 (sd)
read-only : FALSE (sd)
zone : NULL (sd)
master : NULL (sd)
slave-type : NULL (sd)
autoconnect-slaves : ((NMSettingConnectionAutoconnectSlaves) NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT) (sd)
secondaries : [] (s)
gateway-ping-timeout : 0 (sd)
metered : ((NMMetered) NM_METERED_UNKNOWN) (sd)
lldp : -1 (sd)

ipv6
method : "auto" (s)
dns : [] (s)
dns-search : [] (s)
dns-options : NULL (sd)
dns-priority : 0 (sd)
addresses : ((GPtrArray*) 0x1f86200) (s)
gateway : NULL (sd)
routes : ((GPtrArray*) 0x1f86220) (s)
route-metric : -1 (sd)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
dhcp-hostname : NULL (sd)
dhcp-send-hostname : TRUE (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)
dad-timeout : -1 (sd)
dhcp-timeout : 0 (sd)
ip6-privacy : ((NMSettingIP6ConfigPrivacy) NM_SETTING_IP6_CONFIG_PRIVACY_DISABLED) (s)
addr-gen-mode : 1 (sd)

ipv4
method : "auto" (s)
dns : [] (s)
dns-search : [] (s)
dns-options : NULL (sd)
dns-priority : 0 (sd)
addresses : ((GPtrArray*) 0x1f862a0) (s)
gateway : NULL (sd)
routes : ((GPtrArray*) 0x1f862c0) (s)
route-metric : -1 (sd)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
dhcp-hostname : NULL (sd)
dhcp-send-hostname : TRUE (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)
dad-timeout : -1 (sd)
dhcp-timeout : 0 (sd)
dhcp-client-id : NULL (sd)
dhcp-fqdn : NULL (sd)

vpn
service-type : "org.freedesktop.NetworkManager.l2tp" (s)
user-name : "miki" (s)
persistent : FALSE (sd)
data : ((GHashTable*) 0x1f826a0) (s)
secrets : ((GHashTable*) 0x1f82700) (s)
timeout : 0 (sd)

nm-l2tp[19498] starting ipsec
Stopping strongSwan IPsec...
Starting strongSwan 5.3.5 IPsec [starter]...
Loading config setup
Loading conn 'nm-ipsec-l2tp-19498'
found netkey IPsec stack
nm-l2tp[19498] Could not load new IPsec secret.
nm-l2tp[19498] Could not restore saved /etc/ipsec.secrets from /etc/ipsec.secrets.19498.

(nm-l2tp-service:19498): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed

Can't find libnm and libnma dependencies.

configure: error: Package requirements (libnma >= 1.1.0) were not met:

No package 'libnma' found

And when I try to get them with apt-get:
E: Unable to locate package libnma
What do I do?

Build error "format '%ld' expects argument of type 'long int'" on 32bit x86

(Builds fine on x64)

http://hydra.nixos.org/build/37013174/nixlog/1#line-461

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/nix/store/y0sx5qr1dqcr2w339l9hcfcd8dm2indw-glib-2.48.1-dev/include/gio-unix-2.0/ -I/nix/store/y0sx5qr1dqcr2w339l9hcfcd8dm2indw-glib-2.48.1-dev/include/glib-2.0 -I/nix/store/nbvcsnh3achp3p46ik6yg5lhhdis8030-glib-2.48.1/lib/glib-2.0/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 -I/nix/store/y0sx5qr1dqcr2w339l9hcfcd8dm2indw-glib-2.48.1-dev/include/glib-2.0 -I/nix/store/nbvcsnh3achp3p46ik6yg5lhhdis8030-glib-2.48.1/lib/glib-2.0/include -I/nix/store/jgfrlf78bs84kr9lsbirrqjxqw5ak4kk-gtk+3-3.20.5-dev/include/gtk-3.0 -I/nix/store/0pqy712s5hbxl15wxzaxfhcfdb7x8c29-cairo-1.14.6-dev/include/cairo -I/nix/store/b3pirs51j59virk5jyvmrxrc4naal253-freetype-2.6.2-dev/include/freetype2 -I/nix/store/b3pirs51j59virk5jyvmrxrc4naal253-freetype-2.6.2-dev/include -I/nix/store/zq99xmji8r5m883n3avihqnsxa27z1ha-pango-1.40.1-dev/include/pango-1.0 -I/nix/store/v9qz5s2hr94r5gdfdhslj1wqlg77c339-gdk-pixbuf-2.34.0-dev/include/gdk-pixbuf-2.0 -I/nix/store/09jqbwzz1y4ab5kxf9kadlngzjg2p3h9-atk-2.20.0-dev/include/atk-1.0 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4 -I../src -DICONDIR=\"/nix/store/prbq8j6fcc42g4ym5ncz1vjb60bnx3kg-NetworkManager-l2tp-gnome-1.2.2/share/pixmaps\" -DUIDIR=\"/nix/store/prbq8j6fcc42g4ym5ncz1vjb60bnx3kg-NetworkManager-l2tp-gnome-1.2.2/share/gnome-vpn-properties/l2tp\" -DLOCALEDIR=\"/nix/store/prbq8j6fcc42g4ym5ncz1vjb60bnx3kg-NetworkManager-l2tp-gnome-1.2.2/share/locale\" -I/nix/store/6jakyqy9h5pg22kkd0xx6ybq00fr5wqf-network-manager-1.2.2/include/libnm -I/nix/store/y0sx5qr1dqcr2w339l9hcfcd8dm2indw-glib-2.48.1-dev/include/glib-2.0 -I/nix/store/nbvcsnh3achp3p46ik6yg5lhhdis8030-glib-2.48.1/lib/glib-2.0/include -I/nix/store/f1zpp45fq31lx373mvhk0mx04gl3irda-network-manager-applet-1.2.2/include/libnma -I/nix/store/6jakyqy9h5pg22kkd0xx6ybq00fr5wqf-network-manager-1.2.2/include/libnm -I/nix/store/y0sx5qr1dqcr2w339l9hcfcd8dm2indw-glib-2.48.1-dev/include/glib-2.0 -I/nix/store/nbvcsnh3achp3p46ik6yg5lhhdis8030-glib-2.48.1/lib/glib-2.0/include -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2 -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_2 -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Werror -c import-export.c  -fPIC -DPIC -o .libs/libnm_vpn_plugin_l2tp_la-import-export.o
import-export.c: In function 'export_ip4':
import-export.c:651:37: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'gint64 {aka long long int}' [-Werror=format=]
     g_string_append_printf(route_s, " metric %ld", nm_ip_route_get_metric (route));
                                     ^
cc1: all warnings being treated as errors
Makefile:624: recipe for target 'libnm_vpn_plugin_l2tp_la-import-export.lo' failed
make[2]: *** [libnm_vpn_plugin_l2tp_la-import-export.lo] Error 1
make[2]: Leaving directory '/tmp/nix-build-NetworkManager-l2tp-gnome-1.2.2.drv-0/network-manager-l2tp-1.2.2-src/properties'
Makefile:587: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-NetworkManager-l2tp-gnome-1.2.2.drv-0/network-manager-l2tp-1.2.2-src'
Makefile:435: recipe for target 'all' failed
make: *** [all] Error 2
builder for ‘/nix/store/2prib4yr8vglzrg5a23hdyihzzjjgplm-NetworkManager-l2tp-gnome-1.2.2.drv’ failed with exit code 2

Unable to connect to L2TP/IPSEC VPN since update

I'm running archlinux and a few days ago updated to the latest kernel 4.8.13-1. Since then I haven't been able to get my VPN connection working. It was working just fine the last time I tried which was on the 8th. I think there might be some sort of pppd timeout issue but I'm not sure how to resolve that.

Here's the relevant log, I've replaced the ip address I'm trying to connect to with <ip-address redacted>.

http://pastebin.com/AmHQULuJ

I'm using StrongSwan and I'll be happy to provide any other information. Thanks for any help you can provide.

Route to the VPN server via the tunnel

I installed the plugin and connection is established, but i end up with a route to the VPN server that points into the tunnel itself:

log:

(ppp4)]: Data:   Internal Point-to-Point Address: 89.179.76.176
$ netstat -nr
...
89.179.76.176   0.0.0.0         255.255.255.255 UH        0 0          0 ppp4
...

this obviously does not work, i see no traffic and the tunnel disconnects because of time out after a while.
if i manually remove this rogue route and add a different one, via the "outer" default router, the tunnel works.

Can't connect to VPN tunnel with PSK

I have been trying to use this plugin to connect my computer to the VPN of my work. The VPN server runs on windows so yeah, I was expecting problems. Anyways, here is the debug information. Apparently the problem is that the PSK is not found, but I don't know why, since I included it in the configuration dialog.

Edit: I am using archlinux and libreswan

nm-l2tp[27042] <debug> nm-l2tp-service (version 1.2.4) starting...
nm-l2tp[27042] <debug>  uses default --bus-name "org.freedesktop.NetworkManager.l2tp"
nm-l2tp[27042] <info>  ipsec enable flag: yes
** Message: Check port 1701
connection
	id : "VPN-NAME" (s)
	uuid : "9de70fc0-262d-4fe9-98d7-05470a13a3fd" (s)
	interface-name : NULL (sd)
	type : "vpn" (s)
	permissions : ["user:ctapia:"] (s)
	autoconnect : FALSE (s)
	autoconnect-priority : 0 (sd)
	timestamp : 0 (sd)
	read-only : FALSE (sd)
	zone : NULL (sd)
	master : NULL (sd)
	slave-type : NULL (sd)
	autoconnect-slaves : ((NMSettingConnectionAutoconnectSlaves) NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT) (sd)
	secondaries : [] (s)
	gateway-ping-timeout : 0 (sd)
	metered : ((NMMetered) NM_METERED_UNKNOWN) (sd)
	lldp : -1 (sd)
	stable-id : NULL (sd)


ipv6
	method : "auto" (s)
	dns : [] (s)
	dns-search : [] (s)
	dns-options : NULL (sd)
	dns-priority : 0 (sd)
	addresses : ((GPtrArray*) 0x21010e0) (s)
	gateway : NULL (sd)
	routes : ((GPtrArray*) 0x21010c0) (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	dhcp-hostname : NULL (sd)
	dhcp-send-hostname : TRUE (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)
	dad-timeout : -1 (sd)
	dhcp-timeout : 0 (sd)
	ip6-privacy : ((NMSettingIP6ConfigPrivacy) NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN) (sd)
	addr-gen-mode : 1 (sd)
	token : NULL (sd)


ipv4
	method : "auto" (s)
	dns : [] (s)
	dns-search : [] (s)
	dns-options : NULL (sd)
	dns-priority : 0 (sd)
	addresses : ((GPtrArray*) 0x2101040) (s)
	gateway : NULL (sd)
	routes : ((GPtrArray*) 0x2100fa0) (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	dhcp-hostname : NULL (sd)
	dhcp-send-hostname : TRUE (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)
	dad-timeout : -1 (sd)
	dhcp-timeout : 0 (sd)
	dhcp-client-id : NULL (sd)
	dhcp-fqdn : NULL (sd)


vpn
	service-type : "org.freedesktop.NetworkManager.l2tp" (s)
	user-name : "ctapia" (s)
	persistent : FALSE (sd)
	data : ((GHashTable*) 0x7f54a8004de0) (s)
	secrets : ((GHashTable*) 0x7f54a8004cc0) (s)
	timeout : 0 (sd)


nm-l2tp[27042] <info>  starting ipsec
Redirecting to: systemctl stop ipsec.service
Redirecting to: systemctl start ipsec.service
002 listening for IKE messages
002 adding interface wlp2s0/wlp2s0 192.168.2.113:500
002 adding interface wlp2s0/wlp2s0 192.168.2.113:4500
002 adding interface wlp2s0/wlp2s0 192.168.2.108:500
002 adding interface wlp2s0/wlp2s0 192.168.2.108:4500
002 adding interface lo/lo 127.0.0.1:500
002 adding interface lo/lo 127.0.0.1:4500
002 adding interface wlp2s0/wlp2s0 2003:69:af03:c002:659a:3482:fc96:fce7:500
002 adding interface wlp2s0/wlp2s0 2003:69:af03:c002:d424:6794:7dba:c965:500
002 adding interface lo/lo ::1:500
002 loading secrets from "/etc/ipsec.secrets"
002 no secrets filename matched "/etc/ipsec.d/*.secrets"
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
003 WARNING: using a weak secret (PSK)
nm-l2tp[27042] <warn>  Could not load new IPsec secret.
002 forgetting secrets
002 loading secrets from "/etc/ipsec.secrets"
002 no secrets filename matched "/etc/ipsec.d/*.secrets"

(nm-l2tp-service:29001): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed

Ubuntu 17.04 - connection is dropped immediately

Today I installed the PPA network-manger-l2tp 1.2.6 package on a brand new Ubuntu 17.04 system.
Aftwerwards I started testing.

In the GUI, the VPN connection is closed directly after it is established (connection '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25' established successfully)

When I do "sudo ipsec up ..." the connection stays alive.

Below the log when connection from the GUI

Jul 10 12:14:54 Ubuntu17 NetworkManager[588]: [1499681694.7011] audit: op="connection-activate" uuid="70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25" name="VPN connection 1" pid=3853 uid=1000 result="success"
Jul 10 12:14:54 Ubuntu17 NetworkManager[588]: [1499681694.7187] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: Started the VPN service, PID 4441
Jul 10 12:14:54 Ubuntu17 NetworkManager[588]: [1499681694.7383] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: Saw the service appear; activating connection
Jul 10 12:14:54 Ubuntu17 NetworkManager[588]: [1499681694.9099] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN connection: (ConnectInteractive) reply received
Jul 10 12:14:54 Ubuntu17 nm-l2tp-service[4441]: Check port 1701
Jul 10 12:14:54 Ubuntu17 NetworkManager[588]: Stopping strongSwan IPsec failed: starter is not running
Jul 10 12:14:56 Ubuntu17 NetworkManager[588]: Starting strongSwan 5.5.1 IPsec [starter]...
Jul 10 12:14:56 Ubuntu17 NetworkManager[588]: Loading config setup
Jul 10 12:14:56 Ubuntu17 NetworkManager[588]: Loading conn '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25'
Jul 10 12:14:56 Ubuntu17 NetworkManager[588]: found netkey IPsec stack
Jul 10 12:14:57 Ubuntu17 charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.5.1, Linux 4.10.0-26-generic, x86_64)
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading crls from '/etc/ipsec.d/crls'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading secrets from '/etc/ipsec.secrets'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loading secrets from '/etc/ipsec.d/nm-l2tp-ipsec-70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25.secrets'
Jul 10 12:14:57 Ubuntu17 charon: 00[CFG] loaded IKE secret for xxx.74.250.121
Jul 10 12:14:57 Ubuntu17 charon: 00[LIB] loaded plugins: charon test-vectors aesni aes rc2 sha2 sha1 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl fips-prf gmp agent xcbc hmac ccm gcm attr kernel-netlink resolve socket-default connmark stroke updown eap-mschapv2 xauth-generic
Jul 10 12:14:57 Ubuntu17 charon: 00[LIB] dropped capabilities, running as uid 0, gid 0
Jul 10 12:14:57 Ubuntu17 charon: 00[JOB] spawning 16 worker threads
Jul 10 12:14:57 Ubuntu17 charon: 05[CFG] received stroke: add connection '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25'
Jul 10 12:14:57 Ubuntu17 charon: 05[CFG] added configuration '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25'
Jul 10 12:14:58 Ubuntu17 charon: 07[CFG] rereading secrets
Jul 10 12:14:58 Ubuntu17 charon: 07[CFG] loading secrets from '/etc/ipsec.secrets'
Jul 10 12:14:58 Ubuntu17 charon: 07[CFG] loading secrets from '/etc/ipsec.d/nm-l2tp-ipsec-70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25.secrets'
Jul 10 12:14:58 Ubuntu17 charon: 07[CFG] loaded IKE secret for xxx.74.250.121
Jul 10 12:14:58 Ubuntu17 charon: 09[CFG] received stroke: initiate '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25'
Jul 10 12:14:58 Ubuntu17 charon: 11[IKE] initiating Main Mode IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1] to xxx.74.250.121
Jul 10 12:14:58 Ubuntu17 charon: 11[ENC] generating ID_PROT request 0 [ SA V V V V V ]
Jul 10 12:14:58 Ubuntu17 charon: 11[NET] sending packet: from 10.0.2.15[500] to xxx.74.250.121[500] (240 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 12[NET] received packet: from xxx.74.250.121[500] to 10.0.2.15[500] (176 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 12[ENC] parsed ID_PROT response 0 [ SA V V V V V ]
Jul 10 12:14:58 Ubuntu17 charon: 12[IKE] received strongSwan vendor ID
Jul 10 12:14:58 Ubuntu17 charon: 12[IKE] received Cisco Unity vendor ID
Jul 10 12:14:58 Ubuntu17 charon: 12[IKE] received XAuth vendor ID
Jul 10 12:14:58 Ubuntu17 charon: 12[IKE] received DPD vendor ID
Jul 10 12:14:58 Ubuntu17 charon: 12[IKE] received NAT-T (RFC 3947) vendor ID
Jul 10 12:14:58 Ubuntu17 charon: 12[ENC] generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Jul 10 12:14:58 Ubuntu17 charon: 12[NET] sending packet: from 10.0.2.15[500] to xxx.74.250.121[500] (524 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 13[NET] received packet: from xxx.74.250.121[500] to 10.0.2.15[500] (508 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 13[ENC] parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
Jul 10 12:14:58 Ubuntu17 charon: 13[IKE] local host is behind NAT, sending keep alives
Jul 10 12:14:58 Ubuntu17 charon: 13[ENC] generating ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]
Jul 10 12:14:58 Ubuntu17 charon: 13[NET] sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (108 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 14[NET] received packet: from xxx.74.250.121[4500] to 10.0.2.15[4500] (76 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 14[ENC] parsed ID_PROT response 0 [ ID HASH ]
Jul 10 12:14:58 Ubuntu17 charon: 14[IKE] IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1] established between 10.0.2.15[10.0.2.15]...xxx.74.250.121[xxx.74.250.121]
Jul 10 12:14:58 Ubuntu17 charon: 14[IKE] scheduling reauthentication in 10164s
Jul 10 12:14:58 Ubuntu17 charon: 14[IKE] maximum IKE_SA lifetime 10704s
Jul 10 12:14:58 Ubuntu17 charon: 14[ENC] generating QUICK_MODE request 1362568669 [ HASH SA No ID ID NAT-OA NAT-OA ]
Jul 10 12:14:58 Ubuntu17 charon: 14[NET] sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (236 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 15[NET] received packet: from xxx.74.250.121[4500] to 10.0.2.15[4500] (172 bytes)
Jul 10 12:14:58 Ubuntu17 charon: 15[ENC] parsed QUICK_MODE response 1362568669 [ HASH SA No ID ID ]
Jul 10 12:14:58 Ubuntu17 charon: 15[IKE] CHILD_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25{1} established with SPIs cabeffb7_i 777d5cef_o and TS 10.0.2.15/32[udp/l2f] === xxx.74.250.121/32[udp/l2f]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: initiating Main Mode IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1] to xxx.74.250.121
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: generating ID_PROT request 0 [ SA V V V V V ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: sending packet: from 10.0.2.15[500] to xxx.74.250.121[500] (240 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received packet: from xxx.74.250.121[500] to 10.0.2.15[500] (176 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: parsed ID_PROT response 0 [ SA V V V V V ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received strongSwan vendor ID
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received Cisco Unity vendor ID
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received XAuth vendor ID
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received DPD vendor ID
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received NAT-T (RFC 3947) vendor ID
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: sending packet: from 10.0.2.15[500] to xxx.74.250.121[500] (524 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received packet: from xxx.74.250.121[500] to 10.0.2.15[500] (508 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: local host is behind NAT, sending keep alives
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: generating ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (108 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received packet: from xxx.74.250.121[4500] to 10.0.2.15[4500] (76 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: parsed ID_PROT response 0 [ ID HASH ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1] established between 10.0.2.15[10.0.2.15]...xxx.74.250.121[xxx.74.250.121]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: scheduling reauthentication in 10164s
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: maximum IKE_SA lifetime 10704s
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: generating QUICK_MODE request 1362568669 [ HASH SA No ID ID NAT-OA NAT-OA ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (236 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: received packet: from xxx.74.250.121[4500] to 10.0.2.15[4500] (172 bytes)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: parsed QUICK_MODE response 1362568669 [ HASH SA No ID ID ]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: CHILD_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25{1} established with SPIs cabeffb7_i 777d5cef_o and TS 10.0.2.15/32[udp/l2f] === xxx.74.250.121/32[udp/l2f]
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: connection '70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25' established successfully
Jul 10 12:14:58 Ubuntu17 charon: 15[ENC] generating QUICK_MODE request 1362568669 [ HASH ]
Jul 10 12:14:58 Ubuntu17 charon: 15[NET] sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (76 bytes)
Jul 10 12:14:58 Ubuntu17 nm-l2tp-service[4441]: xl2tpd started with pid 4516
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: [1499681698.5325] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN plugin: state changed: starting (3)
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: setsockopt recvref[30]: Protocol not available
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Using l2tp kernel support.
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: xl2tpd version xl2tpd-1.3.8 started on Ubuntu17 PID:4516
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Forked by Scott Balmos and David Stipp, (C) 2001
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Inherited by Jeff McAdams, (C) 2002
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Listening on IP address 0.0.0.0, port 1701
Jul 10 12:14:58 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Connecting to host xxx.74.250.121, port 1701
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: death_handler: Fatal signal 15 received
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: xl2tpd[4516]: Connection 0 closed to xxx.74.250.121, port 1701 (Server closing)
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: Stopping strongSwan IPsec...
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: [1499681712.5395] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN plugin: failed: connect-failed (1)
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: [1499681712.5395] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN plugin: failed: connect-failed (1)
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: [1499681712.5396] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN plugin: state changed: stopping (5)
Jul 10 12:15:12 Ubuntu17 charon: 00[DMN] signal of type SIGINT received. Shutting down
Jul 10 12:15:12 Ubuntu17 charon: 00[IKE] closing CHILD_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25{1} with SPIs cabeffb7_i (0 bytes) 777d5cef_o (544 bytes) and TS 10.0.2.15/32[udp/l2f] === xxx.74.250.121/32[udp/l2f]
Jul 10 12:15:12 Ubuntu17 charon: 00[IKE] sending DELETE for ESP CHILD_SA with SPI cabeffb7
Jul 10 12:15:12 Ubuntu17 charon: 00[ENC] generating INFORMATIONAL_V1 request 697436545 [ HASH D ]
Jul 10 12:15:12 Ubuntu17 charon: 00[NET] sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (92 bytes)
Jul 10 12:15:12 Ubuntu17 charon: 00[IKE] deleting IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1] between 10.0.2.15[10.0.2.15]...xxx.74.250.121[xxx.74.250.121]
Jul 10 12:15:12 Ubuntu17 charon: 00[IKE] sending DELETE for IKE_SA 70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25[1]
Jul 10 12:15:12 Ubuntu17 charon: 00[ENC] generating INFORMATIONAL_V1 request 1660002841 [ HASH D ]
Jul 10 12:15:12 Ubuntu17 charon: 00[NET] sending packet: from 10.0.2.15[4500] to xxx.74.250.121[4500] (108 bytes)
Jul 10 12:15:12 Ubuntu17 nm-l2tp-service[4441]: ipsec shut down
Jul 10 12:15:12 Ubuntu17 NetworkManager[588]: [1499681712.5631] vpn-connection[0x55e767fdb4f0,70ea65ca-2b94-40f4-8dbb-0ff50ed0fa25,"VPN connection 1",0]: VPN service disappeared

Certificate-base connections

It seems like the network-manager-l2tp doesn't accept Certificates from strongswan. I have the ipsec.conf to load certificates, but it is ignored by network-manager-l2tp. Is there a work around or fix for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.