Skip to content

Commit

Permalink
Asterisk abuse: Cut an abusing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Dec 5, 2015
1 parent 6d592a6 commit c4de4cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raspberry/asterisk/check-abuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ tail -fn0 $LOGFILE | while read line ; do
UFWRES=$(ufw deny from $IP to any)
echo $UFWRES

# cut the connection
cutter $IP

logger -t $TAG "Adding block for IP $IP to ufw firewall. $UFWRES"

# delete the IP content
Expand Down

0 comments on commit c4de4cc

Please sign in to comment.