Назад | Перейти на главную страницу

Mysql разбился, показывая следующие ошибки. Это взлом?

2015-05-17 14:50:38 1896 [Warning] Host name 'hn.kd.ny.adsl' could not be resolved: No such host is known. 
2015-05-18 00:11:23 1896 [Warning] IP address '222.186.21.38' could not be resolved: The requested name is valid, but no data of the requested type was found. 
2015-05-18 12:12:57 1896 [Warning] Hostname 'unassigned.psychz.net' does not resolve to '216.99.158.181'.
2015-05-18 12:12:57 1896 [Note] Hostname 'unassigned.psychz.net' has the following IP addresses:
2015-05-18 12:12:57 1896 [Note]  - 199.15.112.8
2015-05-18 15:12:41 1896 [Warning] Hostname 'unassigned.psychz.net' does not resolve to '216.99.158.158'.
2015-05-18 15:12:41 1896 [Note] Hostname 'unassigned.psychz.net' has the following IP addresses:
2015-05-18 15:12:41 1896 [Note]  - 199.15.112.8
2015-05-19 16:27:21 1896 [Warning] Host name 'hn.kd.ny.adsl' could not be resolved: No such host is known. 

Добавьте следующее в свой my.cnf

[mysqld]
skip-host-cache
skip-name-resolve

Эти две переменные не Глобальный так нужно service mysql restart после этого

Если вы хотите заблокировать все подключения к порту 3306 (MySQL) и разрешить только те, которые вам нужны

$ iptables -N mysql
$ iptables -A mysql --src 1.1.1.1 -j ACCEPT
$ iptables -A mysql -j DROP
$ iptables -I INPUT -m tcp -p tcp --dport 3306 -j mysql

где 1.1.1.1 - это IP-адрес, который вы хотите добавить белый список