Date: 16 Jan 2006 09:48:49 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: pfgshield-freebsd@yahoo.com Cc: freebsd-questions@FreeBSD.org Subject: Re: /etc/rc.firewall and dhclient(8) Message-ID: <44slrofctq.fsf@be-well.ilk.org> In-Reply-To: <20060114182614.85884.qmail@web32911.mail.mud.yahoo.com> References: <20060114182614.85884.qmail@web32911.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<pfgshield-freebsd@yahoo.com> writes: > I activated my firewall "client" configuration on my desktop that uses dhcp for > a cable modem. > > Everything works fine (I even enabled ping), however, everytime I shutdown and > restart the modem I find myself having to check /var/db/dhclient.leases.xl0 to > edit /etc/rc.firewall to change $net and $ip. > > Is there an easy way to automate this? That's what the "me" keyword is for in the ipfw syntax. Using this would require you to create a slightly customised version of the firewall rules file. Alternatively, you could have dhclient write the parameters out to a file that the firewall script would read in. dhclient-script(8) has "hooks" for this.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44slrofctq.fsf>