<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6607</id>
	<title>Nabble - freebsd-pf</title>
	<updated>2009-12-15T12:33:24Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/freebsd-pf-f6607.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/freebsd-pf-f6607.html" />
	<subtitle type="html">Technical discussion and general questions about packet filter (pf)</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26801321</id>
	<title>Re: Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-15T12:33:24Z</published>
	<updated>2009-12-15T12:33:24Z</updated>
	<author>
		<name>Peter Maxwell-3</name>
	</author>
	<content type="html">2009/12/15 Linda Messerschmidt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801321&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linda.messerschmidt@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 11:08 AM, Peter Maxwell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801321&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm pretty sure you can run tcpdump against a packet capture from the
&lt;br&gt;&amp;gt;&amp;gt; pflog interface on the pf box; that will include fields like
&lt;br&gt;&amp;gt;&amp;gt; block/pass and rule number for each packet filtered.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have done that with &amp;quot;log&amp;quot; on all block rules.  The packets shown as
&lt;br&gt;&amp;gt; missing are *not* present in the dump when I do, so as far as I can
&lt;br&gt;&amp;gt; tell they are not being dropped by a filter rule.  Which makes sense,
&lt;br&gt;&amp;gt; since none of the few block rules we have would touch packets in the
&lt;br&gt;&amp;gt; middle of an established connection that was permitted.
&lt;/div&gt;&lt;br&gt;Although it's not likely to be causing the problem (the default
&lt;br&gt;&amp;quot;flags&amp;quot; on tcp rules are S/SA, which should exclude this possibility),
&lt;br&gt;I'd check that the implicit pass rule isn't getting hit by the web
&lt;br&gt;traffic. &amp;nbsp;Add in an explicit &amp;quot;pass all&amp;quot; rule at the start and set the
&lt;br&gt;log keyword on it. &amp;nbsp;Make sure *none* of the web traffic is hitting
&lt;br&gt;this rule.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For comparison, endless streams of packets from those DNS guys we
&lt;br&gt;&amp;gt; block *are* present in the tcpdump output, exactly as you describe, so
&lt;br&gt;&amp;gt; I know pflog is working.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So it really seems like something wrong in the internals of pf.  I
&lt;br&gt;&amp;gt; just don't know how to pursue it further.
&lt;br&gt;&lt;br&gt;&lt;br&gt;If the box isn't too loaded, you may try using &amp;quot;log (all)&amp;quot; on the pass
&lt;br&gt;rules (so that ALL packets are logged, not just the initial SYN) -
&lt;br&gt;that way at least you'd find out which rules those data packets are
&lt;br&gt;hitting, which would likely pin down the problem quite a bit.. those
&lt;br&gt;missing packets must have went somewhere ;-) &amp;nbsp;If it were me, that
&lt;br&gt;would be my preferable option if it was available.
&lt;br&gt;&lt;br&gt;Barring that, I'd suggest simplifying your setup as much as possible -
&lt;br&gt;is there too much traffic to remove the &amp;quot;route-to&amp;quot; and try it against
&lt;br&gt;a single webserver? &amp;nbsp;If it's not possible, you could try setting up a
&lt;br&gt;simple TCP service on internal hosts and get something that works,
&lt;br&gt;then build up (ECHO or TIME are not bad for this).
&lt;br&gt;&lt;br&gt;I'd also suggest removing the &amp;quot;scrub&amp;quot; directive until you have it
&lt;br&gt;working properly. &amp;nbsp;Is the &amp;quot;state-policy&amp;quot; floating or if-bound?
&lt;br&gt;&lt;br&gt;Does the problem affect other services in a similar manner, can you
&lt;br&gt;replicate the exact same problem with the web servers with sshd, for
&lt;br&gt;example?
&lt;br&gt;&lt;br&gt;What's annoying me is that I'm fairly sure I've seen this problem
&lt;br&gt;before, but for the life of me I can't remember what caused it :-(
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However one thing that I would strongly suggest is using proper packet
&lt;br&gt;&amp;gt;&amp;gt; filter design: either decide upon a default deny then pass what you
&lt;br&gt;&amp;gt;&amp;gt; want, or decide on a default pass and only deny what is bad.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are doing the latter; default pass and denying only what is bad.
&lt;br&gt;&amp;gt; This isn't even really a firewall, it's for load balancing web
&lt;br&gt;&amp;gt; connections.  We just threw a couple of block rules in there because
&lt;br&gt;&amp;gt; it was a good place to stop a particular attack.  There are other
&lt;br&gt;&amp;gt; &amp;quot;default deny&amp;quot; firewalls on other machines that handle all the traffic
&lt;br&gt;&amp;gt; that isn't getting diverted by the load balance rule.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If you're having to use the &amp;quot;quick&amp;quot; keyword, you've probably*
&lt;br&gt;&amp;gt;&amp;gt; done something wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since we are using load balancing, the &amp;quot;pass&amp;quot; rule that wouldn't pass
&lt;br&gt;&amp;gt; all the traffic we've just gone to the trouble to block would be
&lt;br&gt;&amp;gt; outrageously complex.  Hence, quick.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;pf uses the last rule in the ruleset that matches for a given packet,
&lt;br&gt;so for a first instance setup I'd suggest putting an explicit &amp;quot;pass
&lt;br&gt;all&amp;quot; as the first rule, then any pass rules that do load-balancing and
&lt;br&gt;the like, then a list of block rules. &amp;nbsp;It makes it a lot easier to
&lt;br&gt;read and debug. &amp;nbsp;Then once it's working as you want, you can move the
&lt;br&gt;block rules up to the top and add in the &amp;quot;quick&amp;quot; keyword for
&lt;br&gt;performance purposes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; If a case can be made that the use of &amp;quot;quick&amp;quot; is causing our packets
&lt;br&gt;&amp;gt; to disappear, we'd probably be willing to tackle trying to restructure
&lt;br&gt;&amp;gt; the rules.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801321&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801321&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26801321.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800123</id>
	<title>Re: Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-15T11:14:08Z</published>
	<updated>2009-12-15T11:14:08Z</updated>
	<author>
		<name>Linda Messerschmidt</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 11:08 AM, Peter Maxwell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800123&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I'm pretty sure you can run tcpdump against a packet capture from the
&lt;br&gt;&amp;gt; pflog interface on the pf box; that will include fields like
&lt;br&gt;&amp;gt; block/pass and rule number for each packet filtered.
&lt;br&gt;&lt;br&gt;I have done that with &amp;quot;log&amp;quot; on all block rules. &amp;nbsp;The packets shown as
&lt;br&gt;missing are *not* present in the dump when I do, so as far as I can
&lt;br&gt;tell they are not being dropped by a filter rule. &amp;nbsp;Which makes sense,
&lt;br&gt;since none of the few block rules we have would touch packets in the
&lt;br&gt;middle of an established connection that was permitted.
&lt;br&gt;&lt;br&gt;For comparison, endless streams of packets from those DNS guys we
&lt;br&gt;block *are* present in the tcpdump output, exactly as you describe, so
&lt;br&gt;I know pflog is working.
&lt;br&gt;&lt;br&gt;So it really seems like something wrong in the internals of pf. &amp;nbsp;I
&lt;br&gt;just don't know how to pursue it further.
&lt;br&gt;&lt;br&gt;&amp;gt; However one thing that I would strongly suggest is using proper packet
&lt;br&gt;&amp;gt; filter design: either decide upon a default deny then pass what you
&lt;br&gt;&amp;gt; want, or decide on a default pass and only deny what is bad.
&lt;br&gt;&lt;br&gt;We are doing the latter; default pass and denying only what is bad.
&lt;br&gt;This isn't even really a firewall, it's for load balancing web
&lt;br&gt;connections. &amp;nbsp;We just threw a couple of block rules in there because
&lt;br&gt;it was a good place to stop a particular attack. &amp;nbsp;There are other
&lt;br&gt;&amp;quot;default deny&amp;quot; firewalls on other machines that handle all the traffic
&lt;br&gt;that isn't getting diverted by the load balance rule.
&lt;br&gt;&lt;br&gt;&amp;gt; If you're having to use the &amp;quot;quick&amp;quot; keyword, you've probably*
&lt;br&gt;&amp;gt; done something wrong.
&lt;br&gt;&lt;br&gt;Since we are using load balancing, the &amp;quot;pass&amp;quot; rule that wouldn't pass
&lt;br&gt;all the traffic we've just gone to the trouble to block would be
&lt;br&gt;outrageously complex. &amp;nbsp;Hence, quick.
&lt;br&gt;&lt;br&gt;If a case can be made that the use of &amp;quot;quick&amp;quot; is causing our packets
&lt;br&gt;to disappear, we'd probably be willing to tackle trying to restructure
&lt;br&gt;the rules.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800123&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800123&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26800123.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26797245</id>
	<title>Re: Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-15T08:08:49Z</published>
	<updated>2009-12-15T08:08:49Z</updated>
	<author>
		<name>Peter Maxwell-3</name>
	</author>
	<content type="html">Hi Linda,
&lt;br&gt;&lt;br&gt;I'm pretty sure you can run tcpdump against a packet capture from the
&lt;br&gt;pflog interface on the pf box; that will include fields like
&lt;br&gt;block/pass and rule number for each packet filtered. &amp;nbsp;That way you at
&lt;br&gt;least know what rule is dropping/passing your packets. &amp;nbsp;And if my
&lt;br&gt;memory serves me right, pf uses a default pass rule - if it were me
&lt;br&gt;I'd check that the SYN-ACK from the webserver isn't creating a second
&lt;br&gt;state table entry using the default pass rule, or something equally as
&lt;br&gt;annoying.
&lt;br&gt;&lt;br&gt;It is also possible I'm completely wrong, as it's been a while since
&lt;br&gt;I've actually messed about with pf in any meaningful way.
&lt;br&gt;&lt;br&gt;However one thing that I would strongly suggest is using proper packet
&lt;br&gt;filter design: either decide upon a default deny then pass what you
&lt;br&gt;want, or decide on a default pass and only deny what is bad. &amp;nbsp;This
&lt;br&gt;methodology applies to any firewall whether pf, checkpoint, cisco,
&lt;br&gt;etc. &amp;nbsp;If you're having to use the &amp;quot;quick&amp;quot; keyword, you've probably*
&lt;br&gt;done something wrong. &amp;nbsp;The default deny approach is usually
&lt;br&gt;preferable, so you should have one block all rule at the top of the
&lt;br&gt;ruleset then all other rules should be pass rules.
&lt;br&gt;&lt;br&gt;Best wishes,
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;* there are some situations where you may have to use quick, but not
&lt;br&gt;particularly often.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/12/15 Linda Messerschmidt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26797245&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linda.messerschmidt@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a PF machine that is giving fits.  I see a lot of weird behavior.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) TCP connections (mainly port 80) sometimes take 3 seconds to get
&lt;br&gt;&amp;gt; started instead of being virtually instant.
&lt;br&gt;&amp;gt; 2) Sometimes HTTP connections just stop responding.  (Client program
&lt;br&gt;&amp;gt; times out waiting for response.)
&lt;br&gt;&amp;gt; 3) Sometimes connections get weirdly dropped (&amp;quot;Connection reset by peer.&amp;quot;)
&lt;br&gt;&amp;gt; 4) Sometimes if I am ssh'd through the firewall, something will happen
&lt;br&gt;&amp;gt; and my inbound packets will start getting dropped, but outbound
&lt;br&gt;&amp;gt; packets still pass.  For example, if I'm at the shell prompt, it is
&lt;br&gt;&amp;gt; non-responsive.  But if I log alongside a stuck connection and &amp;quot;write&amp;quot;
&lt;br&gt;&amp;gt; to that tty, I will see it no problem.
&lt;br&gt;&amp;gt; 5) States that have no right to still be there continue to pile up
&lt;br&gt;&amp;gt; into the hundreds of thousands.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I kind of get the feeling that all of these are related.  In
&lt;br&gt;&amp;gt; particular, I think 2, 3, and 4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Of all of these, the only one I can document at the moment is #3.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is a packet capture from the public (web client) interface:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038067 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;&amp;gt; 620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;&amp;gt; 9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038328 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;&amp;gt; ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.065678 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.095158 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.378248 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.746163 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:03.282122 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:04.154112 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:05.698002 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:07.913721 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.145438 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.287038 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.408734 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.409874 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is a packet capture of the same session from the private (web
&lt;br&gt;&amp;gt; server) interface:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038089 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;&amp;gt; 620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;&amp;gt; 9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038311 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;&amp;gt; ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.065694 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.287026 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.408747 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.409859 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So that client -&amp;gt; server push packet is not making it through the
&lt;br&gt;&amp;gt; firewall despite numerous retransmits, until 18 seconds later when the
&lt;br&gt;&amp;gt; server has already given up on it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That connection hangs around in the state table for a long time as:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; all tcp 5.6.7.8:80 &amp;lt;- 1.2.3.4:61645       CLOSED:CLOSING
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This despite:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set timeout tcp.closed 5
&lt;br&gt;&amp;gt; set timeout tcp.closing 30
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To test, I stopped connections from 1.2.3.4 to 5.6.7.8.  At present,
&lt;br&gt;&amp;gt; there are *zero* established connections between 1.2.3.4 and 5.6.7.8.
&lt;br&gt;&amp;gt; None.  But:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ sudo pfctl -s state | fgrep 1.2.3.4: | fgrep :80 | wc
&lt;br&gt;&amp;gt;    2243   13458  160932
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A few minutes later I broke this down by connection status:
&lt;br&gt;&amp;gt; 1222 CLOSED:CLOSING
&lt;br&gt;&amp;gt;  556 ESTABLISHED:ESTABLISHED
&lt;br&gt;&amp;gt;  15 FIN_WAIT_2:CLOSING
&lt;br&gt;&amp;gt;  27 SYN_SENT:FIN_WAIT_2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That doesn't add up to 2243, so they *are* slowly dying off.  I did
&lt;br&gt;&amp;gt; some poking around, and the CLOSED:CLOSING ones expire after fifteen
&lt;br&gt;&amp;gt; minutes, which is the timeout for tcp.opening.  Um, OK.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The 556 ESTABLISHED:ESTABLISHED states appear content to persist until
&lt;br&gt;&amp;gt; they age off too, even though those connections are long gone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as the &amp;quot;3 second&amp;quot; thing, I noticed somebody here recently had a
&lt;br&gt;&amp;gt; similar problem and made it go away by upping their states and
&lt;br&gt;&amp;gt; dropping their timeouts.  Well, he dropped his timeouts to where ours
&lt;br&gt;&amp;gt; are, and we're at:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set limit states 2000000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are definitely not out of states; we're seeing these problems right
&lt;br&gt;&amp;gt; now and due to my playing around with the tcp.established timeout,
&lt;br&gt;&amp;gt; we're at 66412 states right now.  (Ordinarily it hovers around
&lt;br&gt;&amp;gt; 350,000.)  The machine is a dual-core Core 2 6320 with 2GB of RAM and
&lt;br&gt;&amp;gt; nothing to but load balance this traffic.  It shows as 95% idle all
&lt;br&gt;&amp;gt; day.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So sometimes pf loses packets related to connections that are still
&lt;br&gt;&amp;gt; around, and sometimes it thinks connections are still around long
&lt;br&gt;&amp;gt; after the packets are gone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would be really, really grateful for any suggestions or help.  I am
&lt;br&gt;&amp;gt; completely lost here and at my wits' end!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've included my pf.conf below.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set limit states 2000000
&lt;br&gt;&amp;gt; set timeout tcp.established 86400
&lt;br&gt;&amp;gt; set timeout tcp.closed 5
&lt;br&gt;&amp;gt; set timeout tcp.closing 30
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ExtIf = &amp;quot;em0&amp;quot;
&lt;br&gt;&amp;gt; IntIf = &amp;quot;em1&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; table &amp;lt;NoRouteIPs&amp;gt; { 127.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24,
&lt;br&gt;&amp;gt; 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }
&lt;br&gt;&amp;gt; table &amp;lt;OurIPs&amp;gt; { ... }
&lt;br&gt;&amp;gt; table &amp;lt;DNSServers&amp;gt; { ... }
&lt;br&gt;&amp;gt; table &amp;lt;BalanceBlocks&amp;gt; { ... }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; scrub
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##  Block Reserved Addresses
&lt;br&gt;&amp;gt; block log quick on $ExtIf from &amp;lt;NoRouteIPs&amp;gt; to any
&lt;br&gt;&amp;gt; block log quick on $ExtIf from any to &amp;lt;NoRouteIPs&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##  Block our own Addresses
&lt;br&gt;&amp;gt; block in log quick on $ExtIf inet from &amp;lt;OurIPs&amp;gt; to any
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##  Anti-DDOS
&lt;br&gt;&amp;gt; table &amp;lt;AntiDDOS&amp;gt; persist
&lt;br&gt;&amp;gt; block quick from &amp;lt;AntiDDOS&amp;gt; to any
&lt;br&gt;&amp;gt; block quick from any to &amp;lt;AntiDDOS&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##  Block HTTP traffic to DNS servers
&lt;br&gt;&amp;gt; block quick inet proto tcp from any to &amp;lt;DNSServers&amp;gt; port 80
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##  Weird DNS people added 2009-06-18
&lt;br&gt;&amp;gt; block drop log quick proto 255
&lt;br&gt;&amp;gt; table &amp;lt;GTExperimentDNS&amp;gt; { 61.220.4.0/24 }
&lt;br&gt;&amp;gt; block drop in quick proto { udp, tcp } from &amp;lt;GTExperimentDNS&amp;gt; to any port 53
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## Load Balancing
&lt;br&gt;&amp;gt; pass in on $ExtIf route-to { ($IntIf 3.4.5.6), ($IntIf 3.4.5.7),
&lt;br&gt;&amp;gt; ($IntIf 3.4.5.8), ($IntIf 3.4.5.9) } round-robin proto tcp from any to
&lt;br&gt;&amp;gt; &amp;lt;BalanceBlocks&amp;gt; port 80
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26797245&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;&amp;gt; To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26797245&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26797245&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26797245&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26797245.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26796164</id>
	<title>Re: Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-15T07:01:47Z</published>
	<updated>2009-12-15T07:01:47Z</updated>
	<author>
		<name>Linda Messerschmidt</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 4:55 AM, Ermal Luçi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26796164&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eri@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Try enabling sticky connections here.
