Subversion Repositories ALCASAR

Rev

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

Rev 2262 Rev 2376
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-condown.sh 2262 2017-05-29 20:19:03Z tom.houdayer $
3
# $Id: alcasar-condown.sh 2376 2017-08-16 18:46:50Z 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 45... Line 45...
45
fi
45
fi
46
 
46
 
47
ipset del $set_filter $FRAMED_IP_ADDRESS
47
ipset del $set_filter $FRAMED_IP_ADDRESS
48
ipset del $set_proto $FRAMED_IP_ADDRESS
48
ipset del $set_proto $FRAMED_IP_ADDRESS
49
 
49
 
-
 
50
# Remove IP address from active users
-
 
51
current_users_file="/var/tmp/havp/current_users.txt"
-
 
52
[ -e $current_users_file ] && sed -i "/^$FRAMED_IP_ADDRESS\$/d" $current_users_file
-
 
53
 
50
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
54
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
51
# see "/src/chilli.c" for the complete list of parse variables
55
# see "/src/chilli.c" for the complete list of parse variables
52
#echo "-----------------------------------------------" >> /tmp/debug-condown.txt
56
#echo "-----------------------------------------------" >> /tmp/debug-condown.txt
53
#echo `date` >> /tmp/debug-condown.txt
57
#echo `date` >> /tmp/debug-condown.txt
54
#for i in LAYER3 DEV NET MASK ADDR USER_NAME NAS_IP_ADDRESS SERVICE_TYPE FRAMED_IP_ADDRESS FILTER_ID STATE CLASS CUI SESSION_TIMEOUT IDLE_TIMEOUT CALLING_STATION_ID CALLED_STATION_ID NAS_ID NAS_PORT_TYPE ACCT_SESSION_ID ACCT_INTERIM_INTERVAL WISPR_LOCATION_ID WISPR_LOCATION_NAME WISPR_BANDWIDTH_MAX_UP WISPR_BANDWIDTH_MAX_DOWN WISPR-SESSION_TERMINATE_TIME CHILLISPOT_MAX_INPUT_OCTETS CHILLISPOT_MAX_OUTPUT_OCTETS CHILLISPOT_MAX_TOTAL_OCTETS INPUT_OCTETS OUTPUT_OCTETS SESSION_TIME IDLE_TIME LOCATION OLD_LOCATION TERMINATE_CAUSE
58
#for i in LAYER3 DEV NET MASK ADDR USER_NAME NAS_IP_ADDRESS SERVICE_TYPE FRAMED_IP_ADDRESS FILTER_ID STATE CLASS CUI SESSION_TIMEOUT IDLE_TIMEOUT CALLING_STATION_ID CALLED_STATION_ID NAS_ID NAS_PORT_TYPE ACCT_SESSION_ID ACCT_INTERIM_INTERVAL WISPR_LOCATION_ID WISPR_LOCATION_NAME WISPR_BANDWIDTH_MAX_UP WISPR_BANDWIDTH_MAX_DOWN WISPR-SESSION_TERMINATE_TIME CHILLISPOT_MAX_INPUT_OCTETS CHILLISPOT_MAX_OUTPUT_OCTETS CHILLISPOT_MAX_TOTAL_OCTETS INPUT_OCTETS OUTPUT_OCTETS SESSION_TIME IDLE_TIME LOCATION OLD_LOCATION TERMINATE_CAUSE