pf not loading the rules at boot

Dmitry Morozovsky marck at rinet.ru
Mon May 8 10:36:40 UTC 2006


On Mon, 8 May 2006, Dmitry Morozovsky wrote:

DM> BTW, ipfw says 
DM> 
DM> ipfw2 (+ipv6)
DM> 
DM> even when it is build without inet6, which is a bit misleading.

The following simple patch fixes this.

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
-------------- next part --------------
Index: sys/netinet/ip_fw2.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/ip_fw2.c,v
retrieving revision 1.106.2.12
diff -u -r1.106.2.12 ip_fw2.c
--- sys/netinet/ip_fw2.c	9 Mar 2006 13:42:44 -0000	1.106.2.12
+++ sys/netinet/ip_fw2.c	8 May 2006 10:36:16 -0000
@@ -4221,7 +4221,12 @@
 	}
 
 	ip_fw_default_rule = layer3_chain.rules;
-	printf("ipfw2 (+ipv6) initialized, divert %s, "
+	printf(
+#ifdef	NO_INET6
+		"ipfw2 initialized, divert %s, "
+#else
+		"ipfw2 (+ipv6) initialized, divert %s, "
+#endif
 		"rule-based forwarding "
 #ifdef IPFIREWALL_FORWARD
 		"enabled, "


More information about the freebsd-stable mailing list