Securing Kloxo lxadmin with iptables firewall

Iptables is a default firewall available in all linux flavors, and widely used to secure servers. If you are running kloxo, and want to use iptables to secure your box, then here are the basic rules which you can add in your iptables.

You can simply download this from here, and then run

If you have read my article on protection from SYN flooding DoS attack, then you can include those rules in iptables as well.

You can download firewall file including those rules from here.

If you are running slave server then add following to master

and this to slave

NOTE: Replace SLAVE_IP with your Slave server IP and replace MASTER_IP with your Master server IP.

Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.


  1. Thank you this is a very useful article for securing CentOS VPSes.
    One question – how do we get this script to run automatically in the event the VPS is reboot?

  2. What is the solution when schedular backup upload to remote server blocked by firewall. after disabling firewall backup to remote server works perfectly.


Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.



Previous Post:
Next Post: