iptables: How to create a rule for a single website that does not apply to other websites?

Posted by Kris on Server Fault See other posts from Server Fault or by Kris
Published on 2012-03-26T16:22:09Z Indexed on 2012/03/26 17:32 UTC
Read the original article Hit count: 208

Filed under:
|

Virtual Dedicated Server hosts 10 websites. 1 firewall made with iptables

If one of those 10 websites gets hit by too many ping requests coming from one IP address, how do I limit or drop it without dropping it for the other 9 websites?

Do I create a firewall for every website ? If so, how? Or is it better to change my rules? If so, how? Thank you.

Original question was posted here iptables: what's best practice when there're several websites but you want to use a rule for a single website? but it was too vague.
Let me know if more info is needed.

© Server Fault or respective owner

Related posts about firewall

Related posts about iptables