Re: Dynamic IP Address
On Mon, Mar 26, 2001 at 12:17:01PM +0100, Michael Boyd wrote:
> 1. I obtain a dynamic IP address from my ISP. How can I include this in
> my ruleset? I have experimented with...
>
> $dynipadd="`/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print$2}' |
> sed -e 's/.*://'`"
> which I found on a website
> ... from the command line. The last part gave me some trouble.
Maybe...
LOCALIP=ppp0
LOCALIP=`ifconfig $LOCALIF |grep inet |cut -d : -f 2 |cut -d \ -f 1`
Have a nice day ;-)
TooManySecrets
Reply to: