On Mon, 4 Jan 2021 at 23:01, Tommy <[email protected]> wrote:

> Hello,
>
> I have been very happily using fail2ban to protect my network and I love
> it. I recently made a change to my home automation software though.  I set
> it up to send attachments from my cameras when motion is detected.
> Unfortunately, it is tripping the nginx-badbots-custom rule. I have tried
> to make a regex for the ignoreregex = section of the filter but have failed
> miserably each time. I was able to remove Attach out of the badbots =
> section and the filter no longer triggers. I suspect this is the offending
> line in the logs that is triggering the filter:
>
> 192.168.1.1 - - [04/Jan/2021:16:07:24 +0000] "POST /auth/token HTTP/1.1"
> 200 232 "-" "Extensions-NotificationService/2020.7
> (io.robbie.HomeAssistant.APNSAttachmentService; build:11; iOS 14.2.0)
> Alamofire/4.9.1"
>
> Could someone please either point me to some help with regex or help me
> get started on the regex.
>
>
Unless I am mistaken...

# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts.
Fail2ban
# will not ban a host which matches an address in this list. Several
addresses
# can be defined using space (and/or comma) separator.
#ignoreip = 127.0.0.1/8 ::1


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to