I’m trying to connect to my Uni’s VPN using an imperative NetworkManager Connection. I’ve set the Connection up using the KDE Plasma GUI, but my device is refusing to connect.
My relevant configuration is below:
networkmanager = {
enable = true;
connectionConfig.mdns = 2;
wifi = {
powersave = false;
backend = "wpa_supplicant";
};
plugins = with pkgs; [
networkmanager_strongswan
networkmanager-fortisslvpn
networkmanager-l2tp
networkmanager-openvpn
];
};
services = {
xl2tpd.enable = true;
strongswan.enable = true;
strongswan.secrets = [
"ipsec.d/ipsec.nm-l2tp.secrets"
];
libreswan = {
enable = true;
};
};
environment.etc."strongswan.conf" = {
text = '''';
};
services.dbus = {
packages = [ pkgs.networkmanager pkgs.strongswanNM ];
enable = true;
};
...
When I try to connect, my connection fails quickly with the following error in journalctl
Oct 28 21:36:58 UnknownDevice NetworkManager[79151]: <warn> [1761687418.3181] vpn[0x55d781cfc220,928820cd-86a4-4ef1-a7ec-331363242c3c,"VPN"]: dbus: failure: connect-failed (1)
Oct 28 21:36:58 UnknownDevice NetworkManager[79151]: <warn> [1761687418.3181] vpn[0x55d781cfc220,928820cd-86a4-4ef1-a7ec-331363242c3c,"VPN"]: dbus: failure: connect-failed (1)
Oct 28 21:36:58 UnknownDevice NetworkManager[79151]: <warn> [1761687418.3182] vpn[0x55d781cfc220,928820cd-86a4-4ef1-a7ec-331363242c3c,"VPN"]: dbus: failure: login-failed (0)
Looking at the more detailed journalctl, it seems that my IKE_AUTH response is AUTH_FAILED.
I need this VPN to be able to remote into University servers to be able to run my dissertation builds, how can I get it working?