From nobody@FreeBSD.org  Thu Sep  1 17:14:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AD4D6106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Sep 2011 17:14:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9DDED8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Sep 2011 17:14:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p81HEsHM084323
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Sep 2011 17:14:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p81HEsIo084322;
	Thu, 1 Sep 2011 17:14:54 GMT
	(envelope-from nobody)
Message-Id: <201109011714.p81HEsIo084322@red.freebsd.org>
Date: Thu, 1 Sep 2011 17:14:54 GMT
From: Vitalic <artemrts@ukr.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Incorrect pfctl check of pf.conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160370
>Category:       kern
>Synopsis:       [pf] Incorrect pfctl check of pf.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-pf
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 01 17:20:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Sep  2 12:50:08 UTC 2011
>Originator:     Vitalic
>Release:        FreeBSD 9.0-BETA1 #0
>Organization:
>Environment:
xxxxxxxx# uname -a
FreeBSD xxxxxxxxx.xxxxxx.org 9.0-BETA1 FreeBSD 9.0-BETA1 #0: Thu Aug 25 20:41:58 EEST 2011     wishmaster@xxxxxxxx.xxxxxxx.org:/usr/obj/usr/src/sys/MY  i386

>Description:
I am using FreeBSD as firewall and router for LAN. Inet works via NAT.
Here is the small part (macros) of my pf.conf:

ext_if=tun0
int_if="bridge0"
......
and so on
......

With pfctl -n -f /etc/pf.conf no errors occur (but exactly should).
pfctl -sr and pfctl -sn shows loaded nat and firewall rules, but Inet
(via NAT) no working for LAN.

When I corrected my mistake and add quotes to ext_if="tun0" all works
fine.
>How-To-Repeat:
Miss quotes in macros definitions.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-pf 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 1 17:23:59 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160370 

From: Patrick Lamaiziere <patfbsd@davenulle.org>
To: bug-followup@FreeBSD.org <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: misc/160370: Incorrect pfctl check of pf.conf
Date: Fri, 2 Sep 2011 14:23:55 +0200

 Le Thu, 1 Sep 2011 17:14:54 GMT,
 Vitalic <artemrts@ukr.net> a écrit :
 
 Hi,
 
 > >Description:
 > I am using FreeBSD as firewall and router for LAN. Inet works via NAT.
 > Here is the small part (macros) of my pf.conf:
 > 
 > ext_if=tun0
 > int_if="bridge0"
 > ......
 > and so on
 > ......
 > 
 > With pfctl -n -f /etc/pf.conf no errors occur (but exactly should).
 > pfctl -sr and pfctl -sn shows loaded nat and firewall rules, but Inet
 > (via NAT) no working for LAN.
 
 It would be nice to have all the ruleset (pf.conf) and the output of
 pfctl while loading the rules (pfctl -vvvvv -n -f <file>)
 
 Thanks, regards.
>Unformatted:
