| # vi /etc/icinga2/conf.d/09_log-checks/check_radius-log.conf | ||
|
object CheckCommand "check_radius-log" { |
||
| fail2ban | apt install -y geoip-bin | |
| /var/log/fail2ban.log | ||
| ban 181.214.206.94 | ||
| geoiplookup 65.52.67.244 | cut -d ':' -f2 geoiplookup 150.107.148.155 | cut -d ':' -f2 geoiplookup 181.214.206.123 | cut -d ':' -f2 |
||
| geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat 65.52.67.244 | ||
| geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat 144.167.32.105 | cut -d':' -f2 | ||
| chmod a+rw /var/log/freeradius/radius.log |
| # icinga2 daemon -C | |||
| # time systemctl reload icinga2 | |||
| # time systemctl restart icinga2 | |||
| # multitail /var/log/icinga2/icinga2.log |
-----
Quellen/Source:
-
- find-geolocation-ip-address-commandline/
-
----