Enabling "DontResolve" in pure-ftpd
Posted: 17 Apr 2015, 17:36
Just a quick note here; I noticed that while LFD was blocking some pure-ftpd bruteforce attempts, there were still times when my server was getting hammered repeatedly. Pure-ftpd logs in /var/log/messages, and the bruteforce attempts that were not being blocked looked like:
Of course with pure-ftpd resolving hostnames rather than just reporting IP addresses, there's no way for LFD to know which IP address to block. I echoed "yes" to /etc/pure-ftpd/conf/DontResolve, restarted pure-ftpd, and I believe this will allow LFD to catch all ftp login attempts, not just the ones for which pure-ftpd wasn't able to get a hostname.
I searched for "DontResolve" and nothing came up so I hope this tip helps someone.
Code: Select all
Apr 13 23:41:32 brightstar pure-ftpd: (?@84-241-32-107.shatel.ir) [INFO] New connection from 84-241-32-107.shatel.ir
I searched for "DontResolve" and nothing came up so I hope this tip helps someone.