You will also need a host Tun device if that does not already exist: (or simply install openvpn package host level it will take care of creating this for you)
#!/bin/sh
# Create the necessary file structure for /dev/net/tun
if ( [ ! -c /dev/net/tun ] ); then
if ( [ ! -d /dev/net ] ); then
mkdir -m 755 /dev/net
fi
mknod /dev/net/tun c 10 200
fi
# Load the tun module if not already loaded
if ( !(lsmod | grep -q "^tun\s") ); then
insmod /lib/modules/tun.ko
fi
Adding these variables to my qbittorrent run command shouldn’t be a problem.
Where should I run the script? Inside the qbittorrent container, or the host?
That script is just an example of how to create the host level tun device, you may allready have one in /dev/net and as I say you can just install openvpn package host level to get one.
I’ve have the PIA container up and running. Now I need help figuring out how to route my qbittorrent traffic through the PIA container. My qbittorent container already uses the --net parameter for reverse proxy with the linuxserver/letsencrypt container.
So now what’s the best way to route through the PIA container?