Subversion Repositories ALCASAR

Rev

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

Rev 2079 Rev 2183
Line 15... Line 15...
15
#	echo "$i : ${!i}" >> /tmp/debug-conup.txt
15
#	echo "$i : ${!i}" >> /tmp/debug-conup.txt
16
#done
16
#done
17
 
17
 
18
ipset del not_auth_yet $FRAMED_IP_ADDRESS
18
ipset del not_auth_yet $FRAMED_IP_ADDRESS
19
 
19
 
20
 
-
 
21
# Add user to the SET (depending on FILTER_ID)
20
# Add user to the SET (depending on FILTER_ID)
22
 
21
 
23
#FilterID : 12345678
22
# FilterID bit N°0 to 7
24
#1-> profile1
23
#0-> profile1
25
#2-> profile2
24
#1-> profile2
26
#3-> profile3
25
#2-> profile3
27
#4-> warn_user (if imputability report has been generated)
26
#3-> warn_user (if imputability report has been generated)
28
#6-> WL
27
#5-> WL
29
#7-> BL
28
#6-> BL
30
#8-> HAVP
29
#7-> HAVP
31
 
30
 
32
if [ ${FILTER_ID:7:1} -eq '1' ] #HAVP
31
if [ ${FILTER_ID:7:1} -eq '1' ] #HAVP
33
then 
32
then 
34
	set="havp"
33
	set="havp"
35
	if [ ${FILTER_ID:0:1} -eq '1' ]
34
	if [ ${FILTER_ID:0:1} -eq '1' ]
Line 51... Line 50...
51
	then 
50
	then 
52
		set_proto="proto_0";
51
		set_proto="proto_0";
53
	fi
52
	fi
54
fi
53
fi
55
 
54
 
56
 
-
 
57
if [ ${FILTER_ID:6:1} -eq '1' ] #HAVP_BL
55
if [ ${FILTER_ID:6:1} -eq '1' ] #HAVP_BL
58
then 
56
then 
59
	set="havp_bl"
57
	set="havp_bl"
60
	if [ ${FILTER_ID:0:1} -eq '1' ]
58
	if [ ${FILTER_ID:0:1} -eq '1' ]
61
	then 
59
	then 
Line 126... Line 124...
126
	then 
124
	then 
127
		set_proto="proto_0";
125
		set_proto="proto_0";
128
	fi
126
	fi
129
fi
127
fi
130
 
128
 
131
 
-
 
132
ipset add $set $FRAMED_IP_ADDRESS
129
ipset add $set $FRAMED_IP_ADDRESS
133
ipset add $set_proto $FRAMED_IP_ADDRESS
130
ipset add $set_proto $FRAMED_IP_ADDRESS