Web Server iptables Script

Here is an iptables script to set up a solid firewall on a CentOS web server. Remember to change the ip address on line 26 with your IP address, or you will lock yourself out of your own server! [bash]#!/bin/bash # Backup current iptables rules iptables-save > /etc/sysconfig/iptables-previous # Flush tables iptables -F # BlockContinue reading “Web Server iptables Script”