Customer IP's blocked after false positive

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Customer IP's blocked after false positive

Unread post by BerArt »

I received two false positive messages on one of our servers that did block two customer IP numbers and put them in the hosts.deny (all)

I put them both in the ASL white list and removed them from hosts.deny (I double checked this) than I runned asl –f and I could see that the IP’s (fixed) in the ASL white list. Still my customers cannot access Plesk nor can see there site so they are still fully blocked. What am I missing? Why are they still blocked? (I aslo did send a support ticket to Scott)

Thx! :)
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Do you have the ASL GUI for Plesk installed? If so, go in there and click on the block list and see if they're still listed.

If they're not, try a manual restart of OSSEC

Code: Select all

#/var/ossec/bin/ossec-control restart
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Yes, I can see them in the block list but behind the IP is the text "Whitelisted" and I can also see them in the Whitelist section. I had this problem before, and then a Whitelist and removal from hosts.deny solved the problem. Now it doesn’t anymore :( still the two IP are blocked completely.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Image
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

I can see the two IP are still listed in IPtables, I thought if you remove it from hosts.deny and whitelist it on ASL it also would be removed from IPtables? Is it posible that this is the problem?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

the correct way to remove them would be to use the gui, or run asl --unblock <IP>
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Do I have to run asl -s -f after the --unblock?

//edit I guess not problem is solved, Thx! Scott :)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

No, you dont need to run -s -f after that. --unblock <IP> is exactly what the GUI calls when you unblock something. Its more efficient than -s -f since it just removes the shuns from the shun database, and then extracts them from firewall policy. It would also get around any high-load issues caused by an OSSEC restarts.

--whitelist is different, it requires an OSSEC and Denyhosts restart which would spawn hundreds (or thousands) of configuration events, and that would mean high load until its done.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Ok clear, so I use --unblock in the future :)
Post Reply