Joentje / nordvpn-proxy

Use NordVPN in your Docker stack
141 stars 53 forks source link

can't connect to any webui after updating ports and recreating docker_vpn_1 #16

Closed zilexa closed 4 years ago

zilexa commented 4 years ago

As I am still learning, I don't know how to debug this one any further. My docker apps work fine, but not if I run them via the nordvpn-proxy. I have defined the ports required for them (moving them in my docker-compose.yml to nordvpn-proxy).

Here is my docker-compose.yml: https://github.com/zilexa/Mediaserver/blob/master/docker-compose.yml

By commenting out the ports under nordvpn-proxy and adding them back in each docker configuration, I can access the apps again.

Is there any way (via Portainer, terminal) to test inside the nordvpn-proxy what is going wrong?

Also, I don't use Privoxy yet but when I access localhost:privoxy I get "Invalid header received from client."

edit, I got my network CIDR mask via:

$ ip route
default via 192.168.88.1 dev eno1 proto dhcp metric 100 
169.254.0.0/16 dev eno1 scope link metric 1000 
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 
172.19.0.0/16 dev br-0a4f11eba25e proto kernel scope link src 172.19.0.1 
192.168.88.0/24 dev eno1 proto kernel scope link src 192.168.88.10 metric 100 

meaning it should be: 192.168.88.0/24

zilexa commented 4 years ago

Never mind. Your solution works. What went wrong: I ran my docker-compose.yml -up again with a slightly different CIDR, after that, even if I changed it back to the correct CIDR, I could not access any webui that ran via the VPN network. Even after deleting the container. I ended up deleting everything: containers, images, the folders in /docker folder and ran my docker-compose.yml. It works now.

zilexa commented 4 years ago

Unfortunately, there does seem to be something wrong here. After the container has been created for the first time via compose, everything works. I can access the webuis via the ports that I have opened via the vpn config in my compose file.

If I want to open another port, via docker-compose.yml, I change my yml file and run it. After the docker_vpn_1 is recreated, and the container is running (checked with Portainer) none of the ports seem to work.