How to block ip addresses with iptables
I have an ip address attacking my server or taking up all my httpd connections so none of my sites work. In order to correct this you will want to use the netstat -n command to see the ip addresses connected to your server. Once you have the ip address you want to block you can use the following command to block them from accessing your server using iptables iptables -I INPUT 1 -s IP.ADD.RES.SS -j DROP -I INPUT 1 […]
Read MoreWriting Linux firewall rules w/ IPTables
The Linux kernel, since version 2.0, has included the capabilities to act as a firewall. In those days, the kernel module was called ipfwadm and was very simple. With the 2.2 kernel, the firewall module became called ipchains and had greater capabilities than its predecessor. Today, we have IPTables, the firewall module in the kernel since the 2.4 days. IPTables was built to take over ipchains, and includes improvements that now allow it to compete against some of the best […]
Read More