Przejdź do głównej zawartości


@Mullvad VPN

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? https://mullvad.net/pl/help/how-use-mullvad-cli/#split-linux 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.

Kierunkowy74 reshared this.

in reply to 8Petros [Signal: Petros.63]

Are you familiar with network namespaces in general? I think the simplest way to do such things is to have a netns that routes through the tunnel and run everything you want to use the tunnel there.
in reply to 8Petros [Signal: Petros.63]

Hm~, it seems that I've used https://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 https://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.