Commit 35b19ca6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eterban: add clear command

parent 35c6d206
......@@ -37,6 +37,12 @@ if [ "$command" = "search" ] ; then
exit
fi
if [ "$command" = "clear" ] ; then
ipset flush $setname
ipset flush $setname_ipv6
exit
fi
cat <<EOF
Usage:
eterban [count|list|search <ip>]
......@@ -46,4 +52,5 @@ Usage:
search <ip> - search for ip in the list of banned IPs
unban <ip> - unban IP
ban <ip> - ban IP
clear - remove all IPs from ban
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment