> I use that fun awk stuff since my dialup is a dynamically assigned IP > address. >
why not just use the arguments passed to /etc/ppp/ip-{up,down} by pppd? They are documented in the comments at the beginning of the scripts included with the ppp .deb package: # $Id: ip-up,v 1.1 1996/01/31 21:25:59 alvar Exp $ # # This script is run by the pppd after the link is established. # It should be used to add routes, set IP address, run the mailq # etc. # # This script is called with the following arguments: # Arg Name Example # $1 Interface name ppp0 # $2 The tty ttyS1 # $3 The link speed 38400 # $4 Local IP number 12.34.56.78 # $5 Peer IP number 12.34.56.99 > PPP_ADDR=`ifconfig ppp0|grep inet|awk -F: '{print $2}'|awk -F " " '{print > $1}'` > ipfwadm -F -p deny > ipfwadm -I -f > ipfwadm -I -a reject -b -P icmp -S 0.0.0.0/0 -D ${PPP_ADDR}/32 > ipfwadm -I -a reject -b -P tcp -S 0.0.0.0/0 -D ${PPP_ADDR}/32 1:1023 > ipfwadm -I -a reject -b -P udp -S 0.0.0.0/0 -D ${PPP_ADDR}/32 1:1023 becomes: ipfwadm -F -p deny ipfwadm -I -f ipfwadm -I -a reject -b -P icmp -S 0.0.0.0/0 -D $4/32 ipfwadm -I -a reject -b -P tcp -S 0.0.0.0/0 -D $4/32 1:1023 ipfwadm -I -a reject -b -P udp -S 0.0.0.0/0 -D $4/32 1:1023 craig -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .