CrowdSec decisions never ban clients: rootless podman hides real source IPs #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Traefik and Vaultwarden logs show the podman internal gateway IP instead of the actual client IP, so CrowdSec never produces effective bans.
Root cause
Rootless podman publishes ports via
rootlessport, a userspace proxy that SNATs all inbound connections. Traefik sees the container network gateway as the socket peer, writes it asClientHost, and passes it to backends throughX-Forwarded-For.Fix (deferred — blocked on host/OS migration)
Set
rootless_port_forwarder = "pasta"in[network]of containers.conf with podman >= 6.0 and passt with thepestobinary. This enables kernel-level port forwarding that preserves the original client source IP.Verification
ClientHostin traefik access logscscli decisions listentry +nft list setsban