pia-openvpn icon indicating copy to clipboard operation
pia-openvpn copied to clipboard

Question: How do I access a WEBUI on a container behind the pia-openvpn

Open Fribb opened this issue 8 years ago • 3 comments

I'm trying to get this to work. I use the pia-openvpn container as stated in the readme. Then I used the --net=container:pia on the transmission container and when I'm connected on it and get the current IP then it is the same as pia (and different from my regular IP) which tells me that it works. However it seems that I'm not able to connect to the webui of the transmission container over the port 9091. How can I access the webui?

Fribb avatar Nov 21 '17 12:11 Fribb

I created a project that can represent the problem. I have not been able to reproduce the problem on a mac. However, running this on ubuntu, I can no longer access a container that is behind the vpn outside of the host.

https://github.com/rizowski/docker-tunnel

rizowski avatar Feb 08 '18 01:02 rizowski

https://www.reddit.com/r/docker/comments/3w0498/docker_containers_routed_through_openvpn_client/ this thread has led me down the path of trying to solve this with an nginx container that routes the right port(s) to the host for the UI...I'll come back and let y'all know if I can get this working

conlon avatar Feb 23 '18 06:02 conlon

Ultimately this is what I had to do. I can get it to work with either nginx or traefik. Someone I know was also able to get it to work with Apache. Even though that worked I tried to create an issue on docker compose to find out why I couldn't connect to the container outside the host. But no one seems to be able to replicate the issue. It seems like a firewall issue but when I allowed all traffic on the blocked port on any interface to go to any interface I still had the same problem. So right now, proxy it is.

https://github.com/docker/compose/issues/5664 https://bitbucket.org/ItsDaSpecialK/docker-openvpn/issues/1/question-how-do-i-access-a-webui-on-a

rizowski avatar Feb 23 '18 14:02 rizowski