source /etc/iptables/ipt-conf.sh source /etc/iptables/ipt-firewall.sh case $1 in start) ipt_clear ipt_tables case $TYPE in bridge) ## load bridge configuration source /etc/iptables/ipt-bridge.sh ## log everything else and drop ipt_log iptables-save > /etc/iptables/bridge.v4 ;; server) ## load server configuration source /etc/iptables/iptables-conf.sh ## log everything else and drop ipt_log iptables-save > /etc/iptables/server.v4 ;; esac ;; stop) ipt_clear ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 [start|stop|restart]" ;; esac