Opnsense reporting only "Unknown Behavior" in console Remediation Metrics

I'm trying to understand why my cs-firewall bouncer on my opnsense is not reporting correctly to the console. When I look at the detail of "Unknown Behavior" I can see "Attacker's intent cannot be detected with your remediation component (bouncer) configuration." but I've found pretty much nothing in the docs regarding this kind of problem, I see a lot of prevented attacks but it looks like the classification or category data of why it's been blocked doesn't work. Does someone have any idea where I should look ? My bouncer config looks good as far as I can tell.. Thanks!
19 Replies
iiamloz
iiamloz4mo ago
I will check with the team, but the fix was in the latest binaries of CrowdSec and the firewall remeidation, issue is we are waiting for opnsense to update their packages
Arsenick
ArsenickOP4mo ago
Awesome, thanks for the quick reply, I though it was a config on my side!
Willpower
Willpower4mo ago
Does anyone know how often opnsense updates their plugins?
iiamloz
iiamloz4mo ago
monthly afaik
Arsenick
ArsenickOP3mo ago
@Willpower Just got an update on opnsense, cannot try it right now because a reboot is required. Maybe this version will fix the unknown behavior in the console! https://github.com/opnsense/plugins/commit/90c0b228b892cb4b3628c087281ca5fadc5e5fc0
Willpower
Willpower3mo ago
I saw this yesterday and it didn’t fix it :/
Arsenick
ArsenickOP3mo ago
Damn, @iiamloz do you have any suggestion on what I can check to see where this is coming from? Is it a wide spread problem or only specific users have it?
Willpower
Willpower3mo ago
I saw there was another crowdsec plugin update but it didn’t seem to resolve it either :/ what about for you @Arsenick ?
iiamloz
iiamloz3mo ago
So the firewall remediation that everyone had was causing malformed metrics, the update should have resolved this version 0.31 or higher can you check the package version is at least this?
Willpower
Willpower3mo ago
os-crowdsec is 1.0.10 crowdsec-firewall-bouncer is 0.0.32_2 crowdsec is 1.6.8_2
iiamloz
iiamloz3mo ago
And what is exactly are you seeing and where?
Willpower
Willpower3mo ago
Discord notifications are correct and showing the correct data. When viewing alerts on the site they show the correct scenario but the Remediation Metrics on the website all show unknown behavior when looking at the graph at app.crowdsec.net/remediation-metrics. this seems to happen for any detections that happen on the opnsense firewall. For detections that happen on the nginx bouncer, those show the correct attack type in the remediation metrics tab
iiamloz
iiamloz3mo ago
ahh okay, most likely it because PF and dont think there was much options to get this data from it, I can ping the team but I missed this in the first response
Willpower
Willpower3mo ago
Gotcha. Thanks for looking into it! It’s also worth noting I’m not running the lapi on opnsense. Lapi is running on a different machine on docker
iiamloz
iiamloz3mo ago
yeah it wouldnt matter about the LAPI it simply that the remediation cant really interact with PF to get those data points.
Willpower
Willpower3mo ago
No description
Arsenick
ArsenickOP3mo ago
I'm updating it right miaw, should be able to confirm soon
Arsenick
ArsenickOP3mo ago
I still have only "Unknown Behavior" reported in the console but I got a lot more prevented attack showed there since the update so I guess it fixed something 😛
No description
Arsenick
ArsenickOP3mo ago
FYI still only have unknown behavior reported, @Loz if I understand correctly, this is a limitation of pf and won't be fixed ?

Did you find this page helpful?