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.


Kenny 

On Sun, 13 Aug 2000, Charles Farinella wrote:

> 
> I have the following line in my rc.firewall script:
> ==/usr/sbin/ipmasqadm portfw -a -P tcp -L (external ipaddress) 81 -R
> (internal ipaddress) 80==
> 
> The external address connects to Mediaone, the internal address to a small
> network.
> 
> What will happen when Mediaone changes my address, what will I have to do
> to fix it, and can I change this line to anticipate the change?
> 
> C
> 
> 


**********************************************************
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