&lt;br&gt;&lt;br&gt;As a practical matter we don't care if two connections from the same
&lt;br&gt;client go to the same server or not. &amp;nbsp;Is there some reason to suspect
&lt;br&gt;that this option would alter the behavior of single connections, like
&lt;br&gt;the problem we're having?
&lt;br&gt;&lt;br&gt;Although even in that case, all the servers on the same interface so
&lt;br&gt;if it were a problem with load balancing, I would expect to see the
&lt;br&gt;stray packets addressed to the wrong MAC address, not to have them
&lt;br&gt;disappear completely.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26796164&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26796164&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26796164.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26792264</id>
	<title>Re: Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-15T01:55:58Z</published>
	<updated>2009-12-15T01:55:58Z</updated>
	<author>
		<name>Ermal Luçi-3</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 7:21 AM, Linda Messerschmidt &amp;lt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26792264&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linda.messerschmidt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a PF machine that is giving fits. &amp;nbsp;I see a lot of weird behavior.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) TCP connections (mainly port 80) sometimes take 3 seconds to get
&lt;br&gt;&amp;gt; started instead of being virtually instant.
&lt;br&gt;&amp;gt; 2) Sometimes HTTP connections just stop responding. &amp;nbsp;(Client program
&lt;br&gt;&amp;gt; times out waiting for response.)
&lt;br&gt;&amp;gt; 3) Sometimes connections get weirdly dropped (&amp;quot;Connection reset by peer.&amp;quot;)
&lt;br&gt;&amp;gt; 4) Sometimes if I am ssh'd through the firewall, something will happen
&lt;br&gt;&amp;gt; and my inbound packets will start getting dropped, but outbound
&lt;br&gt;&amp;gt; packets still pass. &amp;nbsp;For example, if I'm at the shell prompt, it is
&lt;br&gt;&amp;gt; non-responsive. &amp;nbsp;But if I log alongside a stuck connection and &amp;quot;write&amp;quot;
&lt;br&gt;&amp;gt; to that tty, I will see it no problem.
&lt;br&gt;&amp;gt; 5) States that have no right to still be there continue to pile up
&lt;br&gt;&amp;gt; into the hundreds of thousands.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I kind of get the feeling that all of these are related. &amp;nbsp;In
&lt;br&gt;&amp;gt; particular, I think 2, 3, and 4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Of all of these, the only one I can document at the moment is #3.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is a packet capture from the public (web client) interface:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038067 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;&amp;gt; 620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;&amp;gt; 9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038328 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;&amp;gt; ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.065678 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.095158 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.378248 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:02.746163 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:03.282122 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:04.154112 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:05.698002 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:07.913721 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.145438 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.287038 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.408734 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.409874 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is a packet capture of the same session from the private (web
&lt;br&gt;&amp;gt; server) interface:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038089 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;&amp;gt; 620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;&amp;gt; 9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.038311 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;&amp;gt; ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;&amp;gt; 20:00:02.065694 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:12.287026 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.408747 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;&amp;gt; 20:00:20.409859 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So that client -&amp;gt; server push packet is not making it through the
&lt;br&gt;&amp;gt; firewall despite numerous retransmits, until 18 seconds later when the
&lt;br&gt;&amp;gt; server has already given up on it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That connection hangs around in the state table for a long time as:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; all tcp 5.6.7.8:80 &amp;lt;- 1.2.3.4:61645 &amp;nbsp; &amp;nbsp; &amp;nbsp; CLOSED:CLOSING
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This despite:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set timeout tcp.closed 5
&lt;br&gt;&amp;gt; set timeout tcp.closing 30
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To test, I stopped connections from 1.2.3.4 to 5.6.7.8. &amp;nbsp;At present,
&lt;br&gt;&amp;gt; there are *zero* established connections between 1.2.3.4 and 5.6.7.8.
&lt;br&gt;&amp;gt; None. &amp;nbsp;But:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ sudo pfctl -s state | fgrep 1.2.3.4: | fgrep :80 | wc
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;2243 &amp;nbsp; 13458 &amp;nbsp;160932
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A few minutes later I broke this down by connection status:
&lt;br&gt;&amp;gt; 1222 CLOSED:CLOSING
&lt;br&gt;&amp;gt; &amp;nbsp;556 ESTABLISHED:ESTABLISHED
&lt;br&gt;&amp;gt; &amp;nbsp;15 FIN_WAIT_2:CLOSING
&lt;br&gt;&amp;gt; &amp;nbsp;27 SYN_SENT:FIN_WAIT_2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That doesn't add up to 2243, so they *are* slowly dying off. &amp;nbsp;I did
&lt;br&gt;&amp;gt; some poking around, and the CLOSED:CLOSING ones expire after fifteen
&lt;br&gt;&amp;gt; minutes, which is the timeout for tcp.opening. &amp;nbsp;Um, OK.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The 556 ESTABLISHED:ESTABLISHED states appear content to persist until
&lt;br&gt;&amp;gt; they age off too, even though those connections are long gone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as the &amp;quot;3 second&amp;quot; thing, I noticed somebody here recently had a
&lt;br&gt;&amp;gt; similar problem and made it go away by upping their states and
&lt;br&gt;&amp;gt; dropping their timeouts. &amp;nbsp;Well, he dropped his timeouts to where ours
&lt;br&gt;&amp;gt; are, and we're at:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set limit states 2000000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are definitely not out of states; we're seeing these problems right
&lt;br&gt;&amp;gt; now and due to my playing around with the tcp.established timeout,
&lt;br&gt;&amp;gt; we're at 66412 states right now. &amp;nbsp;(Ordinarily it hovers around
&lt;br&gt;&amp;gt; 350,000.) &amp;nbsp;The machine is a dual-core Core 2 6320 with 2GB of RAM and
&lt;br&gt;&amp;gt; nothing to but load balance this traffic. &amp;nbsp;It shows as 95% idle all
&lt;br&gt;&amp;gt; day.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So sometimes pf loses packets related to connections that are still
&lt;br&gt;&amp;gt; around, and sometimes it thinks connections are still around long
&lt;br&gt;&amp;gt; after the packets are gone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would be really, really grateful for any suggestions or help. &amp;nbsp;I am
&lt;br&gt;&amp;gt; completely lost here and at my wits' end!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've included my pf.conf below.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set limit states 2000000
&lt;br&gt;&amp;gt; set timeout tcp.established 86400
&lt;br&gt;&amp;gt; set timeout tcp.closed 5
&lt;br&gt;&amp;gt; set timeout tcp.closing 30
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ExtIf = &amp;quot;em0&amp;quot;
&lt;br&gt;&amp;gt; IntIf = &amp;quot;em1&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; table &amp;lt;NoRouteIPs&amp;gt; { 127.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24,
&lt;br&gt;&amp;gt; 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }
&lt;br&gt;&amp;gt; table &amp;lt;OurIPs&amp;gt; { ... }
&lt;br&gt;&amp;gt; table &amp;lt;DNSServers&amp;gt; { ... }
&lt;br&gt;&amp;gt; table &amp;lt;BalanceBlocks&amp;gt; { ... }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; scrub
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## &amp;nbsp;Block Reserved Addresses
&lt;br&gt;&amp;gt; block log quick on $ExtIf from &amp;lt;NoRouteIPs&amp;gt; to any
&lt;br&gt;&amp;gt; block log quick on $ExtIf from any to &amp;lt;NoRouteIPs&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## &amp;nbsp;Block our own Addresses
&lt;br&gt;&amp;gt; block in log quick on $ExtIf inet from &amp;lt;OurIPs&amp;gt; to any
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## &amp;nbsp;Anti-DDOS
&lt;br&gt;&amp;gt; table &amp;lt;AntiDDOS&amp;gt; persist
&lt;br&gt;&amp;gt; block quick from &amp;lt;AntiDDOS&amp;gt; to any
&lt;br&gt;&amp;gt; block quick from any to &amp;lt;AntiDDOS&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## &amp;nbsp;Block HTTP traffic to DNS servers
&lt;br&gt;&amp;gt; block quick inet proto tcp from any to &amp;lt;DNSServers&amp;gt; port 80
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## &amp;nbsp;Weird DNS people added 2009-06-18
&lt;br&gt;&amp;gt; block drop log quick proto 255
&lt;br&gt;&amp;gt; table &amp;lt;GTExperimentDNS&amp;gt; { 61.220.4.0/24 }
&lt;br&gt;&amp;gt; block drop in quick proto { udp, tcp } from &amp;lt;GTExperimentDNS&amp;gt; to any port
&lt;br&gt;&amp;gt; 53
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ## Load Balancing
&lt;br&gt;&amp;gt; pass in on $ExtIf route-to { ($IntIf 3.4.5.6), ($IntIf 3.4.5.7),
&lt;br&gt;&amp;gt; ($IntIf 3.4.5.8), ($IntIf 3.4.5.9) } round-robin proto tcp from any to
&lt;br&gt;&amp;gt; &amp;lt;BalanceBlocks&amp;gt; port 80
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Try enabling sticky connections here.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ermal
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26792264&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26792264&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26792264.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26790282</id>
	<title>Lots of weird PF behavior on 7.2-STABLE</title>
	<published>2009-12-14T22:21:53Z</published>
	<updated>2009-12-14T22:21:53Z</updated>
	<author>
		<name>Linda Messerschmidt</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I have a PF machine that is giving fits. &amp;nbsp;I see a lot of weird behavior.
&lt;br&gt;&lt;br&gt;1) TCP connections (mainly port 80) sometimes take 3 seconds to get
&lt;br&gt;started instead of being virtually instant.
&lt;br&gt;2) Sometimes HTTP connections just stop responding. &amp;nbsp;(Client program
&lt;br&gt;times out waiting for response.)
&lt;br&gt;3) Sometimes connections get weirdly dropped (&amp;quot;Connection reset by peer.&amp;quot;)
&lt;br&gt;4) Sometimes if I am ssh'd through the firewall, something will happen
&lt;br&gt;and my inbound packets will start getting dropped, but outbound
&lt;br&gt;packets still pass. &amp;nbsp;For example, if I'm at the shell prompt, it is
&lt;br&gt;non-responsive. &amp;nbsp;But if I log alongside a stuck connection and &amp;quot;write&amp;quot;
&lt;br&gt;to that tty, I will see it no problem.
&lt;br&gt;5) States that have no right to still be there continue to pile up
&lt;br&gt;into the hundreds of thousands.
&lt;br&gt;&lt;br&gt;I kind of get the feeling that all of these are related. &amp;nbsp;In
&lt;br&gt;particular, I think 2, 3, and 4.
&lt;br&gt;&lt;br&gt;Of all of these, the only one I can document at the moment is #3.
&lt;br&gt;&lt;br&gt;Here is a packet capture from the public (web client) interface:
&lt;br&gt;&lt;br&gt;20:00:02.038067 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;20:00:02.038328 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;20:00:02.065678 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;20:00:02.095158 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:02.378248 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:02.746163 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:03.282122 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:04.154112 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:05.698002 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:07.913721 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:12.145438 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:12.287038 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;20:00:20.408734 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:20.409874 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&lt;br&gt;Here is a packet capture of the same session from the private (web
&lt;br&gt;server) interface:
&lt;br&gt;&lt;br&gt;20:00:02.038089 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: S
&lt;br&gt;620577087:620577087(0) win 65535 &amp;lt;mss 1460,nop,wscale
&lt;br&gt;9,sackOK,timestamp 953726452 0&amp;gt;
&lt;br&gt;20:00:02.038311 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: S 40565958:40565958(0)
&lt;br&gt;ack 620577088 win 0 &amp;lt;mss 1460&amp;gt;
&lt;br&gt;20:00:02.065694 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: . ack 1 win 65535
&lt;br&gt;20:00:12.287026 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: F 1:1(0) ack 1 win 65535
&lt;br&gt;20:00:20.408747 IP 1.2.3.4.61645 &amp;gt; 5.6.7.8.80: P 1:80(79) ack 1 win 65535
&lt;br&gt;20:00:20.409859 IP 5.6.7.8.80 &amp;gt; 1.2.3.4.61645: R 40565959:40565959(0) win 0
&lt;br&gt;&lt;br&gt;So that client -&amp;gt; server push packet is not making it through the
&lt;br&gt;firewall despite numerous retransmits, until 18 seconds later when the
&lt;br&gt;server has already given up on it.
&lt;br&gt;&lt;br&gt;That connection hangs around in the state table for a long time as:
&lt;br&gt;&lt;br&gt;all tcp 5.6.7.8:80 &amp;lt;- 1.2.3.4:61645 &amp;nbsp; &amp;nbsp; &amp;nbsp; CLOSED:CLOSING
&lt;br&gt;&lt;br&gt;This despite:
&lt;br&gt;&lt;br&gt;set timeout tcp.closed 5
&lt;br&gt;set timeout tcp.closing 30
&lt;br&gt;&lt;br&gt;To test, I stopped connections from 1.2.3.4 to 5.6.7.8. &amp;nbsp;At present,
&lt;br&gt;there are *zero* established connections between 1.2.3.4 and 5.6.7.8.
&lt;br&gt;None. &amp;nbsp;But:
&lt;br&gt;&lt;br&gt;$ sudo pfctl -s state | fgrep 1.2.3.4: | fgrep :80 | wc
&lt;br&gt;&amp;nbsp; &amp;nbsp; 2243 &amp;nbsp; 13458 &amp;nbsp;160932
&lt;br&gt;&lt;br&gt;A few minutes later I broke this down by connection status:
&lt;br&gt;1222 CLOSED:CLOSING
&lt;br&gt;&amp;nbsp;556 ESTABLISHED:ESTABLISHED
&lt;br&gt;&amp;nbsp; 15 FIN_WAIT_2:CLOSING
&lt;br&gt;&amp;nbsp; 27 SYN_SENT:FIN_WAIT_2
&lt;br&gt;&lt;br&gt;That doesn't add up to 2243, so they *are* slowly dying off. &amp;nbsp;I did
&lt;br&gt;some poking around, and the CLOSED:CLOSING ones expire after fifteen
&lt;br&gt;minutes, which is the timeout for tcp.opening. &amp;nbsp;Um, OK.
&lt;br&gt;&lt;br&gt;The 556 ESTABLISHED:ESTABLISHED states appear content to persist until
&lt;br&gt;they age off too, even though those connections are long gone.
&lt;br&gt;&lt;br&gt;As far as the &amp;quot;3 second&amp;quot; thing, I noticed somebody here recently had a
&lt;br&gt;similar problem and made it go away by upping their states and
&lt;br&gt;dropping their timeouts. &amp;nbsp;Well, he dropped his timeouts to where ours
&lt;br&gt;are, and we're at:
&lt;br&gt;&lt;br&gt;set limit states 2000000
&lt;br&gt;&lt;br&gt;We are definitely not out of states; we're seeing these problems right
&lt;br&gt;now and due to my playing around with the tcp.established timeout,
&lt;br&gt;we're at 66412 states right now. &amp;nbsp;(Ordinarily it hovers around
&lt;br&gt;350,000.) &amp;nbsp;The machine is a dual-core Core 2 6320 with 2GB of RAM and
&lt;br&gt;nothing to but load balance this traffic. &amp;nbsp;It shows as 95% idle all
&lt;br&gt;day.
&lt;br&gt;&lt;br&gt;So sometimes pf loses packets related to connections that are still
&lt;br&gt;around, and sometimes it thinks connections are still around long
&lt;br&gt;after the packets are gone.
&lt;br&gt;&lt;br&gt;I would be really, really grateful for any suggestions or help. &amp;nbsp;I am
&lt;br&gt;completely lost here and at my wits' end!
&lt;br&gt;&lt;br&gt;I've included my pf.conf below.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;set limit states 2000000
&lt;br&gt;set timeout tcp.established 86400
&lt;br&gt;set timeout tcp.closed 5
&lt;br&gt;set timeout tcp.closing 30
&lt;br&gt;&lt;br&gt;ExtIf = &amp;quot;em0&amp;quot;
&lt;br&gt;IntIf = &amp;quot;em1&amp;quot;
&lt;br&gt;&lt;br&gt;table &amp;lt;NoRouteIPs&amp;gt; { 127.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24,
&lt;br&gt;192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }
&lt;br&gt;table &amp;lt;OurIPs&amp;gt; { ... }
&lt;br&gt;table &amp;lt;DNSServers&amp;gt; { ... }
&lt;br&gt;table &amp;lt;BalanceBlocks&amp;gt; { ... }
&lt;br&gt;&lt;br&gt;scrub
&lt;br&gt;&lt;br&gt;## &amp;nbsp;Block Reserved Addresses
&lt;br&gt;block log quick on $ExtIf from &amp;lt;NoRouteIPs&amp;gt; to any
&lt;br&gt;block log quick on $ExtIf from any to &amp;lt;NoRouteIPs&amp;gt;
&lt;br&gt;&lt;br&gt;## &amp;nbsp;Block our own Addresses
&lt;br&gt;block in log quick on $ExtIf inet from &amp;lt;OurIPs&amp;gt; to any
&lt;br&gt;&lt;br&gt;## &amp;nbsp;Anti-DDOS
&lt;br&gt;table &amp;lt;AntiDDOS&amp;gt; persist
&lt;br&gt;block quick from &amp;lt;AntiDDOS&amp;gt; to any
&lt;br&gt;block quick from any to &amp;lt;AntiDDOS&amp;gt;
&lt;br&gt;&lt;br&gt;## &amp;nbsp;Block HTTP traffic to DNS servers
&lt;br&gt;block quick inet proto tcp from any to &amp;lt;DNSServers&amp;gt; port 80
&lt;br&gt;&lt;br&gt;## &amp;nbsp;Weird DNS people added 2009-06-18
&lt;br&gt;block drop log quick proto 255
&lt;br&gt;table &amp;lt;GTExperimentDNS&amp;gt; { 61.220.4.0/24 }
&lt;br&gt;block drop in quick proto { udp, tcp } from &amp;lt;GTExperimentDNS&amp;gt; to any port 53
&lt;br&gt;&lt;br&gt;## Load Balancing
&lt;br&gt;pass in on $ExtIf route-to { ($IntIf 3.4.5.6), ($IntIf 3.4.5.7),
&lt;br&gt;($IntIf 3.4.5.8), ($IntIf 3.4.5.9) } round-robin proto tcp from any to
&lt;br&gt;&amp;lt;BalanceBlocks&amp;gt; port 80
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790282&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790282&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lots-of-weird-PF-behavior-on-7.2-STABLE-tp26790282p26790282.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26780823</id>
	<title>RE: PF Transparent Bridge Firewall + CARP</title>
	<published>2009-12-14T08:39:43Z</published>
	<updated>2009-12-14T08:39:43Z</updated>
	<author>
		<name>Kevin-206</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Kevin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26780823&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; I have what I would consider not a standard firewall scenario that
