Re: IP address and ipfwadm
On Mon, 22 Sep 1997, Lawrence wrote:
> I am using dialup PPP and need to run ipfwadm everytime I connect to my
> ISP. I know that I can put ipfwadm into /etc/rc file. What is the
> best/easy way to get the IP address other than using ifconfig or route
> (they are not good because the output is more than one line)?
>
> ipfwadm -A -a -P ****My IP address go here**** -D 0/0
$IPADDR=`ifconfig ppp0|perl -ne 'print $1 if (/inet addr:(\S+)\s/);'`
ipfwadm -A -a -P $IPADDR -D 0/0
whatever
---
Elie Rosenblum <erosenbl@nyx.net> That is not dead which can eternal lie,
<fnord@cosanostra.net> And with strange aeons even death may die.
Developer / Mercenary / System Administrator - _The Necromicon_
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: