I’m new to configuring wireguard & VPNs on Linux, I asked claude for a lot of input and am wondering if there are any faults in what I came up with or if there are better practices or things to do.
- I’m using NetworkManager with iwd for connecting to wifi, since KDE’s wifi menu supports it.
- I have ProtonVPN Plus, for the whole system it works with either the app or with a wireguard configuration imported into KDE. For this I just tested with the former.
- For per-app connections claude suggested vopono, I set up the systemd unit for it as recommended in the docs. I use commands like this:
vopono exec --custom wireguard-config.conf -i eth0 --protocol wireguard browser-name.- However it looks like every time I start my PC up I need to do this command (provided by claude) to fix priority:
sudo ip rule add from10.200.0.0/1lookup main priority 100(I could have it run automatically on startup or add it to my nix config, but am wondering if something like is normal for this).
- However it looks like every time I start my PC up I need to do this command (provided by claude) to fix priority:
- I mainly want to have different IP addresses in different browsers.
Right now this is my NixOS configuration:
networking = {
hostName = "my-pc-host-name";
networkmanager.enable = true;
networkmanager.wifi.backend = "iwd";
firewall.checkReversePath = false;
wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};
networkmanager.unmanaged = [
"interface-name:vo_*"
];
};
I can’t help you, but just wanted to add that I do something similar. It’s complicated ia totally different way. I use QubesOS, and have some ‘qubes’/VMs use a mullvad vpn qube, others that use a ‘to home’ vpn qube, and others that use a different mullvad vpn qube.
It’d be super complicated if you’re unfamiliar with QubesOS. But the ability to have multiple vpn ‘qubes’ and mix and match them as the network source for other qubes is incredibly powerful!
What does
ip rule showprint before and after you run thatip rule addcommand?Does the
ip rule addactually change anything meaningful in how your traffic is routed?PS: LLMs can be great learning tools but it looks to me like you are not asking yours the right questions.
Ever thought of using Qubes OS? It’s basically made for use cases like this and the sandboxing model will prevent any IP leaks.
If that’s overkill and you really just need different IP addresses in different Browsers you might be better of using socks proxies. Mullvad actually can do this.


