1 year ago
#77269
George
Is it possible to connect to a docker webapp from public internet while connected to a VPN?
I have a docker container that runs a web app. The webapp needs to connect to a test database inside my companies VPN. I need to be able to access this webapp from the public internet.
When I am disconnected from our VPN I can hit the webapp without issue using my public IP assigned by my ISP. Its the IP for my router and I have port forwarding enabled and firewall opened correctly. However its not able to connect to the database.
When I start the VPN the app is able to connect to the database and I can open the pages from the host inside the VPN. However I can no longer access the webapp from the public internet.
Is there some way to allow these connections to come in even while connected to the VPN?
I assume this is a fairly standard use case. In reality I'm oversimplifying and my webapp has dependencies on a slew of services only accessible inside the VPN. I could try to dockerize everything but it would be a pretty massive undertaking. The app needs to be accessible to the public internet because of integrations with 3rd party apps sending webhooks and making API calls back to the webapp.
docker
networking
0 Answers
Your Answer