X-Forwarded-For: not working with IPv6 #1837

Closed
opened 2026-04-05 19:42:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @danhusan on 1/30/2025

It seems X-Forwarded-For and X-Real-Ip shows the IP of badger when resources are accessed by IPv6.
Beta8

wget -4 whoami.mydomain.com
...
...
X-Forwarded-For: 193.193.221.3
X-Real-Ip: 193.193.221.3
...
...

wget -6 whoami.mydomain.com
...
...
X-Forwarded-For: 172.18.0.1
X-Real-Ip: 172.18.0.1
...
...

*Originally created by @danhusan on 1/30/2025* It seems X-Forwarded-For and X-Real-Ip shows the IP of badger when resources are accessed by IPv6. Beta8 wget -4 whoami.mydomain.com ... ... X-Forwarded-For: 193.193.221.3 X-Real-Ip: 193.193.221.3 ... ... wget -6 whoami.mydomain.com ... ... X-Forwarded-For: 172.18.0.1 X-Real-Ip: 172.18.0.1 ... ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1837