Commit daa64fb2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eterban.sh: add ban for ban manually

parent a25c546b
......@@ -21,6 +21,11 @@ if [ "$command" = "unban" ] ; then
exit
fi
if [ "$command" = "ban" ] ; then
/usr/share/eterban/ban.py $1 "blocked with eterban manually"
exit
fi
if [ "$command" = "search" ] ; then
mask="$(echo "$1" | sed -e 's|\.|\\.|g')"
ipset list $setname | grep --color "$mask"
......@@ -35,4 +40,5 @@ Usage:
list - list all banned IPs
search <ip> - search for ip in the list of banned IPs
unban <ip> - unban IP
ban <ip> - ban IP
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