From cbe27f0e887a635ff5e405ef7428a43207b7fd6b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 25 Nov 2016 18:10:50 -0700 Subject: [PATCH] Create freeswitch-404.conf Fail2ban add inbound routes 404 not found --- debian/resources/fail2ban/freeswitch-404.conf | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/resources/fail2ban/freeswitch-404.conf diff --git a/debian/resources/fail2ban/freeswitch-404.conf b/debian/resources/fail2ban/freeswitch-404.conf new file mode 100644 index 0000000..ada405c --- /dev/null +++ b/debian/resources/fail2ban/freeswitch-404.conf @@ -0,0 +1,27 @@ +# Fail2Ban configuration file +# inbound route - 404 not found + + +[Definition] + + +# Option: failregex +# Notes.: regex to match the password failures messages in the logfile. The +# host must be matched by a group named "host". The tag "" can +# be used for standard IP/hostname matching and is only an alias for +# (?:::f{4,6}:)?(?P[\w\-.^_]+) +# Values: TEXT +# +#failregex = [hostname] FusionPBX: \[\] authentication failed +#[hostname] variable doesn't seem to work in every case. Do this instead: +failregex = 404 not found + + +#EXECUTE sofia/external/8888888888888@example.fusionpbx.com log([inbound routes] 404 not found 82.68.115.62) + + +# Option: ignoreregex +# Notes.: regex to ignore. If this regex matches, the line is ignored. +# Values: TEXT +# +ignoreregex =