Subversion Repositories ALCASAR

Rev

Rev 615 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 615 Rev 618
Line 1... Line 1...
1
#/bin/sh
1
#/bin/sh
2
# $Id: alcasar-nf.sh 615 2011-05-24 21:47:25Z richard $
2
# $Id: alcasar-nf.sh 618 2011-05-26 21:35:31Z richard $
3
 
3
 
4
# active ou desactive le filtrage de protocoles réseau
4
# active ou desactive le filtrage de protocoles réseau
5
# enable or disable the network protocols filter
5
# enable or disable the network protocols filter
6
# by rexy
6
# by rexy
7
 
7
 
Line 40... Line 40...
40
	--off|-off) # disable protocols filter
40
	--off|-off) # disable protocols filter
41
		$SED "s?^PROTOCOLS_FILTERING.*?PROTOCOLS_FILTERING=off?g" $FIC_CONF
41
		$SED "s?^PROTOCOLS_FILTERING.*?PROTOCOLS_FILTERING=off?g" $FIC_CONF
42
		/usr/local/bin/alcasar-iptables.sh
42
		/usr/local/bin/alcasar-iptables.sh
43
		;;
43
		;;
44
	--conf|-conf)
44
	--conf|-conf)
45
		PROTOCOLS_FILTERING=`grep PROTOCOLS_FILTERING $FIC_CONF|cut -d"=" -f2`	# Network protocols filter (on/off)
-
 
46
		PROTOCOLS_FILTERING=${PROTOCOLS_FILTERING:=off}
-
 
47
		/usr/local/bin/alcasar-iptables.sh
45
		/usr/local/bin/alcasar-iptables.sh
48
		;;
46
		;;
49
	*)
47
	*)
50
		echo "Argument inconnu :$1";
48
		echo "Argument inconnu :$1";
51
		echo "$usage"
49
		echo "$usage"