I'm running in to a mental roadblock trying to figure this one out.
We have a Juniper firewall at our office and we do a lot of port forwarding to reach internal services that we need to access from the outside. For example, our build server lives at http://machine1:8190
so we forward all requests on that port at the firewall to the internal machine on the same port.
Instead, I want to access the build server at http://build.mydomain.com
. Internally I have the DNS setup to point to our nginx server running a reverse proxy so that all internal requests for http://build.mydomain.com
get proxied to http://machine1:8190
. Where I'm struggling is figuring out how I can get my external requests (from outside the office) to work the same way. If I setup DNS to point to our public IP of our office, what do I need to configure at the firewall? Obviously the requests comes in through :80
but I have another port forwarding rules that uses that port. Do I just need to point the firewall DNS at our internal DNS server? I'm just not sure what the right approach is.
Thanks!