docker-qbittorrentvpn icon indicating copy to clipboard operation
docker-qbittorrentvpn copied to clipboard

Can you access webui from local if VPN is enabled?

Open Astro03 opened this issue 2 years ago • 8 comments

I'm using openvpn settings for a Private Internet Access ovpn file.

When I set VPN_ENABLED=no, I can access the webui from the local network.

When I set VPN_ENABLED=yes, I CANNOT access the webui from the local network. For some reason, when making the http request, the response times out.

In both these scenarios, the qbittorrent is working and i'm still able to download and access it through other means.

Is there a way to access the webui from the local network if the VPN is enabled?

My LAN_NETWORK=192.168.0.0/16

Astro03 avatar Sep 30 '22 20:09 Astro03

Are you sure LAN_NETWORK should be /16 instead of /24? Normally if the WebUI in inaccessible with vpn enabled its because of a misconfiguration in the LAN_NETWORK

DyonR avatar Oct 01 '22 01:10 DyonR

Could be related #127

D1s0rdu8 avatar Oct 01 '22 17:10 D1s0rdu8

@DyonR

I have 192.168.X.* (docker network) and 192.168.Y.* (home network) at my house.

I'm not an expert but i believe 192.168.0.0/16 would cover both X and Y octets.

I'll look into trying the solution in 127 but i think it's already in my ip route table.

Could this be caused by traefik doing reverse routing? It really seems odd that it works when VPN is off but not on. -> Traefik does not cause this since i turned it off and it still doesn't route properly

Astro03 avatar Oct 04 '22 00:10 Astro03

I have 192.168.X.* (docker network) and 192.168.Y.* (home network) at my house.

I'm not an expert but i believe 192.168.0.0/16 would cover both X and Y octets.

192.168.0.0/22 should do it, I think.

Could this be caused by traefik doing reverse routing? It really seems odd that it works when VPN is off but not on. -> Traefik does not cause this since i turned it off and it still doesn't route properly

Have you set up forwarding of port 8080:8080 from host to container in Docker? That needs to be in place to connect to the web UI.

rodti avatar Nov 02 '22 12:11 rodti

192.168.0.0/22 should do it, I think.

This solved my issue changing from /24 to /22. I can finally go to sleep :)

comk22 avatar Nov 12 '22 04:11 comk22

@comk22 ,

  1. Is your home network 192.168.0.* or 192.168.1.* or 192.168.2.* or 192.168.3.? (I assume it's not 192.168.0. since 192.168.0.0/24 did not work for you.)
  2. Do you use traefik?

Astro03 avatar Nov 17 '22 00:11 Astro03

@comk22 ,

  1. Is your home network 192.168.0.* or 192.168.1.* or 192.168.2.* or 192.168.3.? (I assume it's not 192.168.0. since 192.168.0.0/24 did not work for you.)
  2. Do you use traefik?

@Astro03 My server is on 192.168.1.107. Still used 192.168.0.0/22 for this qbittorrent application. But I was thinking I could have also configured a normal Wireguard config and just installed qbittorrent nox. It was a bit easier to comprehend what I was doing.

comk22 avatar Nov 17 '22 11:11 comk22

@comk22

okay.. so the reason why yours worked was because you local network is on the 1 subnet.

cidr -> range of ip addresses 192.168.0.0/24 -> 192.168.0.0 to 192.168.0.255

Notice how your ip address was not on the lan? By changing the 24 to 22, you basically added your ip address to the lan range.

192.168.0.0/23 -> 192.168.0.0 to 192.168.1.255 192.168.0.0/22 -> 192.168.0.0 to 192.168.3.255

Astro03 avatar Nov 17 '22 16:11 Astro03