Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have OSSEC installed on some web servers running behind Amazon ELB. The problem is that when the active response triggers it blocks the IP address of the load balancer. Is there any way to use the active response to block clients sending suspect requests when OSSEC is behind a load balancer?

Thanks

share|improve this question
    
Did you enable X-Forwarded-For to get the 'real' client IP in web servers log? –  quanta Aug 10 '11 at 8:48
add comment

1 Answer

You can add the IP(s) to the white list in ossec.conf. That file is typically in /var/ossec/etc/ossec.conf.

<global>
<white_list>ip goes here</white_list>
...
</global>

Then restart ossec with /etc/init.d/ossec restart.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.