Open Sepero opened 1 year ago
I was also having issues and tried the above suggested by @Sepero and was able to connect only after a failed connection
This seems to fix the bug https://github.com/NixOS/nixpkgs/issues/64965#issuecomment-741920446
May we have this added to the default package?
@abbradar @obadz
Describe the bug
Fail to connect to a l2tp + ipsec VPN after putting in all information. This happens on both Latest Gnome ISO and after NixOS installation. Message received on Gnome Desktop:
Steps To Reproduce
Steps to reproduce the behavior:
Additional context
There are several fixes listed in this issue #64965
I was able to fix the problem by creating the file
sudo touch /etc/ipsec.secrets
AFTER creating the connection and failing to connect once. (I also created the file BEFORE creating the connection, but that did not fix the issue.)After successfully connecting, this was content of file
/etc/ipsec.secrets
The following is the failure output from journalctl
Metadata
From ISO
"x86_64-linux"
Linux 5.15.89, NixOS, 23.05 (Stoat), 23.05pre445203.5ed48194335
yes
yes
nix-env (Nix) 2.12.0
"nixos-23.05pre445203.5ed48194335"
/nix/var/nix/profiles/per-user/root/channels/nixos