&lt;br&gt;&amp;gt; requires a second, redundant PF firewall. My first / main firewall is
&lt;br&gt;&amp;gt; pf + transparent bridging with no internal network / ip addresses.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I realize that carp would require an ip address on both interfaces to work
&lt;br&gt;properly... this is correct, right? Could I just assign the 1 ip address /
&lt;br&gt;gateway on the bridge0 interface and add a carp interface to fail that over
&lt;br&gt;to the 2nd firewall?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26780823&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26780823&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RE%3A-PF-Transparent-Bridge-Firewall-%2B-CARP-tp26780823p26780823.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26780513</id>
	<title>PF Transparent Bridge Firewall + CARP</title>
	<published>2009-12-14T08:19:30Z</published>
	<updated>2009-12-14T08:19:30Z</updated>
	<author>
		<name>Kevin-206</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;&lt;br&gt;I have what I would consider not a standard firewall scenario that requires
&lt;br&gt;a second, redundant PF firewall. My first / main firewall is pf +
&lt;br&gt;transparent bridging with no internal network / ip addresses.
&lt;br&gt;&lt;br&gt;I would like to implement a second failover firewall w/ CARP and have a
&lt;br&gt;pretty good idea of how I can accomplish this -- however , I would like to
&lt;br&gt;hear opinions / suggestions of implementing the most logical solution with
&lt;br&gt;CARP.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I would like to implement CARP on the gateway IP address which will sit on
&lt;br&gt;the bridge0 interface, which bridges br01 + br02.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Bridge0 will have no ip address assigned , and the gateway ip address will
&lt;br&gt;be assigned to carp0. Will I have to NAT traffic from carp0 &amp;gt; bridge0 ? will
&lt;br&gt;bridge0 be my ext_if in pf.conf , and int_if will be carp0? The main issue
&lt;br&gt;is maintaining redundancy, for me.
&lt;br&gt;&lt;br&gt;&lt;br&gt;It seems like an easy question, however Im just trying to wrap my brain
&lt;br&gt;around the one that doesn't cost as much overhead and is the simplest / most
&lt;br&gt;logical.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Pertinent info :
&lt;br&gt;&lt;br&gt;FreeBSD fw 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #4: Tue Dec 16 13:00:03 EST
&lt;br&gt;2008 &amp;nbsp; &amp;nbsp; admin@fw:/usr/obj/usr/src/sys/FW &amp;nbsp;i386
&lt;br&gt;&lt;br&gt;If you need additional information ,please let me know.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Suggestions are welcome.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26780513&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26780513&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-Transparent-Bridge-Firewall-%2B-CARP-tp26780513p26780513.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26779023</id>
	<title>Re: IPv6, PF problem</title>
	<published>2009-12-14T06:54:46Z</published>
	<updated>2009-12-14T06:54:46Z</updated>
	<author>
		<name>Max Laier</name>
	</author>
	<content type="html">On Saturday 12 December 2009 22:11:28 Aaron Stellman wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello there,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; What does &amp;quot;pfctl -vvsr&amp;quot; give you for the rule? &amp;nbsp;It should include the
&lt;br&gt;&amp;gt; &amp;gt; number of addresses assigned to the interface in the braces - e.g. &amp;quot;... 
&lt;br&gt;&amp;gt; &amp;gt; (bge0:4) ...&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; @8 pass in on bge0 proto tcp from any to (bge0:4) port = ftp flags S/SA
&lt;br&gt;&amp;gt; &amp;nbsp;keep state [ Evaluations: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;States: 0 &amp;nbsp; &amp;nbsp; ] [ Inserted: uid 0 pid 79900 ]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; In addition, can you try to add separate rules for inet and inet6 - i.e.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; pass in on $ext_if inet &amp;nbsp;proto tcp to ($ext_if) port 21
&lt;br&gt;&amp;gt; &amp;gt; pass in on $ext_if inet6 proto tcp to ($ext_if) port 21
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; @8 pass in on bge0 inet proto tcp from any to (bge0:2) port = ftp flags
&lt;br&gt;&amp;gt; &amp;nbsp;S/SA keep state [ Evaluations: 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes: 916 &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;States: 1 &amp;nbsp; &amp;nbsp; ] [ Inserted: uid 0 pid 80198 ]
&lt;br&gt;&amp;gt; @9 pass in on bge0 inet6 proto tcp from any to (bge0:2) port = ftp flags
&lt;br&gt;&amp;gt; &amp;nbsp;S/SA keep state [ Evaluations: 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;States: 0 &amp;nbsp; &amp;nbsp; ] [ Inserted: uid 0 pid 80198 ]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and it passes inet6 connection with these two rules. Do you consider it
&lt;br&gt;&amp;gt; a bug? This essentially forces me to have 2 separate rules for inet and
&lt;br&gt;&amp;gt; inet6.
&lt;/div&gt;&lt;br&gt;I do consider it a bug, but I can't reproduce it here. &amp;nbsp;Can you think of 
&lt;br&gt;anything in your setup that might be special - e.g. the way you add the 
&lt;br&gt;addresses to your interface? &amp;nbsp;Are you certain that you were testing with the 
&lt;br&gt;right rules in place (your output above shows zero rule evaluations) which is 
&lt;br&gt;a sign that something else went wrong.
&lt;br&gt;&lt;br&gt;Can anyone else reproduce this problem or did you see something similar?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&amp;nbsp;Max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26779023&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26779023&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IPv6%2C-PF-problem-tp26753982p26779023.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26776132</id>
	<title>Current problem reports assigned to freebsd-pf@FreeBSD.org</title>
	<published>2009-12-14T03:07:00Z</published>
	<updated>2009-12-14T03:07:00Z</updated>
	<author>
		<name>FreeBSD bugmaster</name>
	</author>
	<content type="html">Note: to view an individual PR, use:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;The following is a listing of current problems submitted by FreeBSD users.
&lt;br&gt;These represent problem reports covering all versions including
&lt;br&gt;experimental development code and obsolete releases.
&lt;br&gt;&lt;br&gt;&lt;br&gt;S Tracker &amp;nbsp; &amp;nbsp; &amp;nbsp;Resp. &amp;nbsp; &amp;nbsp; &amp;nbsp;Description
&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;o kern/140697 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf behaviour changes - must be documented
&lt;br&gt;o kern/137982 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] when pf can hit state limits, random IP failures 
&lt;br&gt;o kern/136781 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Packets appear to drop with pf scrub and if_bridg
&lt;br&gt;o kern/135948 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [gre] pf not natting gre protocol
&lt;br&gt;o kern/135162 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pfsync] pfsync(4) not usable with GENERIC kernel
&lt;br&gt;o kern/134996 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Anchor tables not included when pfctl(8) is run w
&lt;br&gt;o kern/133732 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] max-src-conn issue
&lt;br&gt;o kern/132769 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] 2 LOR's with pf task mtx / ifnet and &amp;nbsp;rtent
&lt;br&gt;f kern/132176 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf stalls connection when using route-to [regress
&lt;br&gt;o conf/130381 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [rc.d] [pf] [ip6] ipv6 not fully configured when pf st
&lt;br&gt;o kern/129861 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Argument names reversed in pf_table.c:_co
&lt;br&gt;o kern/127920 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] ipv6 and synproxy don't play well together
&lt;br&gt;o conf/127814 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] The flush in pf_reload in /etc/rc.d/pf does not w
&lt;br&gt;o kern/127439 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] deadlock in pf
&lt;br&gt;f kern/127345 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Problem with PF on FreeBSD7.0 [regression]
&lt;br&gt;o kern/127121 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf incorrect log priority
&lt;br&gt;o kern/127042 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf recursion panic if interface group is 
&lt;br&gt;o kern/125467 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf keep state bug while handling sessions between
&lt;br&gt;s kern/124933 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [ip6] pf does not support (drops) IPv6 fragmented
&lt;br&gt;o kern/124364 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] Kernel panic with pf + bridge
&lt;br&gt;o kern/122773 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf doesn't log uid or pid when configured to
&lt;br&gt;o kern/122014 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] FreeBSD 6.2 panic in pf
&lt;br&gt;o kern/121704 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF mangles loopback packets
&lt;br&gt;o kern/120281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [request] lost returning packets to PF for a rdr 
&lt;br&gt;o kern/120057 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Allow proper settings of ALTQ_HFSC. The c
&lt;br&gt;o bin/118355 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pfctl(8) help message options order false
&lt;br&gt;o kern/114567 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] pf_ioctl.c + if.c
&lt;br&gt;o kern/114095 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [carp] carp+pf delay with high state limit
&lt;br&gt;o kern/111220 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] repeatable hangs while manipulating pf tables
&lt;br&gt;s conf/110838 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] tagged parameter on nat not working on FreeBSD 5.
&lt;br&gt;o kern/103283 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync fails to sucessfully transfer some sessions
&lt;br&gt;o kern/103281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync reports bulk update failures
&lt;br&gt;o kern/93825 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf reply-to doesn't work
&lt;br&gt;o sparc/93530 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Incorrect checksums when using pf's route-to on s
&lt;br&gt;o kern/92949 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF + ALTQ problems with latency
&lt;br&gt;o bin/86635 &amp;nbsp; &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [patch] pfctl(8): allow new page character (^L) in pf.
&lt;br&gt;o kern/82271 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] cbq scheduler cause bad latency
&lt;br&gt;&lt;br&gt;37 problems total.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26776132&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26776132&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Current-problem-reports-assigned-to-freebsd-pf%40FreeBSD.org-tp26776132p26776132.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26761193</id>
	<title>Re: IPv6, PF problem</title>
	<published>2009-12-12T13:11:28Z</published>
	<updated>2009-12-12T13:11:28Z</updated>
	<author>
		<name>Aaron Stellman-3</name>
	</author>
	<content type="html">Hello there,
&lt;br&gt;&lt;br&gt;&amp;gt; What does &amp;quot;pfctl -vvsr&amp;quot; give you for the rule? &amp;nbsp;It should include the number 
&lt;br&gt;&amp;gt; of addresses assigned to the interface in the braces - e.g. &amp;quot;... &amp;nbsp;(bge0:4) ...&amp;quot;
&lt;br&gt;&lt;br&gt;@8 pass in on bge0 proto tcp from any to (bge0:4) port = ftp flags S/SA keep state
&lt;br&gt;&amp;nbsp; [ Evaluations: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; States: 0 &amp;nbsp; &amp;nbsp; ]
&lt;br&gt;&amp;nbsp; [ Inserted: uid 0 pid 79900 ]
&lt;br&gt;&lt;br&gt;&amp;gt; In addition, can you try to add separate rules for inet and inet6 - i.e.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; pass in on $ext_if inet &amp;nbsp;proto tcp to ($ext_if) port 21
&lt;br&gt;&amp;gt; pass in on $ext_if inet6 proto tcp to ($ext_if) port 21
&lt;br&gt;&lt;br&gt;@8 pass in on bge0 inet proto tcp from any to (bge0:2) port = ftp flags S/SA keep state
&lt;br&gt;&amp;nbsp; [ Evaluations: 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes: 916 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; States: 1 &amp;nbsp; &amp;nbsp; ]
&lt;br&gt;&amp;nbsp; [ Inserted: uid 0 pid 80198 ]
&lt;br&gt;@9 pass in on bge0 inet6 proto tcp from any to (bge0:2) port = ftp flags S/SA keep state
&lt;br&gt;&amp;nbsp; [ Evaluations: 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Packets: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes: 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; States: 0 &amp;nbsp; &amp;nbsp; ]
&lt;br&gt;&amp;nbsp; [ Inserted: uid 0 pid 80198 ]
&lt;br&gt;&lt;br&gt;and it passes inet6 connection with these two rules. Do you consider it
&lt;br&gt;a bug? This essentially forces me to have 2 separate rules for inet and
&lt;br&gt;inet6.
&lt;br&gt;Thanks
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761193&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761193&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IPv6%2C-PF-problem-tp26753982p26761193.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26760953</id>
	<title>Re: IPv6, PF problem</title>
	<published>2009-12-12T12:37:19Z</published>
	<updated>2009-12-12T12:37:19Z</updated>
	<author>
		<name>Max Laier</name>
	</author>
	<content type="html">On Saturday 12 December 2009 02:25:08 Aaron Stellman wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello there,
