On Mon, Apr 03, 2000 at 04:31:53PM -0700, Sean W. Bravener wrote:
> I just had cable set up at home and I want to set up a firewall for
> security reasons.  however there is a proble with the whole setup
> and that is:  The address is configured via DHCP.  IS there a way to
> set up a firewall without knowing what the perm address is?  Also
> the ip address lease expires every wednesday (roughly)

You can start your ipchains script with something like this:

 LOCALIF=eth0
 LOCALIP=`ifconfig $LOCALIF | grep inet | cut -d : -f 2 | cut -d \  -f 1`
 LOCALMASK=`ifconfig $LOCALIF | grep Mask | cut -d : -f 4`
 LOCALNET="$LOCALIP/$LOCALMASK"

Just because the lease expires, does not mean the IP will change. Most
providers seem to be using 'sticky' IPs. If you want to be safe, you
could always run a cron job every so often and check if the IP has
changed. I worried about this too with DSL at first, but my IP only
has changed when I reboot, and stays the same for months at a time.

-- 
Hal B
[EMAIL PROTECTED]
--


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to