I would think: action = iptables=multiport[name=asterisk-tcp, port="5060", protocol=tcp] should be: action = iptables-multiport[name=asterisk-tcp, port="5060", protocol=tcp] Note the dash instead of the equals sign in iptables-multiport
Bill On 8/10/2017 3:24 PM, Jonathan Hunter wrote:
Hi Guys, Sorry for the noise, just wondered if anyone had a similar issue to this. Our server was rebooted, and since that point fail2ban wont work correctly. We have an Asterisk server we are trying to stop REGISTERATION attempts which are fraudulent, and use this rule in jail.conf; [asterisk] enabled = true filter = asterisk action = iptables=multiport[name=asterisk-tcp, port="5060", protocol=tcp] iptables-multiport[name=asterisk-udp, port="5060", protocol=udp] logpath = /var/log/asterisk/messages maxretry = 3The associated filter when testing the regex provides matches with the criteria(no errors), however we simply dont see any entries into IPtables.Timestamps/ NTP are all in Sync so was wondering if any one had any further ideas? As debug not showing anything. Thanks Jon ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
