Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2000 19:16:23 +0200
From:      Gerhard Sittig <Gerhard.Sittig@gmx.net>
To:        freebsd-security@FreeBSD.ORG
Subject:   Re: Dynamic rc.firewall
Message-ID:  <20001013191623.C25237@speedy.gsinet>
In-Reply-To: <5.0.0.25.2.20001013032255.00a8ee40@127.0.0.1>; from redwards@meccamediagroup.com on Fri, Oct 13, 2000 at 03:33:09AM -0600
References:  <5.0.0.25.2.20001013032255.00a8ee40@127.0.0.1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 13, 2000 at 03:33 -0600, Rolf Edwards wrote:
> 
> How can I have rc.firewall automatically pull in ip, netmask
> and network numbers from the currently configured interfaces.
> 
> Lets say I was to supply 'xl0' and have it extract the
> information from ifconfig.  I started a perl program, but I
> don't have enough documentation available at the moment to
> actually extract the data from what is returned.

I don't know whether ipfw has a similar "alias", but in ipf
(which is available in FreeBSD, too) you can specify address
0.0.0.0/32 in your rules when you mean "my current address on
this interface".  Just make sure to issue "ipf -y" whenever the
interface address changes (ppp.linkup or the appropriate dhcp
client hook).


virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
Gerhard Sittig   true | mail -s "get gpg key" Gerhard.Sittig@gmx.net
-- 
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001013191623.C25237>