summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwadronaut <kwadronaut@leap.se>2020-03-05 09:41:06 +0100
committerKwadronaut <kwadronaut@leap.se>2020-03-05 09:41:06 +0100
commit02dddfdc54329a41f8c5dac00f787d2affc014a7 (patch)
tree06211645aa634d1ac90955ef7bf0e4695137f885
parenta863a61eed6d50be0c69e196187bbc3e26065259 (diff)
block gitolite abuseHEADmaster
-rw-r--r--gitolite-abuse16
1 files changed, 16 insertions, 0 deletions
diff --git a/gitolite-abuse b/gitolite-abuse
new file mode 100644
index 0000000..5d0d109
--- /dev/null
+++ b/gitolite-abuse
@@ -0,0 +1,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