From owner-freebsd-net@freebsd.org Fri Jan 20 20:48:54 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 190F4CB9672 for ; Fri, 20 Jan 2017 20:48:54 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D90D41BF1; Fri, 20 Jan 2017 20:48:53 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [10.0.2.164] (ptr-8ripyyfi1726l7ds8ua.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:2419:4e02:4883:fabf:4b8b:94c2]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 179ED358C0; Fri, 20 Jan 2017 21:48:52 +0100 (CET) From: "Kristof Provost" To: "Bakul Shah" Cc: "Alan Somers" , "FreeBSD Net" Subject: Re: pf & NAT issue Date: Fri, 20 Jan 2017 21:48:51 +0100 Message-ID: In-Reply-To: <20170120203106.CD2C8124AEA4@mail.bitblocks.com> References: <20170120083555.ACCF9124AEA4@mail.bitblocks.com> <7C29D00C-94C0-4550-B1B2-CE307482B544@FreeBSD.org> <20170120203106.CD2C8124AEA4@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6072) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 20:48:54 -0000 On 20 Jan 2017, at 21:31, Bakul Shah wrote: > $ pfctl -s info > Status: Enabled for 167 days 13:40:11 Debug: Urgent > > State Table Total Rate > current entries 0 > searches 2870986757 198.3/s # this > seems high... > inserts 3428240 0.2/s > removals 3428240 0.2/s > Counters > match 1482741914 102.4/s > bad-offset 0 0.0/s > fragment 1 0.0/s > short 0 0.0/s > normalize 0 0.0/s > memory 0 0.0/s > bad-timestamp 0 0.0/s > congestion 0 0.0/s > ip-option 31 0.0/s > proto-cksum 0 0.0/s > state-mismatch 28931 0.0/s You gave a decent number of state-mismatch errors here. It’s worth checking if that number increments whenever you see a dropped NAT connection. Regards, Kristof