You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
409 B
11 lines
409 B
[backend:exec-ipset] |
|
load = backend_exec.so |
|
start = /sbin/ipset -! create <ID> hash:ip |
|
start = /sbin/iptables -I INPUT -m set --match-set <ID> src -j DROP |
|
stop = /sbin/iptables -D INPUT -m set --match-set <ID> src -j DROP |
|
stop = /sbin/ipset -! destroy <ID> |
|
ban = /sbin/ipset -! add <ID> <IP> |
|
check = /sbin/ipset -! test <ID> <IP> |
|
unban = /sbin/ipset -! del <ID> <IP> |
|
timeout = 2 |
|
shared = yes
|
|
|