137,7 → 137,7 |
# disconnect users whose equipement is usurped. For example, if there are 2 same @MAC it will make 2 lines in output. |
if [[ $(expr $arp_reply) -gt 1 ]] |
then |
echo "$(date "+[%x-%X] : ")alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." >> /var/Save/security/watchdog.log |
echo "[$(date +"%Y-%m-%d %H:%M:%S")] : alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." >> /var/Save/security/watchdog.log |
logger "alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." |
/usr/sbin/chilli_query logout $active_mac |
chmod 644 /var/Save/security/watchdog.log |