I run #Mullvad #VPN under desktop linux. I need to make the VPN start automatically in the split tunnel mode, excluding all processes except for few predefined applications (Mullvad Browser first of all).
How can I achieve? mullvad.net/pl/help/how-use-mu… shows only ways to exclide / include specific pid. There is no wildcard code, nor there is a way to add an app before it is starts.
Please advise.
How to use the Mullvad VPN app from the terminal/command prompt.Mullvad VPN
Hm~, it seems that I've used github.com/chutz/mullvad-netns in the past instead of systemd-based netns creation (I don't really recall much about it apart from not having difficulties setting it up).
Now that I've looked for related tooling, I've noticed that github.com/jamesmcm/vopono exists. However, I've first heard of it right now, so I have no opinion even on whether it actually works.
Script to run a command within a Mullvad network namespace - GitHub - chutz/mullvad-netns: Script to run a command within a Mullvad network namespaceGitHub