war mir jetzt nicht sicher ob ich das ins Netzwerk ordnen soll oder nicht...
Ich hab letztens mal ein kleines Script gebastelt das mir zeigt aus welchen Ländern die gebannten IPs in meinen Fail2ban sind:
Code: Alles auswählen
#!/bin/sh
for j in sshd postfix; do
echo "Jail: $j"
IPS=`fail2ban-client get $j banned | sed 's/\[//g' | sed 's/\]//g' | sed "s/'//g" | sed 's/,//g'`
for i in $IPS; do geoiplookup $i ; done | sort | uniq -c | sort -hr
echo "\n"
done
Jetzt sieht es bei mir gerade eher ruhig aus dort hab ich aber auch schon mal 700 IPs in der sshd Jail gehabt. Ist das bei euch auch so ähnlich verteilt? Das aus Asien die meisten IPs hier im Jail sind?
Code: Alles auswählen
Jail: sshd
60 GeoIP Country Edition: CN, China
18 GeoIP Country Edition: US, United States
9 GeoIP Country Edition: SG, Singapore
8 GeoIP Country Edition: IN, India
8 GeoIP Country Edition: DE, Germany
6 GeoIP Country Edition: NL, Netherlands
3 GeoIP Country Edition: UA, Ukraine
3 GeoIP Country Edition: TW, Taiwan
3 GeoIP Country Edition: TH, Thailand
3 GeoIP Country Edition: RU, Russian Federation
3 GeoIP Country Edition: KR, Korea, Republic of
3 GeoIP Country Edition: FR, France
2 GeoIP Country Edition: MX, Mexico
2 GeoIP Country Edition: KE, Kenya
2 GeoIP Country Edition: IP Address not found
2 GeoIP Country Edition: ID, Indonesia
2 GeoIP Country Edition: HU, Hungary
2 GeoIP Country Edition: GB, United Kingdom
2 GeoIP Country Edition: CA, Canada
2 GeoIP Country Edition: AE, United Arab Emirates
1 GeoIP Country Edition: VN, Vietnam
1 GeoIP Country Edition: TN, Tunisia
1 GeoIP Country Edition: RO, Romania
1 GeoIP Country Edition: MK, Macedonia
1 GeoIP Country Edition: LT, Lithuania
1 GeoIP Country Edition: JP, Japan
1 GeoIP Country Edition: IR, Iran, Islamic Republic of
1 GeoIP Country Edition: IL, Israel
1 GeoIP Country Edition: HK, Hong Kong
1 GeoIP Country Edition: EE, Estonia
1 GeoIP Country Edition: CH, Switzerland
1 GeoIP Country Edition: BG, Bulgaria
1 GeoIP Country Edition: AR, Argentina
Jail: postfix
1 GeoIP Country Edition: US, United States
1 GeoIP Country Edition: HK, Hong Kong
1 GeoIP Country Edition: DE, Germany