tprasadtp / protonvpn-docker

ProtonVPN Wireguard Docker Image. Supports ARMv8 (64-bit ) and x86 (64-Bit).
GNU General Public License v3.0
290 stars 25 forks source link

[BUG] - #76

Closed lhoupert closed 3 years ago

lhoupert commented 3 years ago

Version of protonvpn-docker

latest

Credential & Plan

System Architecture

aarch64

Running on a NAS?

No

Container Runtime

Docker with defaults

Version of Kubernetes

NA

Version of docker/podman runtime

NA

Relevant log output

No response

Any additional info

No response

Code of Conduct & PII Redaction

lhoupert commented 3 years ago

Hi all, I encountered the same problem of timeout than https://github.com/tprasadtp/protonvpn-docker/issues/15 when I want to access the webgui of pyload through the port 8000.

I tried several things but nothing worked.... I managed to access the port 8000 when running pyload without protonvpn.

I followed the troubleshooting guide, getting the docker-compose file with the command curl -sSfLO https://tprasadtp.github.io/protonvpn-docker/manifests/docker-compose.yml

Both containers are running fine.

The command sudo docker inspect --format='{{range .NetworkSettings.Networks}}{{printf "http://%s:8000\\n" .IPAddress}}{{end}}' protonvpn is returning me http://192.168.144.2:8000\n

I also have timeout erros when I want to access this address from my lan

And the command ip r is giving me :

root@453d69968f3a:/# ip r
0.0.0.0/1 via 10.18.0.1 dev proton0 
default via 192.168.144.1 dev eth0 
10.18.0.0/16 dev proton0 proto kernel scope link src 10.18.0.19 
128.0.0.0/1 via 10.18.0.1 dev proton0 
138.199.7.129 via 192.168.144.1 dev eth0 
169.254.169.254 via 192.168.144.1 dev eth0 
169.254.170.2 via 192.168.144.1 dev eth0 
192.168.144.0/20 dev eth0 proto kernel scope link src 192.168.144.2 
root@453d69968f3a:/# curl -sSfL ipinfo.io
{
  "ip": "138.199.7.146",
  "hostname": "unn-138-199-7-146.datapacket.com",
  "city": "Amsterdam",
  "region": "North Holland",
  "country": "NL",
  "loc": "52.3740,4.8897",
  "org": "AS212238 Datacamp Limited",
  "postal": "1012",
  "timezone": "Europe/Amsterdam",
  "readme": "https://ipinfo.io/missingauth"
}root@453d69968f3a:/# 

Any idea of what I am missing?

Edit: The result of the command sudo docker inspect --format='{{range .NetworkSettings.Networks}}{{printf "http://%s:8000\\n" .IPAddress}}{{end}}' protonvpn ( http://192.168.144.2:8000\n) is accessible from the computer running the docker container, but not on my lan network.

How could I access pyload on my docker host from anywhere on my lan network? The ip of my server is 192.168.1.71 and I would like to be able to access pyload from anywhere by accessing 192.168.1.71:8000 . Is there an option to do that?

lhoupert commented 3 years ago

Finally it was a problem similar to #15 : I needed to add a route to my local network in PROTONVPN_EXCLUDE_CIDRS (in my case PROTONVPN_EXCLUDE_CIDRS: 192.168.1.0/24 worked)