116,7 → 116,9 |
then |
logger "alcasar-watchdog $noresponse_ip ($noresponse_mac) can't be contact. Alcasar disconnects the user ($noresponse_user)." |
/usr/sbin/chilli_query logout $noresponse_mac |
/usr/sbin/chilli_query dhcp-release $noresponse_mac # release dhcp for mac_auth equipment |
if [[ $noresponse_user == $noresponse_mac ]] # for @mac auth equipments, we must remove the arp entry |
then /usr/sbin/chilli_query dhcp-release $noresponse_mac |
fi |
fi |
done |
rm $tmp_file |
135,11 → 137,7 |
# store @IP of quiet equipments |
if [[ $(expr $arp_reply) -eq 0 ]] |
then |
PTN='^[[:xdigit:]][[:xdigit:]]-[[:xdigit:]][[:xdigit:]]-[[:xdigit:]][[:xdigit:]]-[[:xdigit:]][[:xdigit:]]-[[:xdigit:]][[:xdigit:]]-[[:xdigit:]][[:xdigit:]]$' |
if [[ $(expr $active_user : $PTN) -eq 0 ]] # don't process @mac auth equipments |
then |
echo "$active_ip $active_mac $active_user" >> $tmp_file |
fi |
echo "$active_ip $active_mac $active_user" >> $tmp_file |
fi |
# disconnect users whose equipement is usurped (@MAC) |
if [[ $(expr $arp_reply) -gt 2 ]] |