The GOST service supports the receiving PROXY protocol(v1/v2). When the service is behind other proxy service (such as Nginx), the PROXY protocol is used to obtain the real IP of the client.
Enable PROXY protocol function with the
After the PROXY protocol function is enabled, the client is not forced to send PROXY protocol header, and the service will automatically determine whether there is PROXY protocol header based on the received data.
Port 8000 simulates a reverse proxy service and forwards data to the following 8080 service. Port 8080 is a port forwarding service.
When accessing port 8000, the client IP obtained by the service on port 8080 is 127.0.0.1.
If the client sends PROXY protocol header, the 8080 port service can get the real IP of the client.