Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing brute-force attacks on MySQL?

Tags:

brute-force

I need to turn on networking for MySQLd, but every time I do, the server gets brute-forced into oblivion. Some mean password guessing script starts hammering on the server, opening a connection on port 3306 and trying random passwords forever.

How can I stop this from happening?

For SSH, I use denyhosts, which works well. Is there a way to make denyhosts work with MySQLd?

I've also considered changing the port MySQL is running on, but this is less than ideal and only a stop-gap solution (what if they discover the new port?)

Does anyone have any other ideas?

If it makes a different, I'm running MySQL 5.x on FreeBSD 6.x.

like image 868
Keith Palmer Jr. Avatar asked Sep 22 '09 19:09

Keith Palmer Jr.


1 Answers

Firewall mysql port out. But this belongs to the serverfault realm, I believe.

like image 54
Michael Krelin - hacker Avatar answered Oct 17 '22 20:10

Michael Krelin - hacker