&lt;br&gt;&amp;gt; Here is the problem I've encountered on a dual stack amd64 FreeBSD 8.0p1
&lt;br&gt;&amp;gt; machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What works:
&lt;br&gt;&amp;gt; pass in on $ext_if proto tcp to &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port 21
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What doesn't work:
&lt;br&gt;&amp;gt; pass in on $ext_if proto tcp to ($ext_if) port 21
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; here is what's logged when it doesn't work:
&lt;br&gt;&amp;gt; listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size
&lt;br&gt;&amp;gt; 1515 bytes
&lt;br&gt;&amp;gt; 00:00:00.000000 rule 0/0(match): block in on bge0:
&lt;br&gt;&amp;gt; 2001:1938:235:beef:21b:21ff:fe37:d799.11220 &amp;gt;
&lt;br&gt;&amp;gt; 2001:1938:235:dead:226:b9ff:fe75:6e5e.21: Flags [S], seq 413041093, win
&lt;br&gt;&amp;gt; 65535, options [mss 1440,nop,nop,sackOK,nop,wscale 1,nop,nop,TS val
&lt;br&gt;&amp;gt; 3435338387 ecr 0], length 0
&lt;/div&gt;&lt;br&gt;What does &amp;quot;pfctl -vvsr&amp;quot; give you for the rule? &amp;nbsp;It should include the number 
&lt;br&gt;of addresses assigned to the interface in the braces - e.g. &amp;quot;... (bge0:4) ...&amp;quot;
&lt;br&gt;&lt;br&gt;In addition, can you try to add separate rules for inet and inet6 - i.e.
&lt;br&gt;&lt;br&gt;pass in on $ext_if inet &amp;nbsp;proto tcp to ($ext_if) port 21
&lt;br&gt;pass in on $ext_if inet6 proto tcp to ($ext_if) port 21
&lt;br&gt;&lt;br&gt;and check the number of addresses with pfctl -vvsr?
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ext_if=&amp;quot;bge0&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; epsilon# ifconfig -a
&lt;br&gt;&amp;gt; bge0: flags=8843&amp;lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&amp;gt; metric 0 mtu
&lt;br&gt;&amp;gt; 1500
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options=9b&amp;lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ether 00:26:b9:75:6e:5e
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.10.11.5 netmask 0xffffffe0 broadcast 10.10.11.31
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 fe80::226:b9ff:fe75:6e5e%bge0 prefixlen 64 scopeid 0x1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.10.11.8 netmask 0xffffffe0 broadcast 10.10.11.31
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 2001:1938:235:dead:226:b9ff:fe75:6e5e prefixlen 64
&lt;br&gt;&amp;gt; autoconf
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; media: Ethernet autoselect (1000baseT &amp;lt;full-duplex&amp;gt;)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status: active
&lt;br&gt;&amp;gt; lo0: flags=8049&amp;lt;UP,LOOPBACK,RUNNING,MULTICAST&amp;gt; metric 0 mtu 16384
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options=3&amp;lt;RXCSUM,TXCSUM&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 127.0.0.1 netmask 0xff000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 ::1 prefixlen 128
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
&lt;br&gt;&amp;gt; pflog0: flags=0&amp;lt;&amp;gt; metric 0 mtu 33152
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Notice, that it works as expected with IPv4; meaning that when I use &amp;quot;to
&lt;br&gt;&amp;gt; ($ext_if)&amp;quot; and use ipv4 to connect, connection passes through, unlike
&lt;br&gt;&amp;gt; IPv6.
&lt;br&gt;&amp;gt; Also, OpenBSD pf works as expected with both IPv{4,6}
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760953&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;&amp;gt; To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760953&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; !DSPAM:4b22f113621191134040011!
&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760953&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760953&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IPv6%2C-PF-problem-tp26753982p26760953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26757792</id>
	<title>Re: Transition from IPFW: PF flags for IPFW &quot;setup&quot; and &quot;established&quot; keywords</title>
	<published>2009-12-12T05:58:17Z</published>
	<updated>2009-12-12T05:58:17Z</updated>
	<author>
		<name>Artyom Viklenko</name>
	</author>
	<content type="html">Holger Rauch пишет:
&lt;br&gt;&amp;gt; Hi to everybody,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; what are the correct combinations of flags for the IPFW &amp;quot;setup&amp;quot; and
&lt;br&gt;&amp;gt; &amp;quot;established&amp;quot; keywords?
&lt;br&gt;&lt;br&gt;PF's equivalent of IPFW's &amp;quot;setup&amp;quot; is 'flags S/SA'.
&lt;br&gt;Also, you have to include 'keep state' in the same rule
&lt;br&gt;(for FreeBSD versions up to 6.4, in 7.x and 8.x - it's
&lt;br&gt;a default behavior).
&lt;br&gt;&lt;br&gt;If connection is established, PF create state and match
&lt;br&gt;thraffic &amp;quot;internally&amp;quot; whithout special dedicated rules.
&lt;br&gt;&lt;br&gt;E.g.,
&lt;br&gt;&lt;br&gt;pass in on fxp0 inet proto tcp from any to any port 80 flags S/SA keep state
&lt;br&gt;&lt;br&gt;will pass TCP traffic to port 80 if it starts as it should
&lt;br&gt;beginning from the firts packet with only SYN-bit set
&lt;br&gt;of two bits SYN and ACK. State will be created for this
&lt;br&gt;flow if rest packets will follow usual three-way handshake.
&lt;br&gt;After this all packets in this flow will pass automatically
&lt;br&gt;untill connection will be closed (packets with FIN bits seen
&lt;br&gt;by PF) or timed out.
&lt;br&gt;&lt;br&gt;Something like this. :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sincerely yours,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Artyom Viklenko.
&lt;br&gt;-------------------------------------------------------
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26757792&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;artem@...&lt;/a&gt; | &lt;a href=&quot;http://www.aws-net.org.ua/~artem&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.aws-net.org.ua/~artem&lt;/a&gt;&lt;br&gt;FreeBSD: The Power to Serve &amp;nbsp; - &amp;nbsp;&lt;a href=&quot;http://www.freebsd.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26757792&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26757792&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Transition-from-IPFW%3A-PF-flags-for-IPFW-%22setup%22-and-%22established%22-keywords-tp26743142p26757792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26753982</id>
	<title>IPv6, PF problem</title>
	<published>2009-12-11T17:25:08Z</published>
	<updated>2009-12-11T17:25:08Z</updated>
	<author>
		<name>Aaron Stellman-3</name>
	</author>
	<content type="html">Hello there,
&lt;br&gt;Here is the problem I've encountered on a dual stack amd64 FreeBSD 8.0p1
&lt;br&gt;machine.
&lt;br&gt;&lt;br&gt;What works:
&lt;br&gt;pass in on $ext_if proto tcp to &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port 21
&lt;br&gt;&lt;br&gt;What doesn't work:
&lt;br&gt;pass in on $ext_if proto tcp to ($ext_if) port 21
&lt;br&gt;&lt;br&gt;here is what's logged when it doesn't work:
&lt;br&gt;listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size
&lt;br&gt;1515 bytes
&lt;br&gt;00:00:00.000000 rule 0/0(match): block in on bge0:
&lt;br&gt;2001:1938:235:beef:21b:21ff:fe37:d799.11220 &amp;gt;
&lt;br&gt;2001:1938:235:dead:226:b9ff:fe75:6e5e.21: Flags [S], seq 413041093, win
&lt;br&gt;65535, options [mss 1440,nop,nop,sackOK,nop,wscale 1,nop,nop,TS val
&lt;br&gt;3435338387 ecr 0], length 0
&lt;br&gt;&lt;br&gt;ext_if=&amp;quot;bge0&amp;quot;
&lt;br&gt;&lt;br&gt;epsilon# ifconfig -a
&lt;br&gt;bge0: flags=8843&amp;lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&amp;gt; metric 0 mtu
&lt;br&gt;1500
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options=9b&amp;lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ether 00:26:b9:75:6e:5e
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.10.11.5 netmask 0xffffffe0 broadcast 10.10.11.31
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 fe80::226:b9ff:fe75:6e5e%bge0 prefixlen 64 scopeid 0x1 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.10.11.8 netmask 0xffffffe0 broadcast 10.10.11.31
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 2001:1938:235:dead:226:b9ff:fe75:6e5e prefixlen 64
&lt;br&gt;autoconf 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; media: Ethernet autoselect (1000baseT &amp;lt;full-duplex&amp;gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status: active
&lt;br&gt;lo0: flags=8049&amp;lt;UP,LOOPBACK,RUNNING,MULTICAST&amp;gt; metric 0 mtu 16384
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options=3&amp;lt;RXCSUM,TXCSUM&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 127.0.0.1 netmask 0xff000000 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 ::1 prefixlen 128 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
&lt;br&gt;pflog0: flags=0&amp;lt;&amp;gt; metric 0 mtu 33152
&lt;br&gt;&lt;br&gt;&lt;br&gt;Notice, that it works as expected with IPv4; meaning that when I use &amp;quot;to
&lt;br&gt;($ext_if)&amp;quot; and use ipv4 to connect, connection passes through, unlike
&lt;br&gt;IPv6.
&lt;br&gt;Also, OpenBSD pf works as expected with both IPv{4,6}
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753982&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753982&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IPv6%2C-PF-problem-tp26753982p26753982.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743755</id>
	<title>Re: FW: clientNatLookup: PF open failed: (13) Permission denied</title>
	<published>2009-12-11T04:11:07Z</published>
	<updated>2009-12-11T04:11:07Z</updated>
	<author>
		<name>Ermal Luçi-3</name>
	</author>
	<content type="html">2009/12/11 John Dakos [ Enovation Technologies ] &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743755&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gdakos@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello all.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm running Squid &amp;nbsp;Version 3.0.STABLE20 on FreeBSD 8 Release &amp;nbsp;with PF &amp;nbsp; and
&lt;br&gt;&amp;gt; &amp;nbsp;..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;--enable-pf-transparent'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Squid is worked but in my cashe.log &amp;nbsp; I have &amp;nbsp; clientNatLookup: PF open
&lt;br&gt;&amp;gt; failed: (13) Permission denied every time...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have &amp;nbsp; &amp;nbsp;in rc.conf &amp;nbsp; &amp;nbsp; squid_enable=&amp;quot;YES&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any idea for that ?
&lt;br&gt;&amp;gt;
&lt;/div&gt;&amp;nbsp;Just allow the user with which you run squid permission of read(write?) to
&lt;br&gt;/dev/pf.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ermal
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743755&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743755&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-clientNatLookup%3A-PF-open-failed%3A-%2813%29-Permission-denied-tp26743069p26743755.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743069</id>
	<title>FW: clientNatLookup: PF open failed: (13) Permission denied</title>
	<published>2009-12-11T04:04:07Z</published>
	<updated>2009-12-11T04:04:07Z</updated>
	<author>
		<name>Enovation Technologies</name>
	</author>
	<content type="html">&lt;br&gt;Hello all.
&lt;br&gt;&lt;br&gt;I'm running Squid  Version 3.0.STABLE20 on FreeBSD 8 Release  with PF   and
&lt;br&gt; ..
&lt;br&gt;&lt;br&gt; --enable-pf-transparent'
&lt;br&gt;&lt;br&gt;Squid is worked but in my cashe.log   I have   clientNatLookup: PF open
&lt;br&gt;failed: (13) Permission denied every time...
&lt;br&gt;&lt;br&gt;I have    in rc.conf     squid_enable=&amp;quot;YES&amp;quot;
&lt;br&gt;&lt;br&gt;Any idea for that ?
&lt;br&gt; 
&lt;br&gt; 
&lt;br&gt; Thanks
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;__________ Information from ESET NOD32 Antivirus, version of virus signature
&lt;br&gt;database 4678 (20091211) __________
&lt;br&gt;&lt;br&gt;The message was checked by ESET NOD32 Antivirus.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.eset.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eset.com&lt;/a&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743069&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743069&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-clientNatLookup%3A-PF-open-failed%3A-%2813%29-Permission-denied-tp26743069p26743069.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743142</id>
	<title>Transition from IPFW: PF flags for IPFW &quot;setup&quot; and &quot;established&quot; keywords</title>
	<published>2009-12-11T03:59:01Z</published>
	<updated>2009-12-11T03:59:01Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi to everybody,
&lt;br&gt;&lt;br&gt;what are the correct combinations of flags for the IPFW &amp;quot;setup&amp;quot; and
&lt;br&gt;&amp;quot;established&amp;quot; keywords?
&lt;br&gt;&lt;br&gt;I googled for this but found no real mapping to pf flags.
&lt;br&gt;&lt;br&gt;Any hints/links are welcome.
&lt;br&gt;&lt;br&gt;Thanks in advance &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26743142/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Transition-from-IPFW%3A-PF-flags-for-IPFW-%22setup%22-and-%22established%22-keywords-tp26743142p26743142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675744</id>
	<title>Current problem reports assigned to freebsd-pf@FreeBSD.org</title>
	<published>2009-12-07T03:07:00Z</published>
	<updated>2009-12-07T03:07:00Z</updated>
	<author>
		<name>FreeBSD bugmaster</name>
	</author>
	<content type="html">Note: to view an individual PR, use:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;The following is a listing of current problems submitted by FreeBSD users.
&lt;br&gt;These represent problem reports covering all versions including
&lt;br&gt;experimental development code and obsolete releases.
&lt;br&gt;&lt;br&gt;&lt;br&gt;S Tracker &amp;nbsp; &amp;nbsp; &amp;nbsp;Resp. &amp;nbsp; &amp;nbsp; &amp;nbsp;Description
&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;o kern/140697 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf behaviour changes - must be documented
&lt;br&gt;o kern/137982 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] when pf can hit state limits, random IP failures 
&lt;br&gt;o kern/136781 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Packets appear to drop with pf scrub and if_bridg
&lt;br&gt;o kern/135948 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [gre] pf not natting gre protocol
&lt;br&gt;o kern/135162 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pfsync] pfsync(4) not usable with GENERIC kernel
&lt;br&gt;o kern/134996 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Anchor tables not included when pfctl(8) is run w
&lt;br&gt;o kern/133732 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] max-src-conn issue
&lt;br&gt;o kern/132769 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] 2 LOR's with pf task mtx / ifnet and &amp;nbsp;rtent
&lt;br&gt;f kern/132176 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf stalls connection when using route-to [regress
&lt;br&gt;o conf/130381 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [rc.d] [pf] [ip6] ipv6 not fully configured when pf st
&lt;br&gt;o kern/129861 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Argument names reversed in pf_table.c:_co
&lt;br&gt;o kern/127920 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] ipv6 and synproxy don't play well together
&lt;br&gt;o conf/127814 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] The flush in pf_reload in /etc/rc.d/pf does not w
&lt;br&gt;o kern/127439 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] deadlock in pf
&lt;br&gt;f kern/127345 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Problem with PF on FreeBSD7.0 [regression]
&lt;br&gt;o kern/127121 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf incorrect log priority
&lt;br&gt;o kern/127042 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf recursion panic if interface group is 
&lt;br&gt;o kern/125467 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf keep state bug while handling sessions between
&lt;br&gt;s kern/124933 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [ip6] pf does not support (drops) IPv6 fragmented
&lt;br&gt;o kern/124364 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] Kernel panic with pf + bridge
&lt;br&gt;o kern/122773 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf doesn't log uid or pid when configured to
&lt;br&gt;o kern/122014 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] FreeBSD 6.2 panic in pf
&lt;br&gt;o kern/121704 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF mangles loopback packets
&lt;br&gt;o kern/120281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [request] lost returning packets to PF for a rdr 
&lt;br&gt;o kern/120057 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Allow proper settings of ALTQ_HFSC. The c
&lt;br&gt;o bin/118355 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pfctl(8) help message options order false
&lt;br&gt;o kern/114567 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] pf_ioctl.c + if.c
&lt;br&gt;o kern/114095 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [carp] carp+pf delay with high state limit
&lt;br&gt;o kern/111220 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] repeatable hangs while manipulating pf tables
&lt;br&gt;s conf/110838 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] tagged parameter on nat not working on FreeBSD 5.
&lt;br&gt;o kern/103283 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync fails to sucessfully transfer some sessions
&lt;br&gt;o kern/103281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync reports bulk update failures
&lt;br&gt;o kern/93825 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf reply-to doesn't work
&lt;br&gt;o sparc/93530 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Incorrect checksums when using pf's route-to on s
&lt;br&gt;o kern/92949 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF + ALTQ problems with latency
&lt;br&gt;o bin/86635 &amp;nbsp; &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [patch] pfctl(8): allow new page character (^L) in pf.
&lt;br&gt;o kern/82271 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] cbq scheduler cause bad latency
&lt;br&gt;&lt;br&gt;37 problems total.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675744&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675744&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Current-problem-reports-assigned-to-freebsd-pf%40FreeBSD.org-tp26675744p26675744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674824</id>
	<title>RE: Limit connections doesn't work</title>
	<published>2009-12-07T01:42:53Z</published>
	<updated>2009-12-07T01:42:53Z</updated>
	<author>
		<name>Torsten Kersandt</name>
	</author>
	<content type="html">HI tom
