I have FreeBSD 14.4-RELEASE, fail2ban 1.1.1 and have pf enabled
fail2ban.log shows ip addresses being recognised and listed as already banned, but maillog shows attempts still getting through, and I haven't worked out how to see if the tables are appearing in pf. I've had a look through the forums but when I do
pfctl -a "fail2ban/postfix" -t fail2ban-postfix -T show
I get "table does not exist"
I suspect it is the banaction line in jail.local, but I can't find what I need to put in there, it appears to have changed slightly over different versions of fail2ban. Recently I have seen a post saying
banaction = pf[actiontype=]
banaction_allports = pf[actiontype=]
and another saying
action = pf_[something] (where something is listed in actions.d)
my current conf files:
in pf.conf
table <fail2ban> persist
anchor "fail2ban/*"
block drop in log (all) quick on $ext_if from <fail2ban> to any
jail.local
banaction = pf
[postfix]
enabled = true
mode = aggressive
port = smtp,465,submission
logpath = %(postfix_log)s
backend = %(postfix_backend)s
action.d/pf.conf
tablename = fail2ban
thanks in advance
andrew
fail2ban.log shows ip addresses being recognised and listed as already banned, but maillog shows attempts still getting through, and I haven't worked out how to see if the tables are appearing in pf. I've had a look through the forums but when I do
pfctl -a "fail2ban/postfix" -t fail2ban-postfix -T show
I get "table does not exist"
I suspect it is the banaction line in jail.local, but I can't find what I need to put in there, it appears to have changed slightly over different versions of fail2ban. Recently I have seen a post saying
banaction = pf[actiontype=]
banaction_allports = pf[actiontype=]
and another saying
action = pf_[something] (where something is listed in actions.d)
my current conf files:
in pf.conf
table <fail2ban> persist
anchor "fail2ban/*"
block drop in log (all) quick on $ext_if from <fail2ban> to any
jail.local
banaction = pf
[postfix]
enabled = true
mode = aggressive
port = smtp,465,submission
logpath = %(postfix_log)s
backend = %(postfix_backend)s
action.d/pf.conf
tablename = fail2ban
thanks in advance
andrew