sudo ipchains -P forward DENY sudo ipchains -A forward -s 192.168.0.0/24 -j MASQ echo -n "start: "; date before=`date +'%s'` sudo wvdial dn-kawasaki echo -n "end: "; date after=`date +'%s'` elapsed=`expr $after - $before` sec=`expr $elapsed % 60` min=`expr $elapsed / 60 % 60` hour=`expr $elapsed / 3600` printf "elapsed: %02d:%02d:%02d\n" $hour $min $sec