Skip to content

The proxy sends no X-Forwarded-* headers to the origin #127

Description

@GyulyVGC

nullnet-proxy implements no upstream_request_filter, so requests are forwarded verbatim: the origin sees the proxy's IP as the client and sees plain HTTP even when the browser used HTTPS.
Apps that rate-limit or authorise by client IP, log real client addresses, or build absolute URLs from the request scheme all misbehave once they move behind nullnet.

Fix: add X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host in an upstream_request_filter.
The client IP and the listener's TLS flag are already at hand in the proxy.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Fields

Priority

Low

Effort

Low

Nullnet member

nullnet-proxy

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions