I have a Raspberry Pi that I want to be able to run Transmission on for torrenting purposes. I have Transmission installed.

I want to have openvpn running but only for Transmission and not touching the rest of the services. I have to access many of the other services on the Pi from the web and therefore cannot have the VPN interfering with that.

I have a ProtonVPN account and downloaded all of the openvpn UDP config files.

I would like to have the VPN running but split-tunneled so that only Transmission is covered by the VPN.

I have searched for guides that explain how to do this but so far none of them are adequate or go into enough detail.

Does anybody have a guide that can explain it all in detail, or know what files to edit and what to put in them?

Thank you in advance for any help you can provide.

None of this is using Docker.

  • AnonymousDeity@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I don’t have a guide for this, but assuming you’re on raspbian you can make a new network namespace, create your VPN device within the network namespace and then run your process within that namespace. That’s going to require getting your hands dirty though.

    Why not just use docker or podman? It’s much easier to do this with that. docker run -d --name vpn gluetun and docker run -d --network container:vpn myimage and you’re done, because OCI containers have their own network namespace by default.