From owner-freebsd-net Tue Mar 4 2:14:58 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CBEB37B401 for ; Tue, 4 Mar 2003 02:14:57 -0800 (PST) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D900F43FDD for ; Tue, 4 Mar 2003 02:14:56 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (user@mail [198.78.66.163]) by mail.econolodgetulsa.com (8.12.3/8.12.3) with ESMTP id h24AF9dR053429 for ; Tue, 4 Mar 2003 02:15:09 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Date: Tue, 4 Mar 2003 02:15:09 -0800 (PST) From: Josh Brooks To: freebsd-net@freebsd.org Subject: counting firewall traffic on a second machine Message-ID: <20030304021141.C49939-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I used to have a firewall with ipfw count rules in place for every IP I had. This worked fine, but it gave me a 2000+ ruleset that would cause cpu to skyrocket under even the lightest of DoS attacks. So, I have plugged in another system on the DMZ and plan to count from there. In the most basic sense, I am thinking of sniffing trafficon this second machine and counting via that mechanism. Is this a common setup - counting traffic on a second machine that the traffic does not even flow through ? If so, is ipfw count rules used on the counting machine, or is there a better tool for counting per-IP traffic on a secondary system like this ? Any suggestions are appreciated. i will be using MRTG to show the stats, but again, the actual gathering / counting method I will use i am not sure of ... was planning on using ipfw count rules, but thought I would ask. And I am not sure of how to sniff traffic and pass it to ipfw to count .. so perhaps ipfw is not involved at all... thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message