Subversion Repositories ALCASAR

Rev

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

Rev 2376 Rev 2394
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-condown.sh 2376 2017-08-16 18:46:50Z tom.houdayer $
3
# $Id: alcasar-condown.sh 2394 2017-08-27 13:28:59Z tom.houdayer $
4
#
4
#
5
# alcasar-condown.sh
5
# alcasar-condown.sh
6
# by Rexy
6
# by Rexy
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 18... Line 18...
18
# FilterID Byte N°0 to 7
18
# FilterID Byte N°0 to 7
19
#  0: profile_1 (WEB)
19
#  0: profile_1 (WEB)
20
#  1: profile_2 (WEB + Mail + Remote access)
20
#  1: profile_2 (WEB + Mail + Remote access)
21
#  2: profile_3 (Custom)
21
#  2: profile_3 (Custom)
22
#  3: warn_user (if imputability report has been generated)
22
#  3: warn_user (if imputability report has been generated)
-
 
23
#  4: status_open_required (check user activity through status page)
23
#  5: WL
24
#  5: WL
24
#  6: BL
25
#  6: BL
25
#  7: HAVP
26
#  7: HAVP
26
 
27
 
27
if [ ${FILTER_ID:5:1} == '1' ]; then	# HAVP_WL
28
if [ ${FILTER_ID:5:1} == '1' ]; then	# HAVP_WL
Line 47... Line 48...
47
ipset del $set_filter $FRAMED_IP_ADDRESS
48
ipset del $set_filter $FRAMED_IP_ADDRESS
48
ipset del $set_proto $FRAMED_IP_ADDRESS
49
ipset del $set_proto $FRAMED_IP_ADDRESS
49
 
50
 
50
# Remove IP address from active users
51
# Remove IP address from active users
51
current_users_file="/var/tmp/havp/current_users.txt"
52
current_users_file="/var/tmp/havp/current_users.txt"
52
[ -e $current_users_file ] && sed -i "/^$FRAMED_IP_ADDRESS\$/d" $current_users_file
53
[ -e $current_users_file ] && sed -i "/^$FRAMED_IP_ADDRESS:/d" $current_users_file
53
 
54
 
54
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
55
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
55
# see "/src/chilli.c" for the complete list of parse variables
56
# see "/src/chilli.c" for the complete list of parse variables
56
#echo "-----------------------------------------------" >> /tmp/debug-condown.txt
57
#echo "-----------------------------------------------" >> /tmp/debug-condown.txt
57
#echo `date` >> /tmp/debug-condown.txt
58
#echo `date` >> /tmp/debug-condown.txt