From owner-freebsd-net@FreeBSD.ORG Fri May 30 17:58:15 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D0BC2900; Fri, 30 May 2014 17:58:15 +0000 (UTC) Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DC39201C; Fri, 30 May 2014 17:58:15 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id q107so6493409qgd.1 for ; Fri, 30 May 2014 10:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qnhkhkj6ILpxRSI9Tsm9qQusW/jBBnQnz/brp58wR6I=; b=ou7HA+sYU1p1fovbAxV6cuOHZw7D+ut8uY5gYzpvtczkFC6RCdGGhH9BpnIAVd3WEr yAui+ZYSeR1ERsxW3UVt9Ow4ekFI3jRm3VHL/HeDQRQAqCLpFWMVION0C4BPVdnEUa7o Be0QPjL709kHjRNCvMUEADXVm0ZfnL7EQYdM7bc/6tZsid8ZF+0MEVMDWU5QvpFeSDq+ 7PURzh5kwm9lZzZHED/fDAAIEHdOpBVHOJN/kG2Oso5F5U72/j4Dz3He3h/PSArjGUCo Cfle/A2+YhOG5JXm2dalWFJ+gWk4uTSf4Axww66KRURtnPiO/POppwuB7b1Pun3bLQhB tC5g== MIME-Version: 1.0 X-Received: by 10.224.166.73 with SMTP id l9mr23722700qay.34.1401472694592; Fri, 30 May 2014 10:58:14 -0700 (PDT) Received: by 10.96.122.133 with HTTP; Fri, 30 May 2014 10:58:14 -0700 (PDT) In-Reply-To: <+Uw/Ss5bElti5gir++ydy1GLu7M@dHhGgwofm7uNfL6/X5+bGIkDUYs> References: <201405222101.s4ML122N061489@freefall.freebsd.org> <+Uw/Ss5bElti5gir++ydy1GLu7M@dHhGgwofm7uNfL6/X5+bGIkDUYs> Date: Fri, 30 May 2014 10:58:14 -0700 Message-ID: Subject: Re: kern/190102: [tcp] net.inet.tcp.drop_synfin=1 no longer works on FreeBSD 10+ [regression] From: hiren panchasara To: Eygene Ryabinkin Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 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, 30 May 2014 17:58:15 -0000 - bugs (as this is not related to it) On Wed, May 28, 2014 at 10:46 PM, Eygene Ryabinkin wrote: > clearing FIN bit for SYN packets was > the standard behaviour of pf since approximately at least 10 years, > http://svnweb.freebsd.org/base/vendor-sys/pf/dist/sys/contrib/pf/net/pf_norm.c?view=markup&pathrev=126258#l1242 I am curious, what's the rationale for this behavior? Why does PF clear the FIN bit for such a packet being a firewall? Cheers, Hiren