Skip to main content

Module ip_filter

Module ip_filter 

Source
Expand description

Addresses and CIDR ranges: TrustedProxies and the range parsing the IpFilter middleware (in rust-web-server’s ip_filter) is built on.

Structs§

IpRangeEntry
One parsed range of TrustedProxies.

Enums§

TrustedProxies
Peers whose X-Forwarded-* / Forwarded headers rws believes (trusted_proxies, 18.24.0). The default is loopback and the private ranges load balancers usually sit in; * trusts everyone (the behaviour before 18.24), none no one.

Constants§

DEFAULT_TRUSTED_PROXIES
The default trusted_proxies.

Functions§

client_ip
The address a request comes from, for everything that judges or records a client (rate limits, IP filters, the blocklist, WAF rules, logs).
is_valid_entry
true if entry is an address or CIDR range IpFilter understands.