summarylogtreecommitdiffstats
path: root/ip64tables-multiport.conf
blob: 5b0c04a0cec95ddaa522507671d3fbf20681b336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Definition]
actionstart = ip64tables -N fail2ban-<name>
              ip64tables -A fail2ban-<name> -j RETURN
              ip64tables -I INPUT -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
actionstop = ip64tables -D INPUT -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
             ip64tables -F fail2ban-<name>
             ip64tables -X fail2ban-<name>
actioncheck = ip64tables -n -L INPUT | grep -q fail2ban-<name>
actionban = ip64tables -I fail2ban-<name> 1 -s <ip> -j DROP
actionunban = ip64tables -D fail2ban-<name> -s <ip> -j DROP

[Init]
name = default
port = ssh
protocol = tcp