Giter Club home page Giter Club logo

docker-transmission-sabnzbd-openvpn's Introduction

OpenVPN, Transmission and Sabnzbdplus with WebUI

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.

Documentation

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.

Fork details

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}

Run

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

Docker Compose

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.

docker-transmission-sabnzbd-openvpn's People

Contributors

aaronblair avatar aerickson avatar borysekondrej avatar bperel avatar clement-z avatar dan1el avatar dulanic avatar e7d avatar echaupynx avatar eskemojoe007 avatar g-be avatar gpongelli avatar haugene avatar himred avatar hvos234 avatar ilike2burnthing avatar jandrews377 avatar jfessard avatar ksurl avatar menteb avatar nightbr avatar othou avatar pkishino avatar printgeek avatar qoobaa avatar riboyama avatar rsalas avatar shuaiscott avatar troubadoure avatar wilmardo avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.