21
24
iptables -I <chain> 1 -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
22
25
iptables -N fail2ban-<name>-log
23
26
iptables -I fail2ban-<name>-log -j LOG --log-prefix "$(expr fail2ban-<name> : '\(.\{1,23\}\)'):DROP " --log-level warning -m limit --limit 6/m --limit-burst 2
27
30
# Notes.: command executed once at the end of Fail2Ban