Opened 4 years ago

Closed 4 years ago

#1173 closed defect (worksforme)

"client sent invalid request" when proxy protocol destination is 0.0.0.0

Reported by: tmeagher.thumbtack.com@… 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

Description

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

This seems to be the result of destination ip set to 0.0.0.0? 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."

http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt

Change History (2)

comment:1 by Roman Arutyunyan, 4 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, 4 years ago

Resolution: worksforme
Status: newclosed

Feedback timeout. Works fine here.

Note: See TracTickets for help on using tickets.