this post was submitted on 16 Jun 2023
3 points (80.0% liked)

Self Hosted - Self-hosting your services.

11419 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 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.