From owner-freebsd-stable@FreeBSD.ORG Sun Jan 28 01:06:41 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4210C16A582 for ; Sun, 28 Jan 2007 01:06:41 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id CF4D913C4A5 for ; Sun, 28 Jan 2007 01:06:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id l0S16bCH019409; Sun, 28 Jan 2007 02:06:37 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id ADDA1B828; Sun, 28 Jan 2007 02:06:36 +0100 (CET) Date: Sun, 28 Jan 2007 02:06:36 +0100 From: Roland Smith To: Pete French Message-ID: <20070128010636.GA12106@slackbox.xs4all.nl> Mail-Followup-To: Pete French , freebsd-stable@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org Subject: Re: impossible rc.d ordering problem with stf and pf ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2007 01:06:41 -0000 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 27, 2007 at 06:23:27PM +0000, Pete French wrote: > Am trying to solve a little problem with 'pf'. I have a ruleset which > has some firewall rules for the IPv6 interface stf0. This works fine, > except when I rreboot the machine, as the pf script is run before the > network_ipv6 script - so stf0 does not exist. but I cannot work out > how to arrange for stf0 to be created before the pf script is run - as > network_ipv6 requires 'routing', but the pf script says it must be run > before 'routing', if I am reading the 'REQUIRE' and 'BEFORE' lines > correctly. >=20 > Any solutions ? Just a thought: Put the IPv6 specific rules in a separate file. Put a script in /usr/local/etc/rc.d that REQUIREs network_ipv6. In this script, use pfctl to load the IPv6 specific rules. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) iD8DBQFFu/ccEnfvsMMhpyURAmRgAKCbdS7ztGhhKkULJKs2x6zZpvT4CQCgnng7 Kc9+OnMF4yN+wAOgqYNXByI= =m03u -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--