guillaumedsde / alpine-qbittorrent-openvpn

qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
https://guillaumedsde.gitlab.io/alpine-qbittorrent-openvpn/
GNU General Public License v3.0
215 stars 39 forks source link

bug #22

Open rhinot opened 3 years ago

rhinot commented 3 years ago

Information

RESOLVE: Cannot resolve host address: ca-montreal.privateinternetaccess.com:1198 (Try again), Could not determine IPv4/IPv6 protocol

Current setup

rpi4 omv5 portainer 1.24.1

docker-compose.yml file or docker run command

docker run --cap-add=NET_ADMIN \ -v local path:/downloads \ -v local path:/config \ -v /etc/localtime:/etc/localtime:ro \ -e OPENVPN_PROVIDER=PIA \ -e OPENVPN_CONFIG=CA\ Montreal \ -e OPENVPN_USERNAME=username \ -e OPENVPN_PASSWORD=password \ -e PUID=998 \ -e PGID=100 \ -e LAN=192.168.1.0/24 \ -p 8080:8080 \ guillaumedsde/alpine-qbittorrent-openvpn:latest

how did you start the container? (don't forget to use backticks for creating a proper code block) Via portainer, filling out everything via ui



## Attempted Fix(es)

_What you have tried in order to fix the issue_ (if anything)

Added DNS entries  (1.1.1.1, 8.8.8.8) in portainer, equivalent to --dns 1.1.1.1 --dns 8.8.8.8
Tried connecting to container to see if I could ping some URLs, but sendto is not permitted on this container
stevenhardey commented 3 years ago

This is related to bug #55 which was a bug in the inspiration for this project.

Currently the code is trying to pull from:

# https://www.privateinternetaccess.com/openvpn/openvpn-nextgen.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-strong-nextgen.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-ip-nextgen.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-tcp-nextgen.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-strong-tcp-nextgen.zip

but should now reference:

# https://www.privateinternetaccess.com/openvpn/openvpn.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-windows-block-outside-dns.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-strong.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-ip.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-tcp.zip
# https://www.privateinternetaccess.com/openvpn/openvpn-strong-tcp.zip

The solution for the inspiration docker container seems unavailable so I'd recommend until the problem is sorted, you try using a custom VPN configuration as outlined in the documentation.