nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

Fail2Ban ignoreregex for broadcast/multicast transmissions

Open n0rs3 opened this issue 4 years ago • 2 comments

Add ignoreregex to the FAil2Ban config so it doesn't block the broadcast and multicast transmissions from the router, fail2ban will block the default gateway IP-address with the current config.

failregex = UFW BLOCK.* SRC=<HOST> ignoreregex =

Ex. log entry from UFW for multicast block Aug 19 19:02:00 $USER kernel: [35424.283182] [UFW BLOCK] IN=wlp2s0 OUT= MAC=xx:XX:xx:XX:XX:Xx:xX:XX:xx:xx:xX:XX:XX:XX SRC=192.168.178.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=62752 PROTO=2

NCP Fail2Ban Config

n0rs3 avatar Aug 19 '22 17:08 n0rs3

I don't know, maybe something like this perhaps? 🙏

/UFW BLOCK.* DST=224.0.0.(1|251|254|255)/

n0rs3 avatar Aug 19 '22 17:08 n0rs3

This can be solved by using the ignoreip option, closing this issue

https://github.com/fail2ban/fail2ban/issues/2970#issuecomment-798296682

n0rs3 avatar Aug 22 '22 01:08 n0rs3