haugene / docker-transmission-openvpn

Docker container running Transmission torrent client with WebUI over an OpenVPN tunnel
GNU General Public License v3.0
4.08k stars 1.2k forks source link

Custom provider TUN/TAP error #617

Closed Navino16 closed 5 years ago

Navino16 commented 5 years ago

Hello,

I try to add a custom config to connect OpenVPN to ProtonVPN server. I download .ovpn file from official website and give my credentials in OPENVPN_USERNAME and OPENVPN_PASSWORD but I always have this :

Using OpenVPN provider: CUSTOM No VPN configuration provided. Using default. Setting OPENVPN credentials... adding route to local network 192.168.0.0/24 via 172.17.0.1 dev eth0 Mon Oct 8 03:44:01 2018 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode Options error: You must define TUN/TAP device (--dev) Use --help for more information.

I also try all things says in #271 but always same error.

My docker version is : Docker version 18.06.1-ce, build e68fc7a My serveur run on Ubuntu 16.04.5 LTS

And to start my docker container I use this :

sudo /usr/bin/docker run --name transmission-openvpn \ --cap-add=NET_ADMIN \ --device /dev/net/tun:/dev/net/tun \ -v /your/storage/path/:/home/serverdatsite/Download \ -v /path/to/your/config.ovpn:/etc/openvpn/custom/default.ovpn \ -v /etc/localtime:/etc/localtime:ro \ -e "OPENVPN_PROVIDER=CUSTOM" \ -e "OPENVPN_USERNAME=protonVPNusername" \ -e "OPENVPN_PASSWORD=protonVPNpassword" \ -e "WEBPROXY_ENABLED=false" \ -e "LOCAL_NETWORK=192.168.0.0/24" \ -e "OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60" \ --dns 8.8.8.8 \ --dns 8.8.4.4 \ --log-driver json-file \ --log-opt max-size=10m \ -p 5003:9091 \ haugene/transmission-openvpn

If it's can help you, I want to start my docker container with systemctl (I follow the doc for this) and have access to the WebUi with port 5003. I also attach my obfusced ProtonVPN config protonVPNconfig.txt

If someone can help me with my TUN/TAP error ... Thanks

Navino16 commented 5 years ago

Adding config file under openvpn/protonvpn folder inside repository and build local image to have a PROTONVPN provider make it work. But using same config file outside container with CUSTOM provider cause the TUN/TAP error

Navino16 commented 5 years ago

Finaly get it works :D

I'm just a noob with docker and use it wrong ....