rendered paste body#! /bin/sh## firewall Start/Stop iptables firewall## Author: Mark A. LaDoux <mark@haktstudios.com>## Released to the Public Domainset -ePATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binSCRIPTNAME=/etc/init.d/$NAME# Gracefully exit if the package has been removed.test -x $DAEMON || exit 0case "$1" in start) echo -n "Starting iptables firewall" iptables-restore < /etc/firewall.conf echo "." ;; stop) echo -n "Stopping iptables firewall" iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT echo "." ;; save) echo -n "Saving iptables firewall configuration" rm -rf /etc/firewall.conf iptables-save > /etc/firewall.conf echo "." ;; *) echo "Usage: $SCRIPTNAME {start|stop|save}" >&2 exit 1 ;;esacexit 0