about summary refs log blame commit diff stats
path: root/core/conf/rc.d/iptables
blob: 26a48b447704fe18c4553d488acdaa4a2c61c404 (plain) (tree)
1
2
3
4
5
 

                                    
 
          
































                                                             
    
source /etc/iptables/ipt-conf.sh
source /etc/iptables/ipt-firewall.sh

case $1 in
	start)
		ipt_clear
		ipt_tables
		case $TYPE in
		    bridge)
			source /etc/iptables/ipt-bridge.sh

			## log everything else and drop
			ipt_log

			iptables-save > /etc/iptables/net.v4
			;;
		    server)
			source /etc/iptables/iptables-conf.sh

			## log everything else and drop
			iptables_log

			iptables-save > /etc/iptables/net.v4
			;;
		esac
		;;
	stop)

		ipt_clear
		;;
	restart)
		$0 stop
		$0 start
		;;
	*)
		echo "Usage: $0 [start|stop|restart]"
		;;
esac