nm-l2tp / NetworkManager-l2tp

L2TP and L2TP/IPsec support for NetworkManager
GNU General Public License v2.0
486 stars 83 forks source link

Gentoo failed to connect #185

Closed mak163 closed 2 years ago

mak163 commented 2 years ago

Gentoo failed to connect: 'Could not write /etc/ipsec.d/ipsec.nm-l2tp.secrets' in syslog

dkosovic commented 2 years ago

Does sudo touch /etc/ipsec.d/ipsec.nm-l2tp.secrets work?

I'm not sure where Gentoo puts nm-l2tp-service, but you could try something like the following on the command-line :

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

With nm-l2tp-service running on the command-line, try connecting to the VPN via the GUI (or nmcli if you use that instead). The debug output might provide some hints.

Perhaps AppArmor or SELinux is preventing the writing to the file?

dkosovic commented 2 years ago

I'll assume you sorted the issue out, so will close this issue.