In theory, I agree with Derek on this practice. However, there are two
reasons that I don't do this:
1) If DNS get's hosed you can't re-run the firewall script
2) $IPADDR is a LOT less typing ;-) (ok, so I'm lazy)

Kenny

On Mon, 14 Aug 2000, Derek Martin wrote:

> On Mon, 14 Aug 2000, Kenneth E. Lussier wrote:
> 
> > I use variables in my firewall script. For my IP address, I use the
> > variable "IPADDR", and I define it at the beginning on the script as :
> > IPADDR="`ifconfig eth0 | grep  inet| cut -d : -f 2 | cut -d \  -f
> > 1`" . That way I don't have to go through the entire script and change it
> > every time my IP address changes. I also run the firewall script out of
> > cronttab every 1/2 hr to pick up any changes.
> 
> Even better... I use host names.  Mediaone assigns you a static host name,
> even if your IP changes.  If your script uses your hostname, you don't
> even need to use variables and don't need to figure out your IP address.
> 
> 
> 


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to