Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos410 authored Oct 24, 2024
1 parent 9151471 commit ddffd71
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ Supports IPv6 and IPv4. Supports single IP addresses and IP ranges in CIDR as we

![212354312-ce98a2ac-8e03-4af5-864d-b93eb87ea491](https://github.com/evosec/keycloak-ipaddress-authenticator/assets/20876882/6c556343-4876-4b64-945e-053210181a91)

![227958012-18a803c0-956e-4195-895f-0913dd01e434](https://github.com/evosec/keycloak-ipaddress-authenticator/assets/20876882/d2297a79-5b05-4082-94d3-72bda1487395)
![image](https://github.com/user-attachments/assets/42f47ff9-c2a5-4cd9-a8b4-b505ef0763e3)

## Setup behind proxy servers
A typical Keycloak Setup does not directly expose the Keycloak server, but includes one or more proxy servers for terminating TLS traffic or load balancing. In that case the Keycloak server only sees the IP address of the proxy server, which can be a security risk - For example if you only want to trust IP addresses from your internal network, the Keycloak server only sees the IP address of your proxy server.

In this case, you can use the Parameter "Use a 'forwarded' header", which tells the plugin to use the client IP address from a header (typically "X-Forwarded-For"). To make this secure, you have to be aware how many proxy servers your setup includes, because the first IP addresses in this header can be spoofed by an attacker. For example, if your network setup includes 2 proxies, you should set the parameter "Number of trusted proxies" to 2. This means the second last IP from the forwarded header is used as the client IP address.

For more information see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#security_and_privacy_concerns

## Installation
* Download the `keycloak-ipaddress-authenticator-{version}-jar-with-dependencies.jar` from the [Releases Tab](https://github.com/evosec/keycloak-ipaddress-authenticator/releases) and verify the checksum. Alternatively you can build [build from source](#build-from-source).
Expand Down

0 comments on commit ddffd71

Please sign in to comment.