Hi, im in the process of developing an iptables firewall for personal use...Being a newbie in shell scripting im trying to adapt a code i found here:http://homelansecurity.sourceforge.net/script.php. thanks to [J. Howard.] but dont quite understand this block of code below especially the content of '$1' variable as related to the case statement found at the bottom of the script: ie
case '$1' in
'up')
firewall_up
;;.......
##########################
//to show the $1 i dont understand
if [ $EXTINT != "DISABLE" ]; then
EXTIP=$( ifconfig $EXTINT | grep 'inet[^6]' | sed 's/[a-zA-Z:]//g' | awk '{print $1}' )
WANBCAST=$( ifconfig $EXTINT | grep 'inet[^6]' | sed 's/[a-zA-Z:]//g' | awk '{print $2}' )
WANMASK=$( ifconfig $EXTINT | grep 'inet[^6]' | sed 's/[a-zA-Z:]//g' | awk '{print $3}' )
WAN=$EXTIP/$WANMASK
fi
many thanks in advance for any help