OPNsense Forum

English Forums => General Discussion => Topic started by: cyb_tachyon on April 29, 2026, 10:16:56 PM

Title: Crowdsec & floating rules appear as Default Deny in 26.1
Post by: cyb_tachyon on April 29, 2026, 10:16:56 PM
Crowdsec and floating rules appear as "Default deny / state violation" in 26.1 logs. This makes it incredibly difficult to troubleshoot.


Desired result: Floating rules are logged by their origin (plugin name or automatic), or if not possible, floating rules appear as "Floating Rule".
Workaround: Whitelist Docker IP subnets in Crowdsec, and add Firewall Rules (New) specific for Docker IP subnets (172.15-20.0.0/16).

Related threads:

Network Setup:

OPNsense Setup:

Debian 13 Setup:
Title: Re: Crowdsec & floating rules appear as Default Deny in 26.1
Post by: nero355 on April 29, 2026, 11:55:16 PM
Quote from: cyb_tachyon on April 29, 2026, 10:16:56 PMWorkaround: Whitelist Docker IP subnets in Crowdsec, and add Firewall Rules (New) specific for Docker IP subnets (172.15-20.0.0/16).

Debian 13 Setup:
  • Default settings for Docker install (bridge mode NAT).
Why not use MACVLAN for Docker and maybe not have this issue ?!

A lot of Docker users I know use it and recommend it to pretty much everyone too! :)
Title: Re: Crowdsec & floating rules appear as Default Deny in 26.1
Post by: Patrick M. Hausen on April 30, 2026, 09:06:03 AM
Quote from: nero355 on April 29, 2026, 11:55:16 PMWorkaround: Whitelist Docker IP subnets in Crowdsec

Don't you have RFC 1918 networks whitelisted, anyway?

https://docs.crowdsec.net/u/getting_started/next_steps
QuoteBy default, CrowdSec whitelists private LAN IP addresses. You can add your own IPs or events to prevent false positives.
Title: Re: Crowdsec & floating rules appear as Default Deny in 26.1
Post by: nero355 on April 30, 2026, 06:48:15 PM
Quote from: Patrick M. Hausen on April 30, 2026, 09:06:03 AM
Quote from: nero355 on April 29, 2026, 11:55:16 PMWorkaround: Whitelist Docker IP subnets in Crowdsec
Don't you have RFC 1918 networks whitelisted, anyway?

https://docs.crowdsec.net/u/getting_started/next_steps
QuoteBy default, CrowdSec whitelists private LAN IP addresses. You can add your own IPs or events to prevent false positives.
You quoted the wrong guy ^_^

Soo let's ask him :
Quote from: cyb_tachyon on April 29, 2026, 10:16:56 PMWorkaround: Whitelist Docker IP subnets in Crowdsec, and add Firewall Rules (New) specific for Docker IP subnets (172.15-20.0.0/16).
Don't you have RFC 1918 networks whitelisted, anyway?

https://docs.crowdsec.net/u/getting_started/next_steps
QuoteBy default, CrowdSec whitelists private LAN IP addresses. You can add your own IPs or events to prevent false positives.

:P