From owner-freebsd-net@freebsd.org Fri Jan 20 10:48:06 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 0C1C6CB9756 for ; Fri, 20 Jan 2017 10:48:06 +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 CF25D1631 for ; Fri, 20 Jan 2017 10:48:05 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [192.168.228.1] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id C4C4535A55; Fri, 20 Jan 2017 11:48:02 +0100 (CET) From: "Kristof Provost" To: "Bakul Shah" Cc: freebsd-net@freebsd.org Subject: Re: pf & NAT issue Date: Fri, 20 Jan 2017 11:48:04 +0100 Message-ID: <7C29D00C-94C0-4550-B1B2-CE307482B544@FreeBSD.org> In-Reply-To: <20170120083555.ACCF9124AEA4@mail.bitblocks.com> References: <20170120083555.ACCF9124AEA4@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 10:48:06 -0000 On 20 Jan 2017, at 9:35, Bakul Shah wrote: > pf seems to drop NAT connections quite a bit. This seems to > happen much more frequently if there are delays involved (slow > server or interactive use). Almost seems like pf losing > track of NATted connections due to an uninitialized > variable.... Often a retry or two works. Connecting from > outside to forwarded connections to NATTED hosts works fine. > > This problem started after ungrading to freebsd-10. Is there a > bug fix in works or a known work around (other than using ipfw > or reverting to 9, which I don't want to do)? > The problem you describe doesn’t immediately ring a bell. We’ll have to gather a bit more information: * What FreeBSD version are you running exactly? * What’s your pf.conf? * Can you perform a network capture of rejected/failed connections? Ideally both on LAN and WAN on the gateway machine. Please capture full packets (so tcpdump -s0 -w lan.pcap) as pcap files). * What networking cards are you using? Regards, Kristof