Coder Social home page Coder Social logo

janstuemmel / docker-deluge-ovpn Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 3 KB

An image that sets up a deluge daemon and routes all trafic over an openvpn tunnel

Dockerfile 43.27% Shell 56.73%
docker openvpn ovpn deluge deluge-daemon killswitch

docker-deluge-ovpn's Introduction

docker deluge ovpenvpn

This image sets up a deluge daemon and routes all trafic over an openvpn tunnel. The firewall is configured as a kill switch.

The image is designed to provide the simplest approach to tunnel internet trafic inside a container over a vpn.

The firewall is written with ufw, check the entrypoint.sh sh file.

Usage

Create a directory ./ovpn for example in the same directory as your docker-compose.yml file. Copy your openvpn configuration files in there. Openvpn configuration files must have the extension ovpn.

When your vpn provider needs authentication via username/password, create file in /ovpn and insert your username in the first line, your password in the second line:

myusername
mys3cretpassword

Edit your .ovpn file and add a line with auth-user-pass myauth.txt. Alternativly you can specify the file in the environment variables. See below:

version: '3'

services: 
  app:
    image: janstuemmel/deluge-ovpn
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun 
    ports:
      # the deluge connection port
      - 58846:58846
    environment:
      # select port to open outgoing 
      # connections for vpn, default: 1194 
      - OVPN_PORT=1194
      # select a specific .ovpn file to execute,
      # default: random .ovpn file in /ovpn
      - OVPN_CONFIG=default.ovpn
      # select a specific auth file to use when 
      # connecting, will override specified auth
      # file in .ovpn file, default: none
      - OVPN_AUTH_FILE=auth.txt
    volumes:
      # provide a open vpn configuration 
      # directory with all for .ovpn configs
      # and maybe auth files
      - ./ovpn:/ovpn
      # mount download folder
      - ./downloads:/app/Downloads

Start service with docker-compose up -d. Debug vpn connection then with docker-compose logs -f. You can check your torrent ip with ipleak.net.

After that you can connect to the daemon with the geluge gtk ui or the webinterface. The default credentials are admin/admin.

Resources

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.