summaryrefslogtreecommitdiff
path: root/gitolite-abuse
blob: 5d0d109adcc5496f4f8de1fb2efd0127a5004fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# sometimes people try to abuse our gitolite.

# You can simply iptable them, just doublecheck if it's not transifex/github mirror/...
/var/log/apache2# cat error.log.1 | awk -F'[\ ]|[:]' '{print $13}' | sort -n | uniq -c | sort -nr | head -n 10
awk: warning: escape sequence `\ ' treated as plain ` '
  72781 74.217..
   1166 148.251..
    874 52.4..
    830 5.9..

# was it rebooted? 
iptables-restore ~/ipv4-save
iptables -A INPUT -s THOSEIPS -j DROP
iptables-save >~/ip4-save

tadaa besos from munin