blob: 26a48b447704fe18c4553d488acdaa4a2c61c404 (
plain) (
tree)
|
|
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
|