Firewall+Configuration


 * 1) !/bin/sh

echo "Script running, please wait while your system is configured..."

IPTABLES=/sbin/iptables MODPROBE=/sbin/modprobe INT_NET=192.168.1.0/24
 * 1) Variables

echo "Flushing Current Configuration..." $IPTABLES -F $IPTABLES -F -t nat $IPTABLES -X echo "Flushing Current Configuration...[OK]"
 * 1) Flush Existing IPTables Crap

echo "Loading Required Modules..." $MODPROBE ip_conntrack $MODPROBE iptable_nat $MODPROBE ip_conntrack_ftp $MODPROBE ip_nat_ftp echo "Loading Required Modules...[OK]"
 * 1) Load Iptables Required Modules

echo "Configuring NAT..." $IPTABLES -t nat -A POSTROUTING -s $INT_NET -o eth0 -j MASQUERADE echo "Configuring NAT...[OK]"
 * 1) NAT Rules

echo "Configuration Complete"