Skip to content

use_x_forwarded_for also requires the trusted_proxies setting #40027

Description

@fuentes81081

Feedback

see: https://www.home-assistant.io/integrations/http/#use_x_forwarded_for

trusted_proxies can be a list of addresses or ranges. If using SWAG, the container's IP can be grabbed using docker inspect

configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 172.16.0.0/12
- 192.168.0.0/16

URL

https://www.home-assistant.io/integrations/fail2ban/

Version

2025.7.2

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions