Opened 7 years ago

Closed 7 years ago

#1173 closed defect (worksforme)

"client sent invalid request" when proxy protocol destination is

Reported by:… Owned by:
Priority: minor Milestone:
Component: other Version: 1.6.x
Keywords: Cc:
uname -a: Linux stag-tools-rp-0036ff11d4da02fbf 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.6.2
TLS SNI support enabled


I recieve the following message in nginx error logs:
373 client sent invalid request while reading client request line, client:, server: , request: "PROXY TCP4 35978 443"

This seems to be the result of destination ip set to The RFC does seem to suggest that this is a valid address for the argument (although not useful). To quote:

"the layer 3 source address in its canonical format. IPv4 addresses must be indicated as a series of exactly 4 integers in the range [0..255] inclusive written in decimal representation separated by exactly one dot between each other. Heading zeroes are not permitted in front of numbers in order to avoid any possible confusion with octal numbers."

Change History (2)

comment:1 by Roman Arutyunyan, 7 years ago

The error suggests that your listen directive does not have the "proxy_protocol" parameter.
Please show your configuration.

comment:2 by Maxim Dounin, 7 years ago

Resolution: worksforme
Status: newclosed

Feedback timeout. Works fine here.

Note: See TracTickets for help on using tickets.