Kyiv not Kiev!!!

vitich.kiev.ua registered on Dec 15, 1999

vitich.kyiv.ua registered on Aug 24, 2023

GeoIP

iptables geoip too many countries specified

iptables

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

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 самостійно.
Отже, нам потрібно збільшити 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 | vitich.kyiv.ua

Error message

  • Warning: Error while sending QUERY packet. PID=1448953 in DatabaseStatementBase->execute() (line 2284 of /home/vitich/web/vitich.kyiv.ua/public_html/includes/database/database.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/vitich/web/vitich.kyiv.ua/public_html/includes/common.inc:2861) in drupal_send_headers() (line 1551 of /home/vitich/web/vitich.kyiv.ua/public_html/includes/bootstrap.inc).
  • 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/vitich.kyiv.ua/public_html/includes/bootstrap.inc).

Error

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