From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 12 15:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4435D5A4 for ; Fri, 12 Apr 2013 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 120DAEBB for ; Fri, 12 Apr 2013 15:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3CFe0JT016048 for ; Fri, 12 Apr 2013 15:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3CFe0Qn016046; Fri, 12 Apr 2013 15:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 12 Apr 2013 15:40:00 GMT Resent-Message-Id: <201304121540.r3CFe0Qn016046@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kajetan Staszkiewicz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9F937B9 for ; Fri, 12 Apr 2013 15:30:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 916E2DFE for ; Fri, 12 Apr 2013 15:30:58 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3CFUuLq078470 for ; Fri, 12 Apr 2013 15:30:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3CFUuhR078469; Fri, 12 Apr 2013 15:30:56 GMT (envelope-from nobody) Message-Id: <201304121530.r3CFUuhR078469@red.freebsd.org> Date: Fri, 12 Apr 2013 15:30:56 GMT From: Kajetan Staszkiewicz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/177810: traffic dropped by accepting rules is not counted X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2013 15:40:01 -0000 >Number: 177810 >Category: kern >Synopsis: traffic dropped by accepting rules is not counted >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 12 15:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kajetan Staszkiewicz >Release: 9.1-RELEASE >Organization: InnoGames GmbH >Environment: FreeBSD xxxxxxx 9.1-RELEASE FreeBSD 9.1-RELEASE #10 r247265M: Mon Feb 25 14:58:39 CET 2013 root@xxxxxxx:/usr/obj/usr/src/sys/IGLB3 amd64 >Description: Currently per-rule counting is performed only for packets that are accepted by any rule or any packets matched by a droping rule. Counting on per-interface basis is perfomed properly. There are some possibilities for a packet do be dropped by an accepting rule and therefore not counted: 1. SYN/SYN+ACK/ACK packets going through synproxy are dropped with PF_SYNPROXY_DROP action. This generates new packets sent to client and server that are legitimate traffic and should be counted. 2. Creation of a state or a src-node might fail due to memory or per-rule state limits. This traffic is dropped (or at least should be, have a look on kern/177808), but still matched some rule. I believe it also should be counted, but this is open for discussion. >How-To-Repeat: SYN-flood your FreeBSD based machine with synproxy rules or rules with state limit, observe no increase of counters of `pfctl -sl` >Fix: >Release-Note: >Audit-Trail: >Unformatted: