-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network_mode and routing traffic through vpn #35
Comments
Check out #34, which is related to haugene/docker-transmission-openvpn#771. Might make a difference to errors at startup. |
Thanks. I added that code already when I was trying to fix the issue but other than making transmission quicker to start, it didn’t help with my issue. |
I think we both mentioned this on another projects issue tracker. I still haven't been able to reproduce the inaccessible issue. I get the error about once or twice per service using the VPN during first five mins. I then don't see it for hours if at all. Maybe until Traefik check clashes with vpn health check or the VPN connection dropping or changing server. No idea. I have everything in one compose file, so I have to change network_mode to service instead of container. I may have depends_on: listed for services using the VPN, but in terms of startup and health check it makes no difference. I haven't added anything to modify the health check, I just know it will take 5 mins to become available. I am still using VPN for jackett, it's needed for geoblocking/censorship same privacy |
I can't get this to work in a reliable way. I even tried a different VPN container (arch-qbittorrentvpn). I'd like to be able to run a number of containers through the VPN, but the containers either 404 or fail after a certain amount of time. I've tried Does anyone have their docker compose file where they are successfully passing multiple containers through a container running a vpn (e.g. transmission-openvpn)? It might help me pin down what's wrong with my setup. Thanks. |
Does anyone have some guidance on this? My compose file is allowing the traffic through, but I get the same errors for all containers that run behind the VPN. |
My current configuration is stable and working as expected, since I'm on Unraid system i don't have a compose file (it works with docker run via GUI) but I can share my run output or my unraid xml template. The only errors I keep seeing are in traefik for the container behind VPN:
|
My setup does work. However, if the VPN container restarts or reconnects or watchtower updates it, all the containers routed through it fail, returning a bad gateway through the reverse proxy. They are still running they just don’t have network access. Restarting them fixes the issue. @rubbo898 If you restart your VPN container and wait until it’s back up then try and visit one of your containers routed through the VPN, do they work? |
@robflate my setup does the same thing when I remove the VPN container, watchtower seems to work ok for me however. |
@cwilford What about if you restart the VPN container. Do the routed containers work once the VPN container is back running?
|
@robflate same behaviour for me too, if you restart the VPN container the tunneled ones must be restarted too (with some latency) |
An update on this. To recap the issue; Say you have a single docker compose with 2 containers, There's loads of chat about this on the Docker github and lots of the githubs for containers providing VPN because that is a large use case for The one I'm using requires an autoheal container, and the addition of a Healthcheck to the dependent container ( More info: docker/compose#6329 (comment) Also, I'm currently using Gluetun as my VPN container and route Jackett, Deemix, Lidarr-AMD and xTeVe through it. I've done some tests with this workaround by restarting Gluetun outside docker-compose and it works. I am waiting for Glutun to be updated to see if it also works when Watchtower updates the image. It's worth noting that if you don't have your Here's an example of the workaround;
Closing because this issue is related to Docker Networking and not something specific to this stack. |
I moved this subject to discussions on VPN |
Same issue on the gluetun project at qdm12/gluetun#641 I'll address hopefully next week through https://github.com/qdm12/deunhealth |
Amazing! Can’t wait to try it out. |
I saw that you commented out;
network_mode: container:transmission-vpn
for Jackett and qBittorrentI was wondering what the reason was? I ask because I still use it but I have an issue where Jackett will stop working after a certain amount of time. I also get the following errors in my traefik log;
today at 2:36 PM time="2020-04-14T13:36:02Z" level=warning msg="Could not find network named 't2_proxy' for container '/jackett'! Maybe you're missing the project's prefix in the label? Defaulting to first available network." serviceName=jackett-svc providerName=docker container=jackett-media-server-af1b3a73318b2dd451eee0fa6256d796fdb689444512e35dd7189a62d21bab60
Did you ever experience this issue when you were using
network_mode
?Thanks.
The text was updated successfully, but these errors were encountered: