Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2975 → Rev 2974

/scripts/alcasar-list-ip_gw.sh
1,10 → 1,12
#!/bin/sh
#
# alcasar-list-ip_gw.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
# 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"
11,7 → 13,7
 
nb_gw=`grep ^WAN $CONF_FILE | wc -l`
for (( i = 0 ; i <= $nb_gw ; i++ ));do
gw="gw$i"; gw_order=`expr $i + 1`
gw="gw$i"; gw_order=`expr $1 + 1`
ip_list=`ipset l $gw|grep -v :`
for ip in $ip_list;do
echo "$ip $gw_order"