&lt;br&gt;I know, and this is what I said.
&lt;br&gt;Yes you right and can replace the reload and put it into the a table with
&lt;br&gt;the pf command.
&lt;br&gt;But the server is on a 1mb/10mb ADSL line and trough put does not really
&lt;br&gt;matter.
&lt;br&gt;It was send as an example only not as a must do. This script &amp;nbsp;have done 5
&lt;br&gt;years ago as a quick hack
&lt;br&gt;And because I'm not a expert with PF, I'm subscribed to this list so I can
&lt;br&gt;learn without prejudice
&lt;br&gt;&lt;br&gt;Torsten
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Tom Uffner [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tom@...&lt;/a&gt;] 
&lt;br&gt;Sent: 06 December 2009 23:01
&lt;br&gt;To: Torsten Kersandt
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674824&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt;
&lt;br&gt;Subject: Re: Limit connections doesn't work
&lt;br&gt;&lt;br&gt;Torsten Kersandt wrote:
&lt;br&gt;&amp;gt; HI 
&lt;br&gt;&amp;gt; I personally have all ssh and alike ports closed on my servers.
&lt;br&gt;&amp;gt; If I want to connect to the server per ssh or whatever function, I login
&lt;br&gt;to a hidden php which adds my current IP to a sql table.
&lt;br&gt;&amp;gt; I use sql because I'm not the only one using this and want to keep track
&lt;br&gt;which admin is logging in.
&lt;br&gt;&amp;gt; A cron job is running every minute looking in the table and adding the new
&lt;br&gt;ip addresses to the pf include file and reloading PF
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Every night at 4am, I empty the text file and reload pf.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I know that this could be done more elegant but KISS is what I like.
&lt;br&gt;&lt;br&gt;that script is horribly inefficient and disruptive to your firewall
&lt;br&gt;throughput.
&lt;br&gt;&lt;br&gt;you could save a lot of unnecessary cpu cycles and speed up your
&lt;br&gt;connections a bit by simply replacing the reloads with pfctl
&lt;br&gt;commands that manipulate the table directly.
&lt;br&gt;&lt;br&gt;&amp;gt; #!/bin/sh
&lt;br&gt;&amp;gt; ### MySQL Setup ###
&lt;br&gt;&amp;gt; MUSER=&amp;quot;username&amp;quot;
&lt;br&gt;&amp;gt; MPASS=&amp;quot;password&amp;quot;
&lt;br&gt;&amp;gt; MHOST=&amp;quot;localhost&amp;quot;
&lt;br&gt;&amp;gt; MYSQL=&amp;quot;/usr/local/bin/mysql&amp;quot;
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; ### Get all new IP addresses ###
&lt;br&gt;&amp;gt; DBS=&amp;quot;$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'select ipAddress from
&lt;br&gt;intranet.ipCleared WHERE `timestamp` &amp;gt; (UNIX_TIMESTAMP()-60)')&amp;quot;
&lt;br&gt;&amp;gt; for ip in $DBS
&lt;br&gt;&amp;gt; do
&lt;br&gt;&amp;gt; &amp;nbsp;## this bit is emailed to me over cron run-output if a new IP address was
&lt;br&gt;found
&lt;br&gt;&amp;gt; &amp;nbsp;echo $ip &amp;gt;&amp;gt; /usr/local/etc/pf/pf.VNCallow
&lt;br&gt;&amp;gt; &amp;nbsp;echo &amp;quot;Added $ip to VNC Access from MYSQL Table&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;/etc/rc.d/pf reload
&lt;br&gt;&amp;gt; done
&lt;br&gt;&lt;br&gt;that loop at the end is anything but KISS.
&lt;br&gt;&lt;br&gt;select the new addresses and add them to the table with something like
&lt;br&gt;&lt;br&gt;pfctl -t VNCallow -T add $DBS
&lt;br&gt;&lt;br&gt;instead of that do loop. for persistence across reboots, select all the
&lt;br&gt;address in your SQL table &amp; add them to the pf table when pf starts.
&lt;br&gt;clear the table with
&lt;br&gt;&lt;br&gt;pfctl -t VNCallow -T flush
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674824&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674824&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26674824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26670148</id>
	<title>Re: Limit connections doesn't work</title>
	<published>2009-12-06T15:01:16Z</published>
	<updated>2009-12-06T15:01:16Z</updated>
	<author>
		<name>Tom Uffner</name>
	</author>
	<content type="html">Torsten Kersandt wrote:
&lt;br&gt;&amp;gt; HI 
&lt;br&gt;&amp;gt; I personally have all ssh and alike ports closed on my servers.
&lt;br&gt;&amp;gt; If I want to connect to the server per ssh or whatever function, I login to a hidden php which adds my current IP to a sql table.
&lt;br&gt;&amp;gt; I use sql because I'm not the only one using this and want to keep track which admin is logging in.
&lt;br&gt;&amp;gt; A cron job is running every minute looking in the table and adding the new ip addresses to the pf include file and reloading PF
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Every night at 4am, I empty the text file and reload pf.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I know that this could be done more elegant but KISS is what I like.
&lt;br&gt;&lt;br&gt;that script is horribly inefficient and disruptive to your firewall
&lt;br&gt;throughput.
&lt;br&gt;&lt;br&gt;you could save a lot of unnecessary cpu cycles and speed up your
&lt;br&gt;connections a bit by simply replacing the reloads with pfctl
&lt;br&gt;commands that manipulate the table directly.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; #!/bin/sh
&lt;br&gt;&amp;gt; ### MySQL Setup ###
&lt;br&gt;&amp;gt; MUSER=&amp;quot;username&amp;quot;
&lt;br&gt;&amp;gt; MPASS=&amp;quot;password&amp;quot;
&lt;br&gt;&amp;gt; MHOST=&amp;quot;localhost&amp;quot;
&lt;br&gt;&amp;gt; MYSQL=&amp;quot;/usr/local/bin/mysql&amp;quot;
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; ### Get all new IP addresses ###
&lt;br&gt;&amp;gt; DBS=&amp;quot;$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'select ipAddress from intranet.ipCleared WHERE `timestamp` &amp;gt; (UNIX_TIMESTAMP()-60)')&amp;quot;
&lt;br&gt;&amp;gt; for ip in $DBS
&lt;br&gt;&amp;gt; do
&lt;br&gt;&amp;gt; &amp;nbsp;## this bit is emailed to me over cron run-output if a new IP address was found
&lt;br&gt;&amp;gt; &amp;nbsp;echo $ip &amp;gt;&amp;gt; /usr/local/etc/pf/pf.VNCallow
&lt;br&gt;&amp;gt; &amp;nbsp;echo &amp;quot;Added $ip to VNC Access from MYSQL Table&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;/etc/rc.d/pf reload
&lt;br&gt;&amp;gt; done
&lt;/div&gt;&lt;br&gt;that loop at the end is anything but KISS.
&lt;br&gt;&lt;br&gt;select the new addresses and add them to the table with something like
&lt;br&gt;&lt;br&gt;pfctl -t VNCallow -T add $DBS
&lt;br&gt;&lt;br&gt;instead of that do loop. for persistence across reboots, select all the
&lt;br&gt;address in your SQL table &amp; add them to the pf table when pf starts.
&lt;br&gt;clear the table with
&lt;br&gt;&lt;br&gt;pfctl -t VNCallow -T flush
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26670148&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26670148&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26670148.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26666435</id>
	<title>RE: Limit connections doesn't work</title>
	<published>2009-12-06T08:17:42Z</published>
	<updated>2009-12-06T08:17:42Z</updated>
	<author>
		<name>Torsten Kersandt</name>
	</author>
	<content type="html">HI 
&lt;br&gt;I personally have all ssh and alike ports closed on my servers.
&lt;br&gt;If I want to connect to the server per ssh or whatever function, I login to a hidden php which adds my current IP to a sql table.
&lt;br&gt;I use sql because I'm not the only one using this and want to keep track which admin is logging in.
&lt;br&gt;A cron job is running every minute looking in the table and adding the new ip addresses to the pf include file and reloading PF
&lt;br&gt;&lt;br&gt;Every night at 4am, I empty the text file and reload pf.
&lt;br&gt;&lt;br&gt;I know that this could be done more elegant but KISS is what I like.
&lt;br&gt;&lt;br&gt;In addition I have tcpserver running a perl script on a non privileged port to add a IP to the sql tables if apache fails.
&lt;br&gt;&lt;br&gt;&lt;br&gt;#!/bin/sh
&lt;br&gt;### MySQL Setup ###
&lt;br&gt;MUSER=&amp;quot;username&amp;quot;
&lt;br&gt;MPASS=&amp;quot;password&amp;quot;
&lt;br&gt;MHOST=&amp;quot;localhost&amp;quot;
&lt;br&gt;MYSQL=&amp;quot;/usr/local/bin/mysql&amp;quot;
&lt;br&gt;#
&lt;br&gt;### Get all new IP addresses ###
&lt;br&gt;DBS=&amp;quot;$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'select ipAddress from intranet.ipCleared WHERE `timestamp` &amp;gt; (UNIX_TIMESTAMP()-60)')&amp;quot;
&lt;br&gt;for ip in $DBS
&lt;br&gt;do
&lt;br&gt;&amp;nbsp;## this bit is emailed to me over cron run-output if a new IP address was found
&lt;br&gt;&amp;nbsp;echo $ip &amp;gt;&amp;gt; /usr/local/etc/pf/pf.VNCallow
&lt;br&gt;&amp;nbsp;echo &amp;quot;Added $ip to VNC Access from MYSQL Table&amp;quot;
&lt;br&gt;&amp;nbsp;/etc/rc.d/pf reload
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26666435&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26666435&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26666435.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664929</id>
	<title>Re: Limit connections doens't work</title>
	<published>2009-12-06T05:18:21Z</published>
	<updated>2009-12-06T05:18:21Z</updated>
	<author>
		<name>olli hauer</name>
	</author>
	<content type="html">Nico De Dobbeleer wrote:
&lt;br&gt;&amp;gt; Hello, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As most of the public ip's my servers are constantly under bruteforce attack see example: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dec 5 13:56:36 hosting sshd[18621]: Failed password for invalid user tim from 173.10.126.226 port 47871 ssh2 
&lt;br&gt;&amp;gt; Dec 5 13:56:37 hosting sshd[18623]: Invalid user support123 from 173.10.126.226 
&lt;br&gt;&amp;gt; Dec 5 13:56:39 hosting sshd[18623]: Failed password for invalid user support123 from 173.10.126.226 port 48289 ssh2 
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I want to limit the connection over ssh to a specific ipaddress and I added the rules below for that. 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------------------ 
&lt;br&gt;&amp;gt; #Tables 
&lt;br&gt;&amp;gt; table &amp;lt;abusive_ips&amp;gt; persist file &amp;quot;/etc/pf.abusive_ips.block.list&amp;quot; 
&lt;br&gt;&amp;gt; table &amp;lt;brute&amp;gt; persist 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Rules 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; block quick from &amp;lt;abusive_ips&amp;gt; 
&lt;br&gt;&amp;gt; block quick from &amp;lt;brute&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Limit connections per IP 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;&amp;gt; (max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) 
&lt;br&gt;&amp;gt; pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;&amp;gt; (max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;brute&amp;gt; flush) 
&lt;br&gt;&amp;gt; pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;&amp;gt; (max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) 
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------------------------------- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The only problem is that it doesn't work. These rules don't write the abusive ip in the abusif list file or in the &amp;lt;brute&amp;gt; table. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Anyone an idea why it doesn't overload the ip's when the connections per ip are more then 10 of more then 3/15? 
&lt;/div&gt;&lt;br&gt;- which FreeBSD version is this 6.x 7.x/8.x?
&lt;br&gt;&lt;br&gt;- avoid the quick keyword in the rules with overload
&lt;br&gt;&lt;br&gt;- pf can preload IP's from file specified in
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;table &amp;lt;tablename&amp;gt; ... file &amp;quot;/filename&amp;quot; but does not write IP's into
&lt;br&gt;&amp;nbsp; &amp;nbsp;the file. I use the script below to do this on a OpenBSD machine.
&lt;br&gt;&lt;br&gt;- rewrite your rule and avoid the any keyword
&lt;br&gt;pass in on { $ext_if, $int_if, $mng_if } inet proto tcp \
&lt;br&gt;&amp;nbsp; &amp;nbsp;from !&amp;lt;brute&amp;gt; to xx.xx.xx.xx port ssh flags S/SA keep state \
&lt;br&gt;&amp;nbsp; &amp;nbsp;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;brute&amp;gt; flush)
&lt;br&gt;&lt;br&gt;hint:
&lt;br&gt;- look for the additional keyword global (flush global)
&lt;br&gt;- If the IP in your rule is your base IP on $ext_if write it with as 
&lt;br&gt;$ext_if:0
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;this script writes IP's from the bf_* tables into a file so you can
&lt;br&gt;preload them next time pf rules are installed or the machine reboots.
&lt;br&gt;additional it can send you a mail with IP's added to the table and if
&lt;br&gt;GeoIP is installed you get the GeoIP info.
&lt;br&gt;&lt;br&gt;With a little modification of the script/rules It will work for you
&lt;br&gt;&lt;br&gt;&lt;br&gt;#!/bin/sh
&lt;br&gt;##################################################################
&lt;br&gt;# $Source: RCS/pftable_to_file.sh,v $
&lt;br&gt;# OS: OpenBSD
&lt;br&gt;#
&lt;br&gt;# olli hauer
&lt;br&gt;#
&lt;br&gt;##################################################################
&lt;br&gt;&lt;br&gt;# sample rule for pf
&lt;br&gt;# ---------------------------
&lt;br&gt;# block in log quick proto { tcp, udp } from &amp;lt;bf_ssh&amp;gt; &amp;nbsp;\
&lt;br&gt;# &amp;nbsp; to any port ssh label BRUTFORCE-SSH &amp;nbsp; &amp;nbsp;# table for overload connections
&lt;br&gt;#
&lt;br&gt;# pass in log on $if_ext inet proto tcp from ! &amp;lt;bf_ssh&amp;gt; to $if_ext \
&lt;br&gt;# &amp;nbsp; &amp;nbsp; port = ssh flags S/SA keep state \
&lt;br&gt;# &amp;nbsp; &amp;nbsp; (source-track rule, max-src-conn 10, \
&lt;br&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp;max-src-conn-rate 3/90, overload &amp;lt;bf_ssh&amp;gt; \
&lt;br&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp;flush global, if-bound, src.track 90) \
&lt;br&gt;# &amp;nbsp; &amp;nbsp; label &amp;quot;SSH&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;umask 077
&lt;br&gt;&lt;br&gt;PF_TABLES=&amp;quot;bf_mail bf_ssh bf_web&amp;quot;
&lt;br&gt;OUTDIR=&amp;quot;/etc/pf&amp;quot;
&lt;br&gt;GEOIP=/usr/local/bin/geoiplookup
&lt;br&gt;&lt;br&gt;# hold the output from pfctl -tx -Ts
&lt;br&gt;TMP_PFCTL=`mktemp /tmp/.tmp_pf_table.XXXXXXXXXX` || exit 1
&lt;br&gt;&lt;br&gt;# hold the diff between old and new
&lt;br&gt;TMP_DIFF=`mktemp /tmp/.tmp_diff.XXXXXXXXXX` || exit 1
&lt;br&gt;&lt;br&gt;trap 'rm -f ${TMP_PFCTL} ${TMP_DIFF}' 0 1 2 3 13 15
&lt;br&gt;&lt;br&gt;[ -d ${OUTDIR} ] || mkdir -p ${OUTDIR}
&lt;br&gt;&lt;br&gt;for TABLE in ${PF_TABLES}; do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# make sure the output file exists
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ -f ${OUTDIR}/${TABLE} ] || /usr/bin/touch ${OUTDIR}/${TABLE}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# extraxt IP's from table
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/sbin/pfctl -t${TABLE} -Ts | awk '{print $1}' &amp;gt; ${TMP_PFCTL}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# we need only the '+diff' to grep for this later
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/bin/diff -bu ${OUTDIR}/${TABLE} ${TMP_PFCTL} &amp;gt; ${TMP_DIFF}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETVAL=$?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;case ${RETVAL} in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0) continue ;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # save the old file
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ -f ${OUTDIR}/${TABLE} ]; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp ${OUTDIR}/${TABLE} ${OUTDIR}/${TABLE}.old
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # mail message header
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;change in table: ${TABLE}&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;------------------------------------&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # lookup the IP in the GeoIP database
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ -x ${GEOIP} ]; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for IP in `egrep &amp;quot;^\+[0-9]&amp;quot; ${TMP_DIFF} | tr -d \+`; do
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # print the IP wo. linefeed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf &amp;quot;%-20s # &amp;quot; ${IP}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # strip netmask if we add NET by hand
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IPT=`echo ${IP} | sed 's/\/[[:digit:]]*//g'`
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # make a short GeoIP output
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ${GEOIP} ${IPT} | sed 's/ Country Edition//g'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; done
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; egrep &amp;quot;^\+[0-9]&amp;quot; ${TMP_DIFF} | tr -d \+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mv ${TMP_PFCTL} ${OUTDIR}/${TABLE}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*) echo &amp;quot;error in diff&amp;quot; ;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;esac
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;small snippet from my bf_ssh file (places with IP rangees I don't visit 
&lt;br&gt;in near time)
&lt;br&gt;&lt;br&gt;snippet from file:/etc/pf/bf_ssh
&lt;br&gt;12.0.0.0/8
&lt;br&gt;21.0.0.0/8
&lt;br&gt;24.0.0.0/8
&lt;br&gt;25.0.0.0/8
&lt;br&gt;26.0.0.0/8
&lt;br&gt;28.0.0.0/8
&lt;br&gt;29.0.0.0/8
&lt;br&gt;30.0.0.0/8
&lt;br&gt;32.0.0.0/8
&lt;br&gt;33.0.0.0/8
&lt;br&gt;38.0.0.0/8
&lt;br&gt;58.0.0.0/8
&lt;br&gt;59.0.0.0/8
&lt;br&gt;60.0.0.0/8
&lt;br&gt;61.0.0.0/8
&lt;br&gt;62.0.0.0/8
&lt;br&gt;63.0.0.0/8
&lt;br&gt;64.0.0.0/8
&lt;br&gt;...
&lt;br&gt;216.0.0.0/8
&lt;br&gt;217.0.0.0/8
&lt;br&gt;218.0.0.0/8
&lt;br&gt;219.0.0.0/8
&lt;br&gt;220.0.0.0/8
&lt;br&gt;221.0.0.0/8
&lt;br&gt;222.0.0.0/8
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664929&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664929&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26664929.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663251</id>
	<title>Re: Limit connections doens't work</title>
	<published>2009-12-06T01:19:11Z</published>
	<updated>2009-12-06T01:19:11Z</updated>
	<author>
		<name>Vitaliy Vladimirovich</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; 
