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.
> 
> 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
-- 
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)

Attachment: pgpYrBkRNUzjK.pgp
Description: PGP signature

Reply via email to