Skip to content

Commit

Permalink
Add info about real ip
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuv committed Oct 28, 2024
1 parent 502d97a commit b01dc87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Web application firewall using the appsec component from crowdsec.

It's meant to be used in front of an ingress/reverse proxy. The bouncer expects requests to be forwarded from the ingress and it will in turn forward requests to the crowdsec appsec component. The appsec component will make a decisions based on appsec rules and respond to the bouncer.

Example usage
* [Traefik](https://doc.traefik.io/traefik/middlewares/http/forwardauth)
For traefik it can be used with [forwardauth](https://doc.traefik.io/traefik/middlewares/http/forwardauth)

### Real client IP
The real client IP will be retrieved from `x-forwarded-for`. From right to left it will pick the first IPs that is not part of `TRUSTED_PROXIES`
### Important
The bouncer will reject all requests with 403 (forbidden) coming from an untrusted IP.

Expand Down

0 comments on commit b01dc87

Please sign in to comment.