Repository navigation
v1.7.2
This release closes a spoofing hole. Reproxy built X-Real-IP from the left-most public address of the client-supplied X-Forwarded-For, so any client could set the address backends see, and per-user throttling could be bypassed by rotating spoofed headers. X-Real-IP, route allowlists and per-user throttling now use the address of the connection, or the X-Forwarded-For chain when the connection comes from an address listed in the new --trusted-proxy.
If reproxy runs behind a CDN, a load balancer or another proxy, list its addresses in --trusted-proxy when upgrading (for Cloudflare, its published IP ranges). Without it, backends see the proxy's address in X-Real-IP, the proxy's X-Forwarded-Proto and X-Forwarded-Port are dropped, and throttling counts requests per proxy address. Reproxy no longer starts with --remote-lookup-headers unless --trusted-proxy is also set. See "Client address and forwarded headers" in the README.
Bug Fixes
- take X-Real-IP from the TCP peer, add --trusted-proxy #267 @umputun
- keep range responses intact under gzip, add --gzip-exclude #266 @umputun
- keep Content-Encoding on gzip-compressed error responses #265 @umputun
- bound mapper cache and reuse host regexes #262 @umputun
- match routes on canonical escaped paths #261 @umputun
- make DNS-01 propagation timeout configurable #260 @umputun
Improvements