&lt;br&gt;--- Original Message --- &amp;nbsp;
&lt;br&gt;From: Nico De Dobbeleer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nico@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; &amp;nbsp;
&lt;br&gt;Date: 5 december, 16:09:52 &amp;nbsp;
&lt;br&gt;Subject: Limit connections doens't work &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; Hello, &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;As most of the public ip's my servers are constantly under bruteforce attack see example: &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Dec 5 13:56:36 hosting sshd[18621]: Failed password for invalid user tim from 173.10.126.226 port 47871 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:37 hosting sshd[18623]: Invalid user support123 from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:39 hosting sshd[18623]: Failed password for invalid user support123 from 173.10.126.226 port 48289 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:41 hosting sshd[18625]: Invalid user support from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:43 hosting sshd[18625]: Failed password for invalid user support from 173.10.126.226 port 48676 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:47 hosting sshd[18627]: Invalid user jnanchito from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:50 hosting sshd[18627]: Failed password for invalid user jnanchito from 173.10.126.226 port 49122 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:51 hosting sshd[18629]: Invalid user rtorres from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:53 hosting sshd[18629]: Failed password for invalid user rtorres from 173.10.126.226 port 49872 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:55 hosting sshd[18631]: Invalid user jatema from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:56:57 hosting sshd[18631]: Failed password for invalid user jatema from 173.10.126.226 port 50293 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:01 hosting sshd[18633]: Failed password for invalid user root from 173.10.126.226 port 50702 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:04 hosting sshd[18635]: Failed password for invalid user root from 173.10.126.226 port 51154 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:06 hosting sshd[18637]: Invalid user boss from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:08 hosting sshd[18637]: Failed password for invalid user boss from 173.10.126.226 port 51507 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:09 hosting sshd[18639]: Invalid user sasha from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:11 hosting sshd[18639]: Failed password for invalid user sasha from 173.10.126.226 port 51929 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:13 hosting sshd[18641]: Invalid user vic from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:14 hosting sshd[18641]: Failed password for invalid user vic from 173.10.126.226 port 52321 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:16 hosting sshd[18643]: Invalid user ranjith from 173.10.126.226 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:18 hosting sshd[18643]: Failed password for invalid user ranjith from 173.10.126.226 port 52650 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:21 hosting sshd[18645]: Failed password for invalid user root from 173.10.126.226 port 53087 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:25 hosting sshd[18647]: Failed password for invalid user root from 173.10.126.226 port 53447 ssh2 &amp;nbsp;
&lt;br&gt;Dec 5 13:57:29 hosting sshd[18649]: Failed password for invalid user root from 173.10.126.226 port 53852 ssh2 &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Now I want to limit the connection over ssh to a specific ipaddress and I added the rules below for that. &amp;nbsp;
&lt;br&gt;------------------------------------------------------------------------------------------------------------------ &amp;nbsp;
&lt;br&gt;#Tables &amp;nbsp;
&lt;br&gt;table &amp;lt;abusive_ips&amp;gt; persist file &amp;quot;/etc/pf.abusive_ips.block.list&amp;quot; &amp;nbsp;
&lt;br&gt;table &amp;lt;brute&amp;gt; persist &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;# Rules &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;block quick from &amp;lt;abusive_ips&amp;gt; &amp;nbsp;
&lt;br&gt;block quick from &amp;lt;brute&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;# Limit connections per IP &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state &amp;nbsp;
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) &amp;nbsp;
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state &amp;nbsp;
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;brute&amp;gt; flush) &amp;nbsp;
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state &amp;nbsp;
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) &amp;nbsp;
&lt;br&gt;-------------------------------------------------------------------------------------------------------------------- &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;The only problem is that it doesn't work. These rules don't write the abusive ip in the abusif list file or in the &amp;lt;brute&amp;gt; table. &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Anyone an idea why it doesn't overload the ip's when the connections per ip are more then 10 of more then 3/15? &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;With kind regards, &amp;nbsp;
&lt;br&gt;Nico De Dobbeleer &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;_______________________________________________ &amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list &amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&amp;nbsp; 
&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;    I think you should specify &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;source-track rule (rule or lobal) in your rulesLike this: &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state &amp;nbsp;
&lt;br&gt;(max 10, source-track rule, max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;See in PF FAQ &amp;nbsp;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;Stateful Tracking Options.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663251&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26663251.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26655959</id>
	<title>Limit connections doens't work</title>
	<published>2009-12-05T06:09:52Z</published>
	<updated>2009-12-05T06:09:52Z</updated>
	<author>
		<name>Nico De Dobbeleer</name>
	</author>
	<content type="html">Hello, 
&lt;br&gt;&lt;br&gt;As most of the public ip's my servers are constantly under bruteforce attack see example: 
&lt;br&gt;&lt;br&gt;Dec 5 13:56:36 hosting sshd[18621]: Failed password for invalid user tim from 173.10.126.226 port 47871 ssh2 
&lt;br&gt;Dec 5 13:56:37 hosting sshd[18623]: Invalid user support123 from 173.10.126.226 
&lt;br&gt;Dec 5 13:56:39 hosting sshd[18623]: Failed password for invalid user support123 from 173.10.126.226 port 48289 ssh2 
&lt;br&gt;Dec 5 13:56:41 hosting sshd[18625]: Invalid user support from 173.10.126.226 
&lt;br&gt;Dec 5 13:56:43 hosting sshd[18625]: Failed password for invalid user support from 173.10.126.226 port 48676 ssh2 
&lt;br&gt;Dec 5 13:56:47 hosting sshd[18627]: Invalid user jnanchito from 173.10.126.226 
&lt;br&gt;Dec 5 13:56:50 hosting sshd[18627]: Failed password for invalid user jnanchito from 173.10.126.226 port 49122 ssh2 
&lt;br&gt;Dec 5 13:56:51 hosting sshd[18629]: Invalid user rtorres from 173.10.126.226 
&lt;br&gt;Dec 5 13:56:53 hosting sshd[18629]: Failed password for invalid user rtorres from 173.10.126.226 port 49872 ssh2 
&lt;br&gt;Dec 5 13:56:55 hosting sshd[18631]: Invalid user jatema from 173.10.126.226 
&lt;br&gt;Dec 5 13:56:57 hosting sshd[18631]: Failed password for invalid user jatema from 173.10.126.226 port 50293 ssh2 
&lt;br&gt;Dec 5 13:57:01 hosting sshd[18633]: Failed password for invalid user root from 173.10.126.226 port 50702 ssh2 
&lt;br&gt;Dec 5 13:57:04 hosting sshd[18635]: Failed password for invalid user root from 173.10.126.226 port 51154 ssh2 
&lt;br&gt;Dec 5 13:57:06 hosting sshd[18637]: Invalid user boss from 173.10.126.226 
&lt;br&gt;Dec 5 13:57:08 hosting sshd[18637]: Failed password for invalid user boss from 173.10.126.226 port 51507 ssh2 
&lt;br&gt;Dec 5 13:57:09 hosting sshd[18639]: Invalid user sasha from 173.10.126.226 
&lt;br&gt;Dec 5 13:57:11 hosting sshd[18639]: Failed password for invalid user sasha from 173.10.126.226 port 51929 ssh2 
&lt;br&gt;Dec 5 13:57:13 hosting sshd[18641]: Invalid user vic from 173.10.126.226 
&lt;br&gt;Dec 5 13:57:14 hosting sshd[18641]: Failed password for invalid user vic from 173.10.126.226 port 52321 ssh2 
&lt;br&gt;Dec 5 13:57:16 hosting sshd[18643]: Invalid user ranjith from 173.10.126.226 
&lt;br&gt;Dec 5 13:57:18 hosting sshd[18643]: Failed password for invalid user ranjith from 173.10.126.226 port 52650 ssh2 
&lt;br&gt;Dec 5 13:57:21 hosting sshd[18645]: Failed password for invalid user root from 173.10.126.226 port 53087 ssh2 
&lt;br&gt;Dec 5 13:57:25 hosting sshd[18647]: Failed password for invalid user root from 173.10.126.226 port 53447 ssh2 
&lt;br&gt;Dec 5 13:57:29 hosting sshd[18649]: Failed password for invalid user root from 173.10.126.226 port 53852 ssh2 
&lt;br&gt;&lt;br&gt;Now I want to limit the connection over ssh to a specific ipaddress and I added the rules below for that. 
&lt;br&gt;------------------------------------------------------------------------------------------------------------------ 
&lt;br&gt;#Tables 
&lt;br&gt;table &amp;lt;abusive_ips&amp;gt; persist file &amp;quot;/etc/pf.abusive_ips.block.list&amp;quot; 
&lt;br&gt;table &amp;lt;brute&amp;gt; persist 
&lt;br&gt;&lt;br&gt;# Rules 
&lt;br&gt;&lt;br&gt;block quick from &amp;lt;abusive_ips&amp;gt; 
&lt;br&gt;block quick from &amp;lt;brute&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;# Limit connections per IP 
&lt;br&gt;&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) 
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;brute&amp;gt; flush) 
&lt;br&gt;pass in quick on { $ext_if, $int_if, $mng_if } inet proto tcp from any to xx.xx.xx.xx port ssh flags S/SA keep state 
&lt;br&gt;(max-src-conn 10, max-src-conn-rate 3/15, overload &amp;lt;abusive_ips&amp;gt; flush) 
&lt;br&gt;-------------------------------------------------------------------------------------------------------------------- 
&lt;br&gt;&lt;br&gt;The only problem is that it doesn't work. These rules don't write the abusive ip in the abusif list file or in the &amp;lt;brute&amp;gt; table. 
&lt;br&gt;&lt;br&gt;Anyone an idea why it doesn't overload the ip's when the connections per ip are more then 10 of more then 3/15? 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;With kind regards, 
&lt;br&gt;Nico De Dobbeleer 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655959&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655959&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Limit-connections-doens%27t-work-tp26655959p26655959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26640025</id>
	<title>Re: PF + load balancing over 100Mbit traffic</title>
	<published>2009-12-04T01:42:14Z</published>
	<updated>2009-12-04T01:42:14Z</updated>
	<author>
		<name>Maciej Wierzbicki</name>
	</author>
	<content type="html">Adam PAPAI wrote on 2009-12-03 09:19:
&lt;br&gt;&lt;br&gt;&amp;gt; Do you have any advice? Is it time to get a Layer 7 switch and do load 
&lt;br&gt;&amp;gt; balancing with it? Or is it possible to do it in a PF way without a 
&lt;br&gt;&amp;gt; Content Switch?
&lt;br&gt;&lt;br&gt;My advice is to use content switching via some 3rd-party software, for 
&lt;br&gt;example HAProxy - perfect tool for rr/lb. I have webclusters set up this 
&lt;br&gt;way, some of them handle even 200-250Mbps in peak. No problems. If you 
&lt;br&gt;need any additional info, let me know.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;* &amp;nbsp; Maciej Wierzbicki * At paranoia's poison door &amp;nbsp;*
&lt;br&gt;* &amp;nbsp; VOO1-RIPE &amp;nbsp; *
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640025&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-%2B-load-balancing-over-100Mbit-traffic-tp26622673p26640025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26624399</id>
	<title>Re: PF + load balancing over 100Mbit traffic [SOLVED]</title>
	<published>2009-12-03T03:19:42Z</published>
	<updated>2009-12-03T03:19:42Z</updated>
	<author>
		<name>Adam PAPAI</name>
	</author>
	<content type="html">Gergely CZUCZY wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, 03 Dec 2009 09:19:29 +0100
&lt;br&gt;&amp;gt; Adam PAPAI &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wooh@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Dear List,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have a feeling that PF can't do perfect round-robin load balancing 
&lt;br&gt;&amp;gt;&amp;gt; over 100Mbit.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When our PF server's (Dual Quad Core 3Ghz with 8GB ram) network
&lt;br&gt;&amp;gt;&amp;gt; traffic goes over 100Mbit, the 80 port's connect time increases to
&lt;br&gt;&amp;gt;&amp;gt; 3-5-10 sec instead of the stable 0.001-0.002 sec. The web servers
&lt;br&gt;&amp;gt;&amp;gt; feel good, they don't have load, the redundant master-slave database
&lt;br&gt;&amp;gt;&amp;gt; servers feel good, they dont have high load. So everything seems
&lt;br&gt;&amp;gt;&amp;gt; fine, except the connect time. (Our checker script asks only a HEAD
&lt;br&gt;&amp;gt;&amp;gt; request from the web servers)
&lt;br&gt;&amp;gt; Have you adjusted the TCP timeout parameters? this can be caused by the
&lt;br&gt;&amp;gt; standard 30sec timeouts and your state table is getting filled up. I'd
&lt;br&gt;&amp;gt; check the following parameters:
&lt;br&gt;&amp;gt; &amp;nbsp;- timeout tcp.{closing,finwait,closed}
&lt;br&gt;&amp;gt; &amp;nbsp;- interval
&lt;br&gt;&amp;gt; &amp;nbsp;- limit states
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;I really had to change the pf.conf and set the values below.
&lt;br&gt;&lt;br&gt;set limit states 40000
&lt;br&gt;set timeout interval 5
&lt;br&gt;&lt;br&gt;In the future i should increase the limit states and reduce the timeout 
&lt;br&gt;interval :)
&lt;br&gt;&lt;br&gt;Since i've changed the values, the connection time is between 0.001 and 
&lt;br&gt;0.004, the traffic is over than 110Mbit.
&lt;br&gt;&lt;br&gt;\o/
&lt;br&gt;&lt;br&gt;Have a nice day :)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adam PAPAI
&lt;br&gt;NETIDEA Informatikai Szolgaltato Kft.
&lt;br&gt;&lt;a href=&quot;http://www.netidea.hu&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.netidea.hu&lt;/a&gt;&lt;br&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624399&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wooh@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624399&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624399&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-%2B-load-balancing-over-100Mbit-traffic-tp26622673p26624399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623142</id>
	<title>Re: PF + load balancing over 100Mbit traffic</title>
	<published>2009-12-03T01:13:27Z</published>
	<updated>2009-12-03T01:13:27Z</updated>
	<author>
		<name>Gergely CZUCZY</name>
	</author>
	<content type="html">On Thu, 03 Dec 2009 09:19:29 +0100
