/scripts/alcasar-list-ip_gw.sh |
---|
1,8 → 1,6 |
#!/bin/sh |
# |
# $Id: alcasar-conup.sh 2886 2020-11-23 22:50:01Z rexy $ |
# |
# alcasar-list-users.sh |
# alcasar-list-ip_gw.sh |
# by Rexy |
# This script is distributed under the Gnu General Public License (GPL) |
13,7 → 11,7 |
nb_gw=`grep ^WAN $CONF_FILE | wc -l` |
for (( i = 0 ; i <= $nb_gw ; i++ ));do |
gw="gw$i"; gw_order=`expr $1 + 1` |
gw="gw$i"; gw_order=`expr $i + 1` |
ip_list=`ipset l $gw|grep -v :` |
for ip in $ip_list;do |
echo "$ip $gw_order" |