Bug 160370 - [pf] Incorrect pfctl check of pf.conf
Summary: [pf] Incorrect pfctl check of pf.conf
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-BETA1
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 18:20 UTC by Vitalic
Modified: 2018-10-19 21:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitalic 2011-09-01 18:20:08 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-09-01 18:23:59 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-pf

Over to maintainer(s).
Comment 2 patfbsd 2011-09-02 13:23:55 UTC
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.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:42 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 Kristof Provost freebsd_committer freebsd_triage 2018-10-19 21:18:54 UTC
This appears to be fixed in 12, and presumably earlier than that too.