&lt;br&gt;Adam PAPAI &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wooh@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear List,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a feeling that PF can't do perfect round-robin load balancing 
&lt;br&gt;&amp;gt; over 100Mbit.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When our PF server's (Dual Quad Core 3Ghz with 8GB ram) network
&lt;br&gt;&amp;gt; traffic goes over 100Mbit, the 80 port's connect time increases to
&lt;br&gt;&amp;gt; 3-5-10 sec instead of the stable 0.001-0.002 sec. The web servers
&lt;br&gt;&amp;gt; feel good, they don't have load, the redundant master-slave database
&lt;br&gt;&amp;gt; servers feel good, they dont have high load. So everything seems
&lt;br&gt;&amp;gt; fine, except the connect time. (Our checker script asks only a HEAD
&lt;br&gt;&amp;gt; request from the web servers)
&lt;/div&gt;Have you adjusted the TCP timeout parameters? this can be caused by the
&lt;br&gt;standard 30sec timeouts and your state table is getting filled up. I'd
&lt;br&gt;check the following parameters:
&lt;br&gt;&amp;nbsp;- timeout tcp.{closing,finwait,closed}
&lt;br&gt;&amp;nbsp;- interval
&lt;br&gt;&amp;nbsp;- limit states
&lt;br&gt;&lt;br&gt;pftop can be a great help for checking pf's behaviour, it's available
&lt;br&gt;in ports.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The internal network has Gbit connection so as the internet side.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Do you have any advice? Is it time to get a Layer 7 switch and do
&lt;br&gt;&amp;gt; load balancing with it? Or is it possible to do it in a PF way
&lt;br&gt;&amp;gt; without a Content Switch?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2 web servers and 2 database servers are involved.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [web 1] ---|
&lt;br&gt;&amp;gt; [web 2] ---|
&lt;br&gt;&amp;gt; [db &amp;nbsp;1] ---|---[pf/web 3/default gw]---internet
&lt;br&gt;&amp;gt; [db &amp;nbsp;2] ---|
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For a while the web server on the PF server is down to test, but it
&lt;br&gt;&amp;gt; does the same connection time with a running apache and without a
&lt;br&gt;&amp;gt; running apache.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any idea? Our internet traffic average is 100Mbit-130Mbit and the 
&lt;br&gt;&amp;gt; connect time makes me so sad.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sincerely,
&lt;br&gt;Gergely CZUCZY
&lt;br&gt;Harmless Digital Bt
&lt;br&gt;&lt;br&gt;+36-30-9702963
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623142&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623142&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-%2B-load-balancing-over-100Mbit-traffic-tp26622673p26623142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622673</id>
	<title>PF + load balancing over 100Mbit traffic</title>
	<published>2009-12-03T00:19:29Z</published>
	<updated>2009-12-03T00:19:29Z</updated>
	<author>
		<name>Adam PAPAI</name>
	</author>
	<content type="html">Dear List,
&lt;br&gt;&lt;br&gt;I have a feeling that PF can't do perfect round-robin load balancing 
&lt;br&gt;over 100Mbit.
&lt;br&gt;&lt;br&gt;When our PF server's (Dual Quad Core 3Ghz with 8GB ram) network traffic 
&lt;br&gt;goes over 100Mbit, the 80 port's connect time increases to 3-5-10 sec 
&lt;br&gt;instead of the stable 0.001-0.002 sec. The web servers feel good, they 
&lt;br&gt;don't have load, the redundant master-slave database servers feel good, 
&lt;br&gt;they dont have high load. So everything seems fine, except the connect 
&lt;br&gt;time. (Our checker script asks only a HEAD request from the web servers)
&lt;br&gt;&lt;br&gt;The internal network has Gbit connection so as the internet side.
&lt;br&gt;&lt;br&gt;Do you have any advice? Is it time to get a Layer 7 switch and do load 
&lt;br&gt;balancing with it? Or is it possible to do it in a PF way without a 
&lt;br&gt;Content Switch?
&lt;br&gt;&lt;br&gt;2 web servers and 2 database servers are involved.
&lt;br&gt;&lt;br&gt;[web 1] ---|
&lt;br&gt;[web 2] ---|
&lt;br&gt;[db &amp;nbsp;1] ---|---[pf/web 3/default gw]---internet
&lt;br&gt;[db &amp;nbsp;2] ---|
&lt;br&gt;&lt;br&gt;&lt;br&gt;For a while the web server on the PF server is down to test, but it does 
&lt;br&gt;the same connection time with a running apache and without a running apache.
&lt;br&gt;&lt;br&gt;Any idea? Our internet traffic average is 100Mbit-130Mbit and the 
&lt;br&gt;connect time makes me so sad.
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adam PAPAI
&lt;br&gt;NETIDEA Informatikai Szolgaltato Kft.
&lt;br&gt;&lt;a href=&quot;http://www.netidea.hu&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.netidea.hu&lt;/a&gt;&lt;br&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622673&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wooh@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622673&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622673&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-%2B-load-balancing-over-100Mbit-traffic-tp26622673p26622673.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622671</id>
	<title>PF + load balancing over 100Mbit</title>
	<published>2009-12-03T00:16:54Z</published>
	<updated>2009-12-03T00:16:54Z</updated>
	<author>
		<name>Adam PAPAI</name>
	</author>
	<content type="html">Dear List,
&lt;br&gt;&lt;br&gt;I have a feeling that PF can't do perfect round-robin load balancing 
&lt;br&gt;over 100Mbit.
&lt;br&gt;&lt;br&gt;When our PF server's (Dual Quad Core 3Ghz with 8GB ram) network traffic 
&lt;br&gt;goes over 100Mbit, the 80 port's connect time increases to 3-5-10 sec 
&lt;br&gt;instead of the stable 0.001-0.002 sec. The web servers feel good, they 
&lt;br&gt;don't have load, the redundant master-slave database servers feel good, 
&lt;br&gt;they dont have high load. So everything seems fine, except the connect 
&lt;br&gt;time. (Our checker script asks only a HEAD request from the web servers)
&lt;br&gt;&lt;br&gt;The internal network has Gbit connection so as the internet side.
&lt;br&gt;&lt;br&gt;Do you have any advice? Is it time to get a Layer 7 switch and do load 
&lt;br&gt;balancing with it? Or is it possible to do it in a PF way without a 
&lt;br&gt;Content Switch?
&lt;br&gt;&lt;br&gt;2 web servers and 2 database servers are involved.
&lt;br&gt;&lt;br&gt;[web 1] ---|
&lt;br&gt;[web 2] ---|
&lt;br&gt;[db &amp;nbsp;1] ---|---[pf/web 3/default gw]---internet
&lt;br&gt;[db &amp;nbsp;2] ---|
&lt;br&gt;&lt;br&gt;&lt;br&gt;For a while the web server on the PF server is down to test, but it does 
&lt;br&gt;the same connection time with a running apache and without a running apache.
&lt;br&gt;&lt;br&gt;Any idea? Our internet traffic average is 100Mbit-130Mbit and the 
&lt;br&gt;connect time makes me so sad.
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adam PAPAI
&lt;br&gt;NETIDEA Informatikai Szolgaltato Kft.
&lt;br&gt;&lt;a href=&quot;http://www.netidea.hu&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.netidea.hu&lt;/a&gt;&lt;br&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622671&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wooh@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622671&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622671&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PF-%2B-load-balancing-over-100Mbit-tp26622671p26622671.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26572966</id>
	<title>Current problem reports assigned to freebsd-pf@FreeBSD.org</title>
	<published>2009-11-30T03:06:58Z</published>
	<updated>2009-11-30T03:06:58Z</updated>
	<author>
		<name>FreeBSD bugmaster</name>
	</author>
	<content type="html">Note: to view an individual PR, use:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;The following is a listing of current problems submitted by FreeBSD users.
&lt;br&gt;These represent problem reports covering all versions including
&lt;br&gt;experimental development code and obsolete releases.
&lt;br&gt;&lt;br&gt;&lt;br&gt;S Tracker &amp;nbsp; &amp;nbsp; &amp;nbsp;Resp. &amp;nbsp; &amp;nbsp; &amp;nbsp;Description
&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;o kern/140697 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf behaviour changes - must be documented
&lt;br&gt;o kern/137982 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] when pf can hit state limits, random IP failures 
&lt;br&gt;o kern/136781 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Packets appear to drop with pf scrub and if_bridg
&lt;br&gt;o kern/135948 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [gre] pf not natting gre protocol
&lt;br&gt;o kern/135162 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pfsync] pfsync(4) not usable with GENERIC kernel
&lt;br&gt;o kern/134996 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Anchor tables not included when pfctl(8) is run w
&lt;br&gt;o kern/133732 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] max-src-conn issue
&lt;br&gt;o kern/132769 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] 2 LOR's with pf task mtx / ifnet and &amp;nbsp;rtent
&lt;br&gt;f kern/132176 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf stalls connection when using route-to [regress
&lt;br&gt;o conf/130381 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [rc.d] [pf] [ip6] ipv6 not fully configured when pf st
&lt;br&gt;o kern/129861 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Argument names reversed in pf_table.c:_co
&lt;br&gt;o kern/127920 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] ipv6 and synproxy don't play well together
&lt;br&gt;o conf/127814 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] The flush in pf_reload in /etc/rc.d/pf does not w
&lt;br&gt;o kern/127439 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] deadlock in pf
&lt;br&gt;f kern/127345 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Problem with PF on FreeBSD7.0 [regression]
&lt;br&gt;o kern/127121 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf incorrect log priority
&lt;br&gt;o kern/127042 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf recursion panic if interface group is 
&lt;br&gt;o kern/125467 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf keep state bug while handling sessions between
&lt;br&gt;s kern/124933 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [ip6] pf does not support (drops) IPv6 fragmented
&lt;br&gt;o kern/124364 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] Kernel panic with pf + bridge
&lt;br&gt;o kern/122773 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf doesn't log uid or pid when configured to
&lt;br&gt;o kern/122014 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] FreeBSD 6.2 panic in pf
&lt;br&gt;o kern/121704 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF mangles loopback packets
&lt;br&gt;o kern/120281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [request] lost returning packets to PF for a rdr 
&lt;br&gt;o kern/120057 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Allow proper settings of ALTQ_HFSC. The c
&lt;br&gt;o bin/118355 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pfctl(8) help message options order false
&lt;br&gt;o kern/114567 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] pf_ioctl.c + if.c
&lt;br&gt;o kern/114095 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [carp] carp+pf delay with high state limit
&lt;br&gt;o kern/111220 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] repeatable hangs while manipulating pf tables
&lt;br&gt;s conf/110838 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] tagged parameter on nat not working on FreeBSD 5.
&lt;br&gt;o kern/103283 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync fails to sucessfully transfer some sessions
&lt;br&gt;o kern/103281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync reports bulk update failures
&lt;br&gt;o kern/93825 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf reply-to doesn't work
&lt;br&gt;o sparc/93530 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Incorrect checksums when using pf's route-to on s
&lt;br&gt;o kern/92949 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF + ALTQ problems with latency
&lt;br&gt;o bin/86635 &amp;nbsp; &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [patch] pfctl(8): allow new page character (^L) in pf.
&lt;br&gt;o kern/82271 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] cbq scheduler cause bad latency
&lt;br&gt;&lt;br&gt;37 problems total.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26572966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26572966&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Current-problem-reports-assigned-to-freebsd-pf%40FreeBSD.org-tp26572966p26572966.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563283</id>
	<title>trying to figure out how to altq single interface..</title>
	<published>2009-11-29T07:20:11Z</published>
	<updated>2009-11-29T07:20:11Z</updated>
	<author>
		<name>B. Cook-2</name>
	</author>
	<content type="html">I'm trying to setup a valid test case on a single machine running 
&lt;br&gt;FreeBSD 8.0R. (amd64 and i386)
&lt;br&gt;&lt;br&gt;Seems all of the pf/altq examples assume that FreeBSD is the router, and 
&lt;br&gt;you are working with more than on interface.
&lt;br&gt;&lt;br&gt;I am trying to shape my traffic on a per physical server basis with on a 
&lt;br&gt;*single* interface where the NAT is performed elsewhere.
&lt;br&gt;&lt;br&gt;I understand the logic that you can only queue outgoing.
&lt;br&gt;&lt;br&gt;My goal is to have full bandwidth for the local network (interface 
&lt;br&gt;speed) with ack priq if possible - and - have queues for services when 
&lt;br&gt;the &amp;quot;not local network&amp;quot; users access them.
&lt;br&gt;&lt;br&gt;There are ASA devices further up the line from me which I have no 
&lt;br&gt;control over; they are providing NAT..
&lt;br&gt;&lt;br&gt;we have a large private network (10.20.0.0/18) but we have some machines 
&lt;br&gt;that serve the public as well as serves the lan.
&lt;br&gt;&lt;br&gt;(feel free to interject reality into my logic where need be.. )
&lt;br&gt;&lt;br&gt;here is what I have come up with as far as altq/queues is concerned:
&lt;br&gt;&lt;br&gt;pfctl -sq
&lt;br&gt;queue root_bge0 on bge0 bandwidth 1Mb priority 0 cbq( wrr root ) {idef, 
&lt;br&gt;iack, http, dns, mua, icmp, smtp, ssh}
&lt;br&gt;queue &amp;nbsp;idef on bge0 bandwidth 100Kb cbq( borrow default )
&lt;br&gt;queue &amp;nbsp;iack on bge0 bandwidth 100Kb priority 7 cbq( borrow )
&lt;br&gt;queue &amp;nbsp;http on bge0 bandwidth 800Kb priority 5 cbq( borrow )
&lt;br&gt;queue &amp;nbsp;dns on bge0 bandwidth 200Kb priority 6 cbq( borrow )
&lt;br&gt;queue &amp;nbsp;mua on bge0 bandwidth 800Kb priority 2 cbq( borrow )
&lt;br&gt;queue &amp;nbsp;icmp on bge0 bandwidth 50Kb priority 6
&lt;br&gt;queue &amp;nbsp;smtp on bge0 bandwidth 500Kb cbq( borrow )
&lt;br&gt;queue &amp;nbsp;ssh on bge0 bandwidth 100Kb priority 6 cbq( borrow ) {scp, term}
&lt;br&gt;queue &amp;nbsp; scp on bge0 bandwidth 80Kb priority 0
&lt;br&gt;queue &amp;nbsp; term on bge0 bandwidth 20Kb priority 7
&lt;br&gt;&lt;br&gt;(or if it matters - directly from pf.conf.local)
&lt;br&gt;&lt;br&gt;&amp;nbsp; 48 altq on $ext_if cbq bandwidth 1Mb queue { idef, iack, http, dns, 
&lt;br&gt;mua, icmp, smtp, ssh }
&lt;br&gt;&amp;nbsp; 49 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue idef bandwidth 10% cbq(default borrow)
&lt;br&gt;&amp;nbsp; 50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue iack bandwidth 10% cbq(borrow) priority 7
&lt;br&gt;&amp;nbsp; 51 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue http bandwidth 80% cbq(borrow) priority 5
&lt;br&gt;&amp;nbsp; 52 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue dns &amp;nbsp;bandwidth 20% cbq(borrow) priority 6
&lt;br&gt;&amp;nbsp; 53 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue mua &amp;nbsp;bandwidth 80% cbq(borrow) priority 2
&lt;br&gt;&amp;nbsp; 54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue icmp bandwidth 5% &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; priority 6
&lt;br&gt;&amp;nbsp; 55 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue smtp bandwidth 50% cbq(borrow) priority 1
&lt;br&gt;&amp;nbsp; 56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue ssh &amp;nbsp;bandwidth 10% cbq(borrow) priority 6 { 
&lt;br&gt;scp, term }
&lt;br&gt;&amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue scp &amp;nbsp;bandwidth 80% priority 0
&lt;br&gt;&amp;nbsp; 58 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue term bandwidth 20% priority 7
&lt;br&gt;&lt;br&gt;My question(s) are:
&lt;br&gt;&lt;br&gt;When do I apply things to pass in and when do I apply to pass out?
&lt;br&gt;&lt;br&gt;It seems when I don't apply a queue rule to a pass in/out rule the 
&lt;br&gt;default kicks in, which is fine; but why does it 'queue on inbound' when 
&lt;br&gt;it can only 'queue on outbound'? - is keeping state what is altering that?
&lt;br&gt;&lt;br&gt;&lt;br&gt;pfctl -sr | cat -n
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1	scrub in all no-df random-id fragment reassemble
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2	block return in log all
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3	block return in log quick from &amp;lt;blocksshd&amp;gt; to any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4	pass out on bge0 inet proto icmp from (bge0) to any keep state 
&lt;br&gt;queue icmp
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5	pass out on bge0 inet proto udp from (bge0) to any port = domain 
&lt;br&gt;keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 6	pass out on bge0 inet proto udp from (bge0) to any port = ntp 
&lt;br&gt;keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 7	pass out on bge0 inet proto udp from (bge0) to any port = snmp 
&lt;br&gt;keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 8	pass out on bge0 inet proto tcp from (bge0) to any port = ssh 
&lt;br&gt;flags S/SA keep state queue(scp, term)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9	block drop in log quick on ! bge0 inet from 10.20.0.0/25 to any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;10	block drop in log quick inet from 10.20.0.5 to any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;11	block drop in log quick inet from 10.20.0.4 to any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;12	block drop in log quick inet from 10.20.0.19 to any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;13	pass in quick on bge0 inet proto udp from 10.20.0.0/23 to 
&lt;br&gt;10.20.0.4 port = domain keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;14	pass in quick on bge0 inet proto udp from 10.20.0.0/23 to 
&lt;br&gt;10.20.0.4 port = ntp keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;15	pass in quick on bge0 inet proto udp from 10.20.0.0/23 to 
&lt;br&gt;10.20.0.4 port = snmp keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;16	pass in quick on bge0 inet proto udp from 10.20.0.0/23 to 
&lt;br&gt;10.20.0.4 port = syslog keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;17	pass in quick on bge0 inet proto udp from any to 10.20.0.19 port 
&lt;br&gt;= domain keep state queue dns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;18	pass in quick on bge0 inet proto tcp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = smtp flags S/SA keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;19	pass in quick on bge0 inet proto tcp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = rsync flags S/SA keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;20	pass in quick on bge0 inet proto tcp from any to 10.20.0.5 port 
&lt;br&gt;= ssh flags S/SA keep state queue(scp, term)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;21	pass in quick on bge0 inet proto tcp from any to 10.20.0.5 port 
&lt;br&gt;= http flags S/SA keep state queue(http, iack)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;22	pass in quick on bge0 inet proto tcp from any to 10.20.0.5 port 
&lt;br&gt;= https flags S/SA keep state queue(http, iack)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;23	pass in quick on bge0 inet proto tcp from any to 10.20.0.5 port 
&lt;br&gt;= 2359 flags S/SA keep state queue(http, iack)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;24	pass in quick on bge0 inet proto tcp from any to 10.20.0.5 port 
&lt;br&gt;= 2812 flags S/SA keep state queue(http, iack)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;25	pass in quick on bge0 inet proto udp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = domain keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;26	pass in quick on bge0 inet proto udp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = ntp keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;27	pass in quick on bge0 inet proto udp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = snmp keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;28	pass in quick on bge0 inet proto udp from 10.20.0.0/25 to (bge0) 
&lt;br&gt;port = syslog keep state
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;29	pass in quick on bge0 inet proto icmp from any to (bge0) 
&lt;br&gt;icmp-type echoreq code 0 keep state
&lt;br&gt;&lt;br&gt;&lt;br&gt;All of these rules might not quite be valid public services, but I was 
&lt;br&gt;looking for real services that I could test with.
&lt;br&gt;&lt;br&gt;Also afaict FreeBSD 8 is running with (approximately) version 4.1 of 
&lt;br&gt;OpenBSDs PF; is that correct? &amp;nbsp;Assumed from pftop compile output of:
&lt;br&gt;&lt;br&gt;cc -O2 -pipe -DHAVE_ALTQ=1 -fno-strict-aliasing &amp;nbsp;-Wall -DOS_LEVEL=41 
&lt;br&gt;-std=gnu99 -fstack-protector &amp;nbsp;-c pftop.c
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563283&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563283&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/trying-to-figure-out-how-to-altq-single-interface..-tp26563283p26563283.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26487045</id>
	<title>Re: sending mail with attachments always fails (FreeBSD/pf)</title>
	<published>2009-11-23T14:17:18Z</published>
	<updated>2009-11-23T14:17:18Z</updated>
	<author>
		<name>David DeSimone-2</name>
	</author>
	<content type="html">Victor Lyapunov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fullblaststorm@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; After that i tried to send mail to a server that does not require ssl
