This container contains OpenVPN, Transmission and SABnzbd with a configuration where Transmission and SABnzbd is running only when OpenVPN has an active tunnel. It has built in support for many popular VPN providers to make the setup easier.
You can find (and you should read) the original documentation at https://haugene.github.io/docker-transmission-openvpn/
If you can't find what you're looking for there, please have a look in the discussions of the original author as we're trying to use that for general questions.
If you have found what you believe to be an issue or bug, create an issue and provide enough details for us to have a chance to reproduce it or undertand what's going on. NB: Be sure to search for similar issues (open and closed) before opening a new one.
This is a fork of https://github.com/hvos234/docker-transmission-sabnzbd-openvpn and https://github.com/haugene/docker-transmission-openvpn with SABnzbd (and par2-tbb). Additionally, the following UFW rules have been added:
ufw default deny incoming
ufw default deny outgoing
ufw allow out on tun0
ufw allow out on eth0 to any port 53,${OPENVPN_PORT=} proto ${OPENVPN_PROTO}
allow out on wlan0 to any port 53,${OPENVPN_PORT=} proto ${OPENVPN_PROTO}
docker run --cap-add=NET_ADMIN -d --restart always -d
-v /mnt/hdd5/downloads/:/data
-v /home/pi/openvpn/OPENVPNFILE.ovpn:/etc/openvpn/custom/default.ovpn
-e OPENVPN_PROVIDER=CUSTOM
-e OPENVPN_USERNAME=USERNAME
-e OPENVPN_PASSWORD=PASSWORD
-e OPENVPN_PROTO=udp
-e OPENVPN_PORT=1194
-e LOCAL_NETWORK=192.168.192.0/24
-e TZ=NL
-e ENABLE_UFW=true
-e TRANSMISSION_RPC_USERNAME=transmission
-e TRANSMISSION_RPC_PASSWORD=PASSWORD
-e GLOBAL_APPLY_PERMISSIONS=false
--log-driver json-file
--log-opt max-size=10m
-p 9091:9091
-p 8080:8080
--dns 1.1.1.1
--dns 1.0.0.1
riboyama/transmission-sabnzbd-openvpn:latest
version: '3.3'
services:
transmission-sabnzbd-openvpn:
cap_add:
- NET_ADMIN
volumes:
- '/media/download:/data'
environment:
- OPENVPN_PROVIDER=IPVANISH
- OPENVPN_CONFIG=ipvanish-NL-Amsterdam-ams-a01,ipvanish-NL-Amsterdam-ams-a02,ipvanish-NL-Amsterdam-ams-a20
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- PUID=1000
- PGID=1000
- OPENVPN_OPTS=--cd /etc/openvpn/ipvanish
- OPENVPN_PROTO=udp
- OPENVPN_PORT=443
- UFW_ALLOW_GW_NET=true
- UFW_EXTRA_PORTS=443
- LOCAL_NETWORK=192.168.50.0/24
- TZ=NL
- ENABLE_UFW=true
- TRANSMISSION_WEB_UI=flood-for-transmission
logging:
driver: json-file
options:
max-size: 10m
ports:
- '8080:9091'
- '6789:8080'
image: riboyama/transmission-sabnzbd-openvpn:latest
restart: always
Do not forget to change the OPENVPNFILE, USERNAME, PASSWORD, PASSWORD and also the LOCAL_NETWORK
to your situation.
Run the container once and adjust the ${TRANSMISSION_HOME}/settings.json
and the ${SABNZBD_HOME}/sabnzbd.ini
to your liking!
Do not forget to regerenate the API- and NZB-key in SABnzbd.
When you run this , it will copy the default-settings.json
file to ${TRANSMISSION_HOME}/settings.json
(if not exists)
and the default-sabnzbd.ini
files to ${SABNZBD_HOME}/sabnzbd.ini
(if not exists). All environment variables starting with 'TRANSMISSION_' and 'SABNZBD_' will replace the variables in the settings file of the corresponding application. You can start the a container the first time and make alterations in both files without any of the environment variables.