Firewall is blocking some legitimate traffic to our API servers

I've been watching the firewall events for our domain, and some traffic that I think is legitimate (based on the user agent) is being blocked. The traffic in question is from China, which may explain it. Is the best option to simply lower the security level with a configuration rule? It's already on Low.
14 Replies
Chaika
Chaika13mo ago
It'll tell you the matched service/service blocking it. If it's because of IP Reputation/Security Level, then that would be your best option. You can just change it globally via Security -> Settings
Southpaw
SouthpawOP13mo ago
The reason is badHost, which I think is IP reputation?
Chaika
Chaika13mo ago
BadHost The value BadHost indicates that a bad host header or no host header was used in the request
https://developers.cloudflare.com/logs/reference/glossary/#badhost
Southpaw
SouthpawOP13mo ago
Ah, interesting I did Google "Cloudflare firewall badhost" but that didn't come up
Chaika
Chaika13mo ago
As for Security Level, it just challenges people with specific Threat Scores: https://developers.cloudflare.com/waf/tools/security-level/ Low is greater then 24, Essentially off is greater then 49 China's firewall is a bit interesting, maybe that's interfering? The SNI (part of TLS) is matching up (hence why it can even know its to your site), but the host header isn't equal or set at all. I don't think you can disable that protection at all? Not sure though
Southpaw
SouthpawOP13mo ago
Wait, hang on. The rule is badScore but the class is badHost Is there a difference?
Chaika
Chaika13mo ago
Is it a block or a managed challenge?
Southpaw
SouthpawOP13mo ago
A managed challenge
Chaika
Chaika13mo ago
Sounds like that's IP Reputation
Southpaw
SouthpawOP13mo ago
Ah, I see So lowering security is the way to go.
Chaika
Chaika13mo ago
If the host header doesn't align it's always a block as far as I know, I didn't even think those made it to your security events If it's blocking real users
Southpaw
SouthpawOP13mo ago
I mean there's a small chance that someone's impersonating a user agent, but it's a read-only API server so I don't imagine lowering the firewall will harm much (especially with Cloudflare's caching 😁 )
Chaika
Chaika13mo ago
Yea probably not, I have all my zones on Essentially off personally, don't see any blocks like that. It looks like badHost is a type of IP Class - probably meaning the entire ASN has been marked because of the quantity of malicious requests/etc coming out of it
Southpaw
SouthpawOP13mo ago
That would make sense Well I'll try and see what happens Thanks for the help!
Want results from more Discord servers?
Add your server