&lt;br&gt;&amp;gt; and i got this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; rule 1/0(match): pass in on em0: 192.168.0.5.2035 &amp;gt; 94.100.177.1.25: S
&lt;br&gt;&amp;gt; 237079791:237079791(0) win 65535 &amp;lt;mss 1460,nop,nop,sackOK&amp;gt;
&lt;br&gt;&amp;gt; rule 1/0(match): pass out on em0: 192.168.0.5.2035 &amp;gt; 94.100.177.1.25:
&lt;br&gt;&amp;gt; S 237079791:237079791(0) win 65535 &amp;lt;mss 1460,nop,nop,sackOK&amp;gt;
&lt;br&gt;&amp;gt; 2 packets captured
&lt;br&gt;&amp;gt; 2 packets received by filter
&lt;br&gt;&amp;gt; 0 packets dropped by kernel
&lt;/div&gt;&lt;br&gt;This doesn't appear to be the same problem you originally submitted,
&lt;br&gt;about SMTP connections with no attachments working fine, but with
&lt;br&gt;attachments they fail. &amp;nbsp;Seems like you are now describing that SMTP
&lt;br&gt;doesn't work at all.
&lt;br&gt;&lt;br&gt;&amp;gt; 192.168.0.1 -- Router
&lt;br&gt;&amp;gt; 192.168.0.3 -- The FreeBSD box
&lt;br&gt;&amp;gt; 192.168.0.5 -- Windows machine with default gateway set to 192.168.0.3
&lt;br&gt;&lt;br&gt;This is probably the source of your problems. &amp;nbsp;Your router and your
&lt;br&gt;firewall and your firewalled client are all on the same subnet together. 
&lt;br&gt;There is nothing preventing the router from sending packets directly
&lt;br&gt;back to the Windows box, bypassing your firewall.
&lt;br&gt;&lt;br&gt;As such, the firewall cannot see any of the reply traffic, and so it
&lt;br&gt;cannot follow the TCP state correctly, so eventually it begins to block
&lt;br&gt;the traffic. &amp;nbsp;If you turn on logging with &amp;quot;pfctl -x loud&amp;quot; you will
&lt;br&gt;probably see a lot of messages about TCP state mismatches.
&lt;br&gt;&lt;br&gt;The proper way to fix this is to rearchitect your network so that your
&lt;br&gt;firewall has two interfaces, one public, one private. &amp;nbsp;The public
&lt;br&gt;interface connects only to your router, while the private interface
&lt;br&gt;connects to all your firewall clients. &amp;nbsp;This forces the firewall to be
&lt;br&gt;the only path to and from the network, giving enhanced security.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;David DeSimone == Network Admin == &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fox@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;quot;I don't like spinach, and I'm glad I don't, because if I
&lt;br&gt;&amp;nbsp; &amp;nbsp;liked it I'd eat it, and I just hate it.&amp;quot; -- Clarence Darrow
&lt;br&gt;&lt;br&gt;&lt;br&gt;This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. &amp;nbsp;Thank you.
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487045&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487045&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sending-mail-with-attachments-always-fails-%28FreeBSD-pf%29-tp26457567p26487045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26481222</id>
	<title>Re: block ip's and ports</title>
	<published>2009-11-23T08:22:41Z</published>
	<updated>2009-11-23T08:22:41Z</updated>
	<author>
		<name>olli hauer</name>
	</author>
	<content type="html">Sife Mailling wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Salamo Alikom
&lt;br&gt;&amp;gt; i setup a firewall for personnel home computer ,now i want every packets block if it is not pass to specified ports .
&lt;br&gt;&amp;gt; this my pf.conf :
&lt;br&gt;&amp;gt; net_card=&amp;quot;sis0&amp;quot;
&lt;br&gt;&amp;gt; tcp_ports=&amp;quot;{80 ,https ,domain ,auth ,21}&amp;quot;
&lt;br&gt;&amp;gt; udp_ports=&amp;quot;{domain}&amp;quot;
&lt;br&gt;&amp;gt; table &amp;lt;banned&amp;gt; file &amp;quot;/etc/pf/banned&amp;quot;
&lt;br&gt;&amp;gt; table &amp;lt;banned2&amp;gt; {www.google.com}
&lt;br&gt;&amp;gt; block in log (all) on $net_card proto {tcp ,udp} all
&lt;br&gt;&amp;gt; pass in on $net_card proto tcp from any to any port $tcp_ports
&lt;br&gt;&amp;gt; pass in on $net_card proto udp from any to any port $udp_ports
&lt;br&gt;&amp;gt; pass in on $net_card proto tcp from 192.168.0.0/16 to 192.168.0.0/16
&lt;br&gt;&amp;gt; block in on $net_card proto tcp from { &amp;lt;banned&amp;gt;, &amp;lt;banned2&amp;gt; } to any port $tcp_ports
&lt;br&gt;&amp;gt; pass out on $net_card proto tcp from any to any port $tcp_ports
&lt;br&gt;&amp;gt; pass out on $net_card proto udp from any to any port $udp_ports
&lt;br&gt;&amp;gt; pass out on $net_card inet proto tcp from any to any port ftp
&lt;br&gt;&amp;gt; pass out on $net_card inet proto tcp from any to any port &amp;gt; 1023
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; now skype is work and the both tables banned and banned2 i can browse sites including theme .
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Try the quick keyword, so traffic is not allowed in later rules.
&lt;br&gt;&lt;br&gt;Additional disable outgoing traffic since if you create a connect from 
&lt;br&gt;inside to &amp;lt;banned&amp;gt; a state which permits incoming traffic is created.
&lt;br&gt;&lt;br&gt;example ordering:
&lt;br&gt;&lt;br&gt;table &amp;lt;banned&amp;gt; file &amp;quot;/etc/pf/banned&amp;quot;
&lt;br&gt;table &amp;lt;banned2&amp;gt; {www.google.com}
&lt;br&gt;block in log (all) on $net_card proto {tcp ,udp} all
&lt;br&gt;block in quick on $net_card proto tcp from { &amp;lt;banned&amp;gt;, &amp;lt;banned2&amp;gt; } \
&lt;br&gt;&amp;nbsp; to any port $tcp_ports label blockin
&lt;br&gt;block out quick on $net_card proto tcp from { &amp;lt;banned&amp;gt;, &amp;lt;banned2&amp;gt; } \
&lt;br&gt;&amp;nbsp; to any port $tcp_ports label blockout
&lt;br&gt;pass in on $net_card proto tcp from any to any port $tcp_ports
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481222&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481222&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/block-ip%27s-and-ports-tp26480828p26481222.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480828</id>
	<title>block ip's and ports</title>
	<published>2009-11-23T07:35:08Z</published>
	<updated>2009-11-23T07:35:08Z</updated>
	<author>
		<name>Sife Mailling</name>
	</author>
	<content type="html">Salamo Alikom
&lt;br&gt;i setup a firewall for personnel home computer ,now i want every packets block if it is not pass to specified ports .
&lt;br&gt;this my pf.conf :
&lt;br&gt;net_card=&amp;quot;sis0&amp;quot;
&lt;br&gt;tcp_ports=&amp;quot;{80 ,https ,domain ,auth ,21}&amp;quot;
&lt;br&gt;udp_ports=&amp;quot;{domain}&amp;quot;
&lt;br&gt;table &amp;lt;banned&amp;gt; file &amp;quot;/etc/pf/banned&amp;quot;
&lt;br&gt;table &amp;lt;banned2&amp;gt; {www.google.com}
&lt;br&gt;block in log (all) on $net_card proto {tcp ,udp} all
&lt;br&gt;pass in on $net_card proto tcp from any to any port $tcp_ports
&lt;br&gt;pass in on $net_card proto udp from any to any port $udp_ports
&lt;br&gt;pass in on $net_card proto tcp from 192.168.0.0/16 to 192.168.0.0/16
&lt;br&gt;block in on $net_card proto tcp from { &amp;lt;banned&amp;gt;, &amp;lt;banned2&amp;gt; } to any port $tcp_ports
&lt;br&gt;pass out on $net_card proto tcp from any to any port $tcp_ports
&lt;br&gt;pass out on $net_card proto udp from any to any port $udp_ports
&lt;br&gt;pass out on $net_card inet proto tcp from any to any port ftp
&lt;br&gt;pass out on $net_card inet proto tcp from any to any port &amp;gt; 1023
&lt;br&gt;&lt;br&gt;now skype is work and the both tables banned and banned2 i can browse sites including theme .
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480828&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480828&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/block-ip%27s-and-ports-tp26480828p26480828.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476104</id>
	<title>Current problem reports assigned to freebsd-pf@FreeBSD.org</title>
	<published>2009-11-23T03:07:00Z</published>
	<updated>2009-11-23T03:07:00Z</updated>
	<author>
		<name>FreeBSD bugmaster</name>
	</author>
	<content type="html">Note: to view an individual PR, use:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/cgi/query-pr.cgi?pr=(number&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;The following is a listing of current problems submitted by FreeBSD users.
&lt;br&gt;These represent problem reports covering all versions including
&lt;br&gt;experimental development code and obsolete releases.
&lt;br&gt;&lt;br&gt;&lt;br&gt;S Tracker &amp;nbsp; &amp;nbsp; &amp;nbsp;Resp. &amp;nbsp; &amp;nbsp; &amp;nbsp;Description
&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;o kern/140697 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf behaviour changes - must be documented
&lt;br&gt;o kern/137982 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] when pf can hit state limits, random IP failures 
&lt;br&gt;o kern/136781 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Packets appear to drop with pf scrub and if_bridg
&lt;br&gt;o kern/135948 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [gre] pf not natting gre protocol
&lt;br&gt;o kern/135162 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pfsync] pfsync(4) not usable with GENERIC kernel
&lt;br&gt;o kern/134996 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Anchor tables not included when pfctl(8) is run w
&lt;br&gt;o kern/133732 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] max-src-conn issue
&lt;br&gt;o kern/132769 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] 2 LOR's with pf task mtx / ifnet and &amp;nbsp;rtent
&lt;br&gt;f kern/132176 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf stalls connection when using route-to [regress
&lt;br&gt;o conf/130381 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [rc.d] [pf] [ip6] ipv6 not fully configured when pf st
&lt;br&gt;o kern/129861 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Argument names reversed in pf_table.c:_co
&lt;br&gt;o kern/127920 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] ipv6 and synproxy don't play well together
&lt;br&gt;o conf/127814 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] The flush in pf_reload in /etc/rc.d/pf does not w
&lt;br&gt;o kern/127439 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] deadlock in pf
&lt;br&gt;f kern/127345 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Problem with PF on FreeBSD7.0 [regression]
&lt;br&gt;o kern/127121 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf incorrect log priority
&lt;br&gt;o kern/127042 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pf recursion panic if interface group is 
&lt;br&gt;o kern/125467 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf keep state bug while handling sessions between
&lt;br&gt;s kern/124933 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [ip6] pf does not support (drops) IPv6 fragmented
&lt;br&gt;o kern/124364 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] Kernel panic with pf + bridge
&lt;br&gt;o kern/122773 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf doesn't log uid or pid when configured to
&lt;br&gt;o kern/122014 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [panic] FreeBSD 6.2 panic in pf
&lt;br&gt;o kern/121704 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF mangles loopback packets
&lt;br&gt;o kern/120281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [request] lost returning packets to PF for a rdr 
&lt;br&gt;o kern/120057 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] Allow proper settings of ALTQ_HFSC. The c
&lt;br&gt;o bin/118355 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [patch] pfctl(8) help message options order false
&lt;br&gt;o kern/114567 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] [lor] pf_ioctl.c + if.c
&lt;br&gt;o kern/114095 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [carp] carp+pf delay with high state limit
&lt;br&gt;o kern/111220 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] repeatable hangs while manipulating pf tables
&lt;br&gt;s conf/110838 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] tagged parameter on nat not working on FreeBSD 5.
&lt;br&gt;o kern/103283 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync fails to sucessfully transfer some sessions
&lt;br&gt;o kern/103281 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pfsync reports bulk update failures
&lt;br&gt;o kern/93825 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] pf reply-to doesn't work
&lt;br&gt;o sparc/93530 &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] Incorrect checksums when using pf's route-to on s
&lt;br&gt;o kern/92949 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] PF + ALTQ problems with latency
&lt;br&gt;o bin/86635 &amp;nbsp; &amp;nbsp;pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [patch] pfctl(8): allow new page character (^L) in pf.
&lt;br&gt;o kern/82271 &amp;nbsp; pf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [pf] cbq scheduler cause bad latency
&lt;br&gt;&lt;br&gt;37 problems total.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476104&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-pf&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476104&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-pf-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Current-problem-reports-assigned-to-freebsd-pf%40FreeBSD.org-tp26476104p26476104.html" />
</entry>

</feed>
