Line 9... |
Line 9... |
9 |
|
9 |
|
10 |
# Debug : show all the coova parse variables. There are declared in /src/chilli.c
|
10 |
# Debug : show all the coova parse variables. There are declared in /src/chilli.c
|
11 |
#echo "parse coova variables" > /tmp/debug-conup.txt
|
11 |
#echo "parse coova variables" > /tmp/debug-conup.txt
|
12 |
#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
|
12 |
#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
|
13 |
#do
|
13 |
#do
|
14 |
# echo "$i : ${!i}" >> /tmp/debug-conup.txt
|
14 |
# echo "$i : ${!i}" >> /tmp/debug-condown.txt
|
15 |
#done
|
15 |
#done
|
16 |
|
16 |
|
17 |
# Exemple : Remove user IP from the set
|
- |
|
18 |
# ipset del authenticated_ip $FRAMED_IP_ADDRESS
|
- |
|
19 |
|
17 |
# Remove user from the SET (function of his filtering level)
|
- |
|
18 |
|
- |
|
19 |
case $FILTER_ID in
|
- |
|
20 |
# HAVP
|
- |
|
21 |
"00000001")
|
- |
|
22 |
set="havp_set"
|
- |
|
23 |
;;
|
- |
|
24 |
# HAVP + Blacklist
|
- |
|
25 |
"00000011")
|
- |
|
26 |
set="havp_bl_set"
|
- |
|
27 |
;;
|
- |
|
28 |
# HAVP + Whitelist
|
- |
|
29 |
"00000101")
|
- |
|
30 |
set="havp_wl_set"
|
- |
|
31 |
;;
|
- |
|
32 |
# No filtering
|
- |
|
33 |
*)
|
- |
|
34 |
set="no_filtering_set"
|
- |
|
35 |
;;
|
- |
|
36 |
esac
|
- |
|
37 |
ipset del $set $FRAMED_IP_ADDRESS
|
- |
|
38 |
|