Hi Tom,
Yes I am using net.link.bridge.pfil_member: 1. What is the effect of
this on the bridge interface.
No there is no such rules below in my ruleset
# is there a "set skip on {lo0, bridge0}" in here somewhere
Is PF by default doing a filter on bridge0? What is the effect of this
rule on the bridge?
Thanks for the suggestion on the ruleset. It is much appreciated.
Cheers,
Mark
-----Original Message-----
From: Tom Uffner [mailto:tom@uffner.com]
Sent: Friday, 16 May 2008 5:18 a.m.
To: Mark Pagulayan
Cc: freebsd-pf@freebsd.org
Subject: Re: FreeBSD PF 4.1 Inserts Flags S/SA Automatically to rules
Mark Pagulayan wrote:
uses
FreeBSD 7.0 uses PF 4.1 so a number of your rules could be expressed
more compactly and a few of them were redundant even w/ pf 4.0.
2
i assume you didn't change the default sysctl
"net.link.bridge.pfil_member: 1"
some.
not asking you to give up any sensitive / proprietary information. but
obviously we can't help w/ what you don't tell us...
========================================================================
i don't see any really obvious sources of state mismatches in the rules
you have posted. as i said though, many of them could be expressed more
concisely. PF will assume stuff like "to any", "from any", and now in
FreeBSD 7.0 (PF 4.1) "keep state [flags S/SA]" is implicit in any filter
rules that don't unset it.
# is there a "set skip on {lo0, bridge0}" in here somewhere
# or did you set net.link.bridge.pfil_bridge = 0
520,
pass log quick on $int_if
state
# redundant unless you want to tag, log, route or queue packets
differently
pass in quick on $ext_if to 224.0.0.0/4 allow-opts
pass in quick log on $ext_if from <dmz_router>
pass out quick log on $ext_if to <dmz_router>
state
pass in quick on $ext_if to <wide_open>
pass out quick on $ext_if from <wide_open>
pass out on $ext_if inet proto icmp icmp-type echoreq
pass in on $ext_if inet proto icmp to <ping> icmp-type echoreq
# redundant
block quick log on $ext_if proto udp to any port $blocked_udp
block in quick log on $ext_if proto tcp to any port $blocked_tcp_in
block out quick log on $ext_if proto tcp to any port $blocked_tcp_out
to
pass in quick on $ext_if proto tcp to {<tcp-25-in>, <firewall>} port=25
pass out quick on $ext_if proto tcp from {<tcp-25-out>, <firewall>} to
any port=25
pass out quick on $ext_if proto tcp from <tcp-53-out> to any port=53
pass out quick on $ext_if proto udp from <udp-53-out> to any port=53
state
pass in quick on $ext_if to <firewall>
pass out quick on $ext_if from <firewall>
# redundant
block quick log on $ext_if to any port=53
# redundant
block log quick on $ext_if proto tcp to any port=25
block out quick on $ext_if from <no_netaccount>
pass out quick on $ext_if from <external>
pass out quick on $ext_if from <unlimited> queue unlimited
pass out quick on $ext_if from <sponsored> queue sponsored
pass out quick on $ext_if from <premium> queue premium
pass out quick on $ext_if from <standard> queue standard
pass in quick on $ext_if to <svr-out>
========================================================================
they are counts of various filter/state related actions or events since
the firewall was started (or since they were last zeroed). i den't know
of
anywhere it is documented in detail, but most of the items should make
sense after reading pf.conf and having an idea of all the things pf can
do.
you can probably figure out which rules cause the state-mismatches by
setting misc debugging "pfctl -xm" and watching the syslog for messages
like:
kernel: pf: loose state match: ...
or
kernel: pf: BAD state: ...
kernel: pf: State failure on: |
_______________________________________________
freebsd-pf@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"
| Con Kolivas | Re: [REPORT] cfs-v4 vs sd-0.44 |
| Tim Tassonis | reiser4 for 2.6.27-rc1 |
| Eric Sandeen | [PATCH 4/4] ext4: call blkdev_issue_flush on fsync |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
git: | |
| Junichi Uekawa | Re: [ANNOUNCE] GIT 1.5.4 |
| Mark Levedahl | rc4 - make quick-install-doc is broken |
| Ingo Molnar | [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi... |
| Junio C Hamano | Re: Decompression speed: zip vs lzo |
| Richard Stallman | Real men don't attack straw men |
| Girish Venkatachalam | Thinkpad t61 OpenBSD support? |
| David Newman | setting dscp or tos bits |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
| Bruno Randolf | [PATCH] add macro for printing mac addresses |
| Ilpo Järvinen | [RFC PATCH 6/8] [NET]: uninline skb_trim, de-bloats |
| Jeff Kirsher | [NET-NEXT PATCH 0/9] e1000: update and cleanups |
