How to copy iptables rules from one server to another

If you want to copy iptables rules from one linux server to another linux server its really simple 1) Save iptables rules from source server by running [crayon-5a37bb07d6bb9682324605/] 2) Copy that file to target server and run [crayon-5a37bb07d6bbf697057925/]   … [Read more...]

Iptables firewall on Debian

Iptables provide filtering, NAT and other packet mangling. Viewing current configuration [crayon-5a37bb07d72c8587670258/] Output will be like [crayon-5a37bb07d72cc055973861/] Storing iptables rules in a file [crayon-5a37bb07d72ce847564940/] [crayon-5a37bb07d72d0898070073/] Activate these new rules: [crayon-5a37bb07d72d2213303072/] See the … [Read more...]

Uninstalling apf firewall

All you need is to run following commands [crayon-5a37bb07d79b2177215142/] [crayon-5a37bb07d79b6391503395/] [crayon-5a37bb07d79b8799690517/] [crayon-5a37bb07d79b9695065044/] [crayon-5a37bb07d79bb981103512/] [crayon-5a37bb07d79bc918626040/] … [Read more...]

APF: unable to load iptables module (ip_tables), aborting

If you are getting error on apf [crayon-5a37bb07d7c3a211680222/] It means, your kernel is compiled with iptables statically instead of as a module, and you will need to change this in the /etc/apf/conf.apf [crayon-5a37bb07d7c3d324527923/] So open /etc/apf/conf.apf file and modify it restart the apf service and you wont see that error. … [Read more...]

Install APF firewall in Linux

firewall is always very important for the security of your system, specially if you are running a web server running very popular websites then firewall is the life of your server. Previously I explained how to install CSF firewall, and here is the tutorial for APF which is another great firewall available. [crayon-5a37bb07d7e84349059993/] … [Read more...]

Ports to configure in firewall for Plesk

Previously I explained the list of ports to configure in firewall if you are running direct admin in your web servers. Ports to configure in firewall for Directadmin Here is the list of ports which are required to configure if you are running plesk control panel. [crayon-5a37bb07d80c5270733254/] In case you face problem, feel free to put it in comments. … [Read more...]

CSF on DirectAdmin

There was a time when I was about to select a firewall for a server which had DirectAdmin installed and I choosed CSF. CSF is one of the best firewall available for hosting servers. Installation of CSF in directAdmin is really easy, just download csf. Extract it and Install it Just a 3 step installation. Login to server via ssh, Download csf using wget Run … [Read more...]

perl error in CSF installation

[crayon-5a37bb07d8367856728877/] The error is because of perl module installation, which is the basic requirement of csf and the solution is [crayon-5a37bb07d836c918652297/] … [Read more...]

ip_conntrack table is full and dropping packets

Last day one of our server had an attack, attack was not so big but still server was unresponsive because of this. After some research I found that this is because of iptables which are being load while handling so much traffic. Then I found a good article on the same issue which you can read by clicking below linking here. … [Read more...]