Looking for a bit of clarity on reverse proxying
by heavyPacket
I’m more of a network guy, I don’t work on web servers all that much. I have an internal server, A, that allows external traffic on port 4040, and there is an external server, B, somewhere on the internet that wants to pull data from A. But I want to run all network traffic through a DMZ first, so I put a VM running nginx inside the DMZ… And here is where my understanding gets a bit fuzzy. Server B points to the public IP of the proxy server and sends its request > nginx on the proxy server receives the request from server B and then passes that request to server A > ??? How does server A know to send the requested data to the proxy server? Is there anything I need to configure on server A so it sends the data to the correct server? Also, just ignore any firewall rules in this scenario, I’m not concerned about that. Thanks submitted by /u/heavyPacket [link] [comments]