February 28, 20251 yr Hi, I have various dockers which connect to the net using a vpn. these are the vpn containers connecting to the likes of private internet access and other similar services. I tend to find those dockers can't communicate with each other locally. What is the best way to make this work? If I make a custom dockers network and put all the dockers that need to communicate with each other and that use vpns and there is the odd 1 or 2 that don't need vpn, onto this custom network. Can I get all these to communicate without breaking the docker functions ? Edited February 28, 20251 yr by Lien1454
February 28, 20251 yr Community Expert They should be still able to communicate over the dockerhost. I.e whatever you need to access should be available at 172.17.0.1:PORT, if they all run on a bridge Edited February 28, 20251 yr by Mainfrezzer i have no clue why i wrote you instead of they, i need sleep
February 28, 20251 yr Author 2 hours ago, Mainfrezzer said: They should be still able to communicate over the dockerhost. I.e whatever you need to access should be available at 172.17.0.1:PORT, if they all run on a bridge So I just put them all on the same custom network and all should work? Nothing more to do as far as config and vpn config in the dockers with vpn support built in will be unaffected does anyone know?
February 28, 20251 yr Community Expert Just now, Lien1454 said: So I just put them all on the same custom network and all should work? Nothing more to do as far as config and vpn config in the dockers with vpn support built in will be unaffected does anyone know? You dont have to, what i mean is all docker container can communicate with all other containers that are exposed over an unraid bridge via 172.17.0.1 So for example, you have some http server running on a bridge that maps port 80 to 8080 on unraid. A second container, thats running on a different bridge should simply be able to access the http server via 172.17.0.1:8080. But if you run something like binhex vpn containers for the connection, that wouldnt work.
February 28, 20251 yr Author 56 minutes ago, Mainfrezzer said: You dont have to, what i mean is all docker container can communicate with all other containers that are exposed over an unraid bridge via 172.17.0.1 So for example, you have some http server running on a bridge that maps port 80 to 8080 on unraid. A second container, thats running on a different bridge should simply be able to access the http server via 172.17.0.1:8080. But if you run something like binhex vpn containers for the connection, that wouldnt work. Yes the binhex vpn containers are part of what I'm trying to include. So would I need to add them to a custom docker network ? I'm sure people must have the same use case for linking the likes of radaar. Sonaar, prowlarr etc. Some I have behind a vpn some i would prefer to be behind a vpn, but never got them to communicate. How do people make it so that ALL choosen containers can talk to each other locally despite vpn containers are secured up to the Internet?
February 28, 20251 yr Community Expert 8 minutes ago, Lien1454 said: Yes the binhex vpn containers are part of what I'm trying to include. So would I need to add them to a custom docker network ? I'm sure people must have the same use case for linking the likes of radaar. Sonaar, prowlarr etc. Some I have behind a vpn some i would prefer to be behind a vpn, but never got them to communicate. How do people make it so that ALL choosen containers can talk to each other locally despite vpn containers are secured up to the Internet? I cannot answer you that with full certainty as im not running any of the arrs. But i highly suspect that they use 1 of the vpn containers and just network attach all the others to that vpn container. As it would be the easiest way to manage everything together Now if they use multiple different vpn connections, that does get a bit more complicated.
March 5, 20251 yr Just set up GlutunVPN and having the exact same issue. All my apps were communicating properly together configured in bridge mode but once I directed them all through the vpn, they are no longer able to communicate with each other. Prowlaar, Mylar, NZBGet. I'm thinking there must either be a secondary network established for this, or a routing table on the VPN docker, but not really sure how to go about doing either of those. Not very strong in Linux and I'm about two weeks into my unRAID trial. If anyone knows how to set this up properly, it'd be greatly appreciated information to have.
March 6, 20251 yr Community Expert Have you guys set up all the ports for all your apps in the VPN container? And remember they are now all on the same VPN network so you need to use localhost:port in your apps to get them to communicate with each other, or the IP of the VPN container. You can watch this one which explains how to do it: https://www.youtube.com/watch?v=hgcFdUIOf5M
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.