ipfs / ipfs/kubo

Respect RFC 7239 (`Forwarded` header), `X-Forwarded-For`, and/or `X-Real-IP`

Open
#8,193 5 comments 0 reactions 0 assignees View on GitHub
effort/days exp/intermediate kind/enhancement P3
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

Currently when using Nginx as a reverse proxy, go-ipfs seems list all peers connecting through the reverse proxy as `127.0.0.1` (`ipfs swarm peers`). I couldn't find a way to discover their *actual* IP address, which can be incredibly useful for tools like fail2ban. I'm hoping for go-ipfs to support RFC 7239 and/or the `X-Forwarded-For`, and/or `X-Real-IP` headers. These are documented quite well [here](https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/).

My apologies if I missed the feature!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.