LH94
LH94

Reputation: 1

Using NGINX to mask destination server(s) ip address in http traffic

So I'm relatively new to nginx but want to know how I can use a reverse proxy to mask the destination server(s) IP addresses. Here is how it works so far:

I have reverse proxy (rp), main server (ms), secondary server (ss)

So when using a nginx proxy currently I connect via rp---ms but via wireshark I see main server IP address as destination. If main server passes me to secondary server for resource I see secondary servers IP address in wireshark.

What I want to develop is rp---ms----ss or rp---ss but to/from traffic only shows ip of the reverse proxy server outgoing and returning - is this possible?

Upvotes: 0

Views: 1702

Answers (1)

Marc Sances
Marc Sances

Reputation: 2614

Are you checking Wireshark from inside the Nginx network? It is obvious that packets forwarded from Nginx will have the main server IP address as destination, you just need to reconfigure the firewall so that only Nginx is accessible from outside.

Check this diagram that will help you understand how to properly design this.

Diagram on what to do

Upvotes: 1

Related Questions