Skip to content

Nginx proxy_protocol doesn't work. #94

@LaikeeDu

Description

@LaikeeDu

Hi, I've used Nginx as a load balance, and use example/server or example/http as backend.
But I can't get real IP from nginx even if I have used the configuration of Nginx like proxy_protocol on

stream {

upstream my_servers{
#least_conn;
server 1.2.3.4:22;
#proxy_protocol      on;
}
server {
listen [::]:223 ipv6only=off;
listen [::]:223 ipv6only=off udp;
proxy_pass my_servers;
proxy_protocol      on;

}
}

The error was: proxyproto: invalid address or it just give me the IP of Nginx.
Because I didn't find any thing relative to the problem, so I open the issue asking you for help.
I will be appreciate if you can look deep into the problem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions