This seems like something that would be simple, but I spent a long time trying to figure it out. I figured I’d write a blog post about it in case anyone else has a similar desire.

1 point

On BSD you use FIBs to declare process specific routing tables, on Linux you use firewall marks to do the same, then just route all trafik through the vpn uplink and deny any other.

permalink
report
reply
11 points

i found it very easy to grab a couple of pre-built containers… im using deluge and gluetun … im sure theres a transmission container out there also.

setup your auth info in gluetun, point your deluge/trans container at gluetun for its network and youre done.

permalink
report
reply
6 points

I don’t know why, but I’ve always shied away from using docker. This does seem like an area where it would be particularly useful.

permalink
report
parent
reply
8 points

I avoided containers for a long time, too. But they truly are game changing.

permalink
report
parent
reply
1 point

Is this a server or your pc? Docker is kinda silly if it’s just your pc.

permalink
report
parent
reply
2 points

Not at all. It allows you to install and use whole suites of tools and libraries without any pollution of or dependencies on your host system. It also allows you to define the whole setup in a file so it’s trivial to recreate on another machine

permalink
report
parent
reply
3 points

I use a container for transmission and openvpn: https://hub.docker.com/r/haugene/transmission-openvpn/

permalink
report
parent
reply
3 points

This is what I use as well, although it was primarily out of laziness. Works well enough. I would say the Gluetun solution is a better recommendation, more robust and scalable, but the haugene container basically just works.

permalink
report
parent
reply
2 points

I would rather recommend gluetun, it supports multiple VPN protocols and you can attach any container to it

permalink
report
parent
reply
5 points

Thank you for taking the time to put this together and post it.

permalink
report
reply
1 point

Gluetun is the way. Get a transmission docker container, set up a gluetun docker container, set the gluetun container as the network for the transmission container.

Viola, you have a perfectly working VPN with a kill switch.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.5K

    Monthly active users

  • 4.1K

    Posts

  • 57K

    Comments