However, during these periods, openvpn stops working and network traffic gets through directly, which exposes my torrent client. So to deal with this, I've added `docker stop deluge` into my `/etc/openvpn/down` script, which runs when it goes down. However, trying to take it back up in the `/etc/openvpn/up` script doesn't seem to work.
This means that my deluge container comes down almost daily and has to be manually put back up. How can I limit my deluge container to only use my `tun0` network device only? Perhaps this would be better in a docker or openvpn forum, but I figured you all might know best here to proceed.
My `compose.yml` file:
Code: Select all
---
services:
deluge:
image: lscr.io/linuxserver/deluge:latest
container_name: deluge
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- DELUGE_LOGLEVEL=error #optional
volumes:
- /var/lib/deluge/config:/config
- /media/media/download:/downloads
- /media/media/download:/media/media/download
- /media/media/shows:/media/media/shows
- /media/media/movies:/media/media/movies
ports:
- 8112:8112
- 6881:6881
- 6881:6881/udp
- 58846:58846
restart: unless-stopped
Code: Select all
client
remote 24.143.155.111 443
dev tun
proto tcp
auth-user-pass /etc/openvpn/user.txt
resolv-retry infinite
redirect-gateway def1
persist-key
persist-tun
nobind
cipher AES-256-CBC
auth SHA256
ping 5
ping-exit 60
ping-timer-rem
script-security 2
remote-cert-tls server
route-delay 5
verb 4
up /etc/openvpn/up
down /etc/openvpn/down
ca ca.crt
cert client.crt
key client.key