Subversion Repositories ALCASAR

Rev

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

Rev 2960 Rev 2979
Line 12... Line 12...
12
EXTIF=`grep ^EXTIF= $CONF_FILE|cut -d"=" -f2`
12
EXTIF=`grep ^EXTIF= $CONF_FILE|cut -d"=" -f2`
13
PUBLIC_IP=`grep ^PUBLIC_IP= $CONF_FILE|cut -d"=" -f2`
13
PUBLIC_IP=`grep ^PUBLIC_IP= $CONF_FILE|cut -d"=" -f2`
14
GW1=`grep ^GW= $CONF_FILE|cut -d"=" -f2`
14
GW1=`grep ^GW= $CONF_FILE|cut -d"=" -f2`
15
MTU=`grep ^PUBLIC_MTU= $CONF_FILE|cut -d"=" -f2`
15
MTU=`grep ^PUBLIC_MTU= $CONF_FILE|cut -d"=" -f2`
16
MULTIWAN=`grep ^MULTIWAN= $CONF_FILE|cut -d"=" -f2`
16
MULTIWAN=`grep ^MULTIWAN= $CONF_FILE|cut -d"=" -f2`
17
MULTIWAN=${MULTIWAN:=Off}
17
MULTIWAN=${MULTIWAN:=off}
18
NET="`ipcalc -n $PUBLIC_IP | cut -d"=" -f2`/`ipcalc -p $PUBLIC_IP | cut -d"=" -f2`"
18
NET="`ipcalc -n $PUBLIC_IP | cut -d"=" -f2`/`ipcalc -p $PUBLIC_IP | cut -d"=" -f2`"
19
IP=`echo $PUBLIC_IP | cut -d"/" -f1`
19
IP=`echo $PUBLIC_IP | cut -d"/" -f1`
20
PRIVATE_IP_MASK=`grep ^PRIVATE_IP $CONF_FILE | cut -d"=" -f2`
20
PRIVATE_IP_MASK=`grep ^PRIVATE_IP $CONF_FILE | cut -d"=" -f2`
21
PRIVATE_IP=`echo $PRIVATE_IP_MASK | cut -d"/" -f1`
21
PRIVATE_IP=`echo $PRIVATE_IP_MASK | cut -d"/" -f1`
22
PRIVATE_NETMASK=`echo $PRIVATE_IP_MASK | cut -d"/" -f2`
22
PRIVATE_NETMASK=`echo $PRIVATE_IP_MASK | cut -d"/" -f2`