Kyiv not Kiev!!! registered on Dec 15, 1999 registered on Aug 24, 2023


iptables geoip too many countries specified


Знадобилося заблокувати деякі країни однією строкою:

iptables -I INPUT -m geoip --src-cc

Але отримав таку помилку:
iptables v1.6.0: geoip: too many countries specified

Оскільки я використовую кастомне ядро - я збираю xtables-addon самостійно.
Отже, нам потрібно збільшити XT_GEOIP_MAX та перезібрати.

GeoLite2 :(


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 be removed from our website. GeoLite Legacy database users will need to switch to the GeoLite2 or commercial GeoIP databases and update their integrations by January 2, 2019.

If you are a redistribution license customer, please note that you must download via the account portal or geoipupdate in order to get an updated database.

Блокуємо доступ з Криму, Донецької та Луганської області


Однострочный скрипт, блокирующий доступ к ресурсу с диапазонов IP адресов Крыма, Донецкой и Луганской области.
Запускать из-под рута:

Error |

Error message

  • Warning: Error while sending QUERY packet. PID=1448953 in DatabaseStatementBase->execute() (line 2284 of /home/vitich/web/
  • Warning: Cannot modify header information - headers already sent by (output started at /home/vitich/web/ in drupal_send_headers() (line 1551 of /home/vitich/web/
  • PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {variable} variable WHERE ( (name = :db_condition_placeholder_0) ); Array ( [:db_condition_placeholder_0] => cron_last ) in variable_set() (line 1310 of /home/vitich/web/


The website encountered an unexpected error. Please try again later.