geoiplegacy
Why? Because of Nginx, Piwik2 and ModSecurity2. To use GeoIP2, Nginx has to be built from source. It seems to be very useful! https://www.miyuru.lk/geoiplegacy Post Views: 26
Смерть російським окупантам!
Why? Because of Nginx, Piwik2 and ModSecurity2. To use GeoIP2, Nginx has to be built from source. It seems to be very useful! https://www.miyuru.lk/geoiplegacy Post Views: 26
Знадобилося заблокувати деякі країни однією строкою: iptables -I INPUT -m geoip –src-cc AR,BR,CN,CO,DZ,HK,IN,IR,KP,LA,MY,OM,PK,SC,TH,TW,VN -j DROP Але отримав таку помилку: iptables v1.6.0: geoip: too many countries specified Оскільки я використовую кастомне ядро – я збираю xtables-addon самостійно. Отже, нам потрібно збільшити Continue reading iptables geoip too many countries specified
As of April 1, 2018, updated versions of the GeoLite Legacy databases will be available to redistribution license customers only, although anyone can continue to download the March 2018 GeoLite Legacy builds. On January 2, 2019, the last build will Continue reading GeoLite2 🙁
Однострочный скрипт, блокирующий доступ к ресурсу с диапазонов IP адресов Крыма, Донецкой и Луганской области. Запускать из-под рута: wget `curl -s https://db-ip.com/db/download/ip-to-city-lite | grep -E -o ‘https://download.db-ip.com/free/dbip-city-lite-20[0-9]{2}-[0-9]{2}.csv.gz’`&& gunzip dbip-city-lite-*.csv.gz && mv dbip-city-lite-* dbip-city-lite-csv && for IP in $(cat dbip-city-lite-csv | Continue reading Блокуємо доступ з Криму, Донецької та Луганської області
Вдруг, кому пригодится. for IP in $(curl http://vitich.kyiv.ua/files/crimean.ip_.txt); do iptables -A INPUT -s $IP -j DROP; done Post Views: 10