PDA

View Full Version : My Ip is constandly blacklisted



pcoeman
09-09-2009, 11:22 AM
Hi all,

I have a connection at home with a fixed IP address.
That IP address is in the ip_whitelist
The ip_blacklist is empty
Every few days by login DA blacklist me.
My IP is at that moment in both the files: blacklisted and whitelisted...
Via SSH I change the blacklisted file and I can login again.
I tried to change the "Blacklist IPs for excessive login attempts" value from 10 to 25 or more
DA tell me when I do that: "Your request will be executed within 1 minute".
But nothing changed...
1. Can I change that manualy after login via ssh?
2. Is this a bug?
3. Any ideas?

System: Debian
Da version 1.33.7

Thanks.

DirectAdmin Support
09-09-2009, 04:06 PM
Hello,

First, regarding nothing changing, ensure the dataskq is running every minute via cron:
http://help.directadmin.com/item.php?id=107

As for your IP ending up in the blacklist, make sure there are no extra spaces in the ip_whitelist file. For example, it's 1 IP per line... say your IP is "1.2.3.4" (without quotes)... if you had entered "1.2.3.4 " with a space at the end, then the check wouldn't match, and you'd be allowed to get blacklisted.

John

pcoeman
09-10-2009, 03:01 AM
Hi John

The whitelist is 12 bytes. The IP address is 12 characters as in: 12.123.12.12. I put a cr now on the end to test. The file is now 13 bytes.


The file task.queue is created if I change the value in 'Blacklist IPs for excessive login attempts', 33 bytes long and is: 'action=directadmin&value=restart'

After a minute or so it is indeed gone. In the directadmin logfile I see the line:
directadmin restarted

But nothing changed on the settings...