IPTables Firewall Script

iptables firewall script is an Linux firewall based on the iptables software.
Download

IPTables Firewall Script Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Rick Dicaire
  • Publisher web site:
  • http://www.linuxguruz.com/iptables/scripts/rc.firewall_022.txt

IPTables Firewall Script Tags


IPTables Firewall Script Description

iptables firewall script is an Linux firewall based on the iptables software. iptables firewall script is an Linux firewall based on the iptables software.Sample:######## START FUNCTIONS #########scripthelp () {cat t restart > /dev/null 2>&1# Check every 5 minutes:# */5 * * * * /path/to/this/script restart > /dev/null 2>&1OLDIP=`$PROG -n -L INPUT| grep 6005|grep udp| cut -b55-|cut -f1 -d u`case $1 in start) if ; then echo -n "Starting firewall..." fireme elif ; then echo "FIREWALL IS UPDATED." fi;; restart)echo -n "Restarting firewall..."if ; then fireme elif ; then echo "FIREWALL IS UPDATED." else for i in DENIED_PORT_PRIV DENIED_PORT_UNPRIV_TCP DENIED_PORT_UNPRIV_UDP ONTHEFLY do $PROG -F $i $PROG -F INPUT $PROG -F FORWARD $PROG -X $i done firemefi;; refresh)echo -n "Resetting firewall..."if ;then fireme else for i in DENIED_PORT_PRIV DENIED_PORT_UNPRIV_TCP DENIED_PORT_UNPRIV_UDP ONTHEFLY do $PROG -F $i $PROG -F INPUT $PROG -F FORWARD $PROG -X $i done firemefi;; stop) for i in DENIED_PORT_PRIV DENIED_PORT_UNPRIV_TCP DENIED_PORT_UNPRIV_UDP ONTHEFLY do $PROG -F $i $PROG -F INPUT $PROG -F FORWARD $PROG -X $i done echo "Firewall stopped...";; *) echo scripthelp;;esacfi


IPTables Firewall Script Related Software