IP Blacklist on File Editor

edjones

Verified User
Joined
Feb 14, 2012
Messages
27
Originally got this:

"Unable to read /usr/local/directadmin/data/admin/ip_blacklist : Unable to open /usr/local/directadmin/data/admin/ip_blacklist for reading<br>"

And I had this setting: Blacklist IPs for excessive login attempts: checked with a number of attempts.

There was still no ip_blacklist though another thread (dated 2006 albeit) said it would automatically be created at the first blacklisted IP.

So I created it in notepad, moved to the correct folder, edited to remove .txt & chmodded 644.

I copied/pasted 2 ip addresses as so:

x.x.x.x
x.x.x.x

no spaces, one ip on each line. Then saved through CMD_ADMIN_FILE_EDITOR

Is this okay, and will it stop the two brute force IPs' access?
 
Along the same lines... /usr/local/directadmin/scripts/custom/block_ip.sh

I created this as well on notepad, renamed appropriately, chmod 744

I can block IP's now.

Is THIS okay as well?
 
Back
Top