Rev 2973 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
#!/bin/sh
#
# $Id: alcasar-conup.sh 2886 2020-11-23 22:50:01Z rexy $
#
# alcasar-list-users.sh
# by Rexy
# This script is distributed under the Gnu General Public License (GPL)
# This script displays authenticated systems (users & @MAC) with their gw
# Ce script affiche les systèmes authentifiés (utilisateurs et @MAC) avec leur routeur
CONF_FILE="/usr/local/etc/alcasar.conf"
nb_gw=`grep ^WAN $CONF_FILE | wc -l`
for (( i = 0 ; i <= $nb_gw ; i++ ));do
gw="gw$i"
ip_list=`ipset l $gw|grep -v :`
for ip in $ip_list;do
echo "$ip $gw"
done
done