Could someone with more experience help me in this?
I have an idea in my head and i've been trying to put it into practice.
I have two machines, one where the application is hosted (I'll call it "Real Machine") and the other that would act as a proxy (I'll call it a proxy machine) redirecting the connections to the real machine's IP address.
The application defaults to port 2083.
I configured nginx on the proxy machine.. all work ok.
The logic is: Visitor -> Proxy Machine (Redirect) -> Real Machine (where the application is) -> OK
The problem is that until the connection is accepted everything is working OK (the real machine ip is hidden, only displays the proxy machine ip).. but when the visitor connects to the application if i use the command "netstat -n" i can see the IP address of the real machine. Would it be possible to disable the ip of the actual machine being displayed on netstat -n?
My goal is to mask the IP address of the machine where the application is hosted (only show the IP of "Proxy Machine"). It is possible?
Thank you!
This is my conf in proxy machine (nginx):
stream {
server {
listen 2083;
proxy_pass REAL_MACHINE_IP:2083;
}
}