Conditionally create set

Fix the case when fail2ban restarts, and the set already exist from
previous runs
pull/3589/head
Tomer Shalev 2023-10-02 17:40:14 +03:00
parent 8eac5f597a
commit 3fbcf26e8c
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ before = iptables.conf
# Notes.: command executed on demand at the first ban (or at the start of Fail2Ban if actionstart_on_demand is set to false).
# Values: CMD
#
actionstart = ipset --create f2b-<name> maxelem <maxelem> iphash
actionstart = ipset --create f2b-<name> maxelem <maxelem> iphash --exist
<_ipt_add_rules>