Built in KDE 6.3 wireguard Not allowing traffic

I installed nixos unstable with kde 6.3 today, this happens in stable as well. When I go to, Settings → Wifi & Internet → + (Allow new connections button.) Then import and add my wireguard config.

When I connect to it, it says connected. but no networking is allowed through. This file works on mac, arch, an opensuse just fine. Even typing the data in manually results in the same issue. I have no firewall installed or set up in my configuration.nix.
I tried adding,

  services.wg-netmanager.enable = true;
  networking.wireguard.enable = true;

to my config but no change.

I don’t want/need to run the vpn 24/7 it as I’m connecting to my sever at my other home for maint. And games ban you as I’ve experienced. So I would like to not decoratively add it. As just clicking on the network icon to enable/disable it works best for me an my use case. I will 100% forget that I have it enabled if I have to do it via terminal as there’s no indication that I’m connected.

I’m not a nix pro so any help would be greatly appreciated.

https://wiki.nixos.org/wiki/WireGuard#Client_setup_(non-declaratively)

1 Like

I got wg.quick set up it does work but not really. The moment you disconnect via the network button in the system tray or system settings it disappears, forcing you to run sudo systemctl start wg-quick-wg0.service so it kinda misses the point for just general quick use. In my case at least.

I just don’t understand whats blocking the kde networkmanager since it works fine outside of nixos. No firewall or anything.

But thank you for the suggestion.
I guess I’ll dual boot arch or just use the mac to do upkeep.

I fixed it even though I had no firewall or anything had to add this.

  networking.firewall.enable = false;


  networking.firewall = {
  
   logReversePathDrops = true;
   
   extraCommands = ''
     ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 15295 -j RETURN
     ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 15295 -j RETURN
   '';
   extraStopCommands = ''
     ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 15295 -j RETURN || true
     ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 15295 -j RETURN || true
   '';
  };