Subversion Repositories ALCASAR

Rev

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

Rev 2394 Rev 2402
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-conup.sh 2394 2017-08-27 13:28:59Z tom.houdayer $
3
# $Id: alcasar-conup.sh 2402 2017-08-28 18:06:19Z tom.houdayer $
4
#
4
#
5
# alcasar-conup.sh
5
# alcasar-conup.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 49... Line 49...
49
ipset add $set_proto $FRAMED_IP_ADDRESS
49
ipset add $set_proto $FRAMED_IP_ADDRESS
50
 
50
 
51
# Add user IP permanently to current_users.txt if no status_open_required
51
# Add user IP permanently to current_users.txt if no status_open_required
52
current_users_file="/var/tmp/havp/current_users.txt"
52
current_users_file="/var/tmp/havp/current_users.txt"
53
[ ! -e $current_users_file ] && touch $current_users_file && chown apache:apache $current_users_file
53
[ ! -e $current_users_file ] && touch $current_users_file && chown apache:apache $current_users_file
54
if [ ${FILTER_ID:4:1} == '0' ]; then	# no status_open_required
54
if [ ${FILTER_ID:4:1} == '1' ]; then	# no status_open_required
55
	echo "$FRAMED_IP_ADDRESS:PERM" >> $current_users_file
55
	echo "$FRAMED_IP_ADDRESS:PERM" >> $current_users_file
56
fi
56
fi
57
 
57
 
58
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
58
# Debug : show all the coova parse variables (+ $set_filter + $set_proto).
59
# see "/src/chilli.c" for the complete list of parse variables
59
# see "/src/chilli.c" for the complete list of parse variables