Closed IPv777 closed 3 years ago
Hello,
By default all SQL Users can only connect from 127.0.0.1:
MariaDB [(none)]> SELECT Host,User FROM mysql.user;
+-----------------------+-------------+
| Host | User |
+-----------------------+-------------+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
| localhost | cacti |
| localhost | eonweb |
| localhost | gedadmin |
| localhost | lilac |
| localhost | notifierSQL |
| localhost | root |
| localhost.localdomain | |
| localhost.localdomain | root |
+-----------------------+-------------+
11 rows in set (0.00 sec)
Ok for the weak password, It can be ok if only localhost can connect with it.
But why listen on 0.0.0.0:3306 ? It's an unnecessary risk 🤔
Could you consider to add bind-address = 127.0.0.1
in the [mysqld]
block of /etc/my.cnf
?
then service mariadb restart
and netstat -tulpn | grep LISTEN
to check.
I tested on my EoN : it's ok
Thanks for your reply, it will be added in a next update.
Hello,
for a security reasons :
Thanks