Subversion Repositories ALCASAR

Rev

Rev 2965 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2965 Rev 2973
Line 11... Line 11...
11
 
11
 
12
CONF_FILE="/usr/local/etc/alcasar.conf"
12
CONF_FILE="/usr/local/etc/alcasar.conf"
13
 
13
 
14
nb_gw=`grep ^WAN $CONF_FILE | wc -l`
14
nb_gw=`grep ^WAN $CONF_FILE | wc -l`
15
for (( i = 0 ; i <= $nb_gw ; i++ ));do
15
for (( i = 0 ; i <= $nb_gw ; i++ ));do
16
	gw="gw$i"
16
	gw="gw$i"; gw_order=`expr $1 + 1`
17
	ip_list=`ipset l $gw|grep -v :`
17
	ip_list=`ipset l $gw|grep -v :`
18
	for ip in $ip_list;do
18
	for ip in $ip_list;do
19
		echo "$ip $gw"
19
		echo "$ip $gw_order"
20
	done	
20
	done	
21
done
21
done