Skip to content
Snippets Groups Projects
iptables-rules 448 B
Newer Older
Alberto LIVIO BECCARIA's avatar
Alberto LIVIO BECCARIA committed
#!/bin/bash

stop() {
	#/etc/init.d/iptables-esame stop
	#/etc/init.d/iptables restart
	# se facciamo reboot tutte le volte questo non serve, ma si potrebbe prevedere
        #/usr/sbin/iptables-restore </etc/sysconfig/iptables
    :
}

start() {
	/usr/sbin/iptables-restore </local/iptables
}

case "$1" in
'start')
	start
	;;
'stop')
	stop
	;;
'restart')
	stop
	start
	;;
*)
	echo "Usage: $0 { start | stop | restart }";
	exit 1;
	;;
esac
exit 0