From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 00:58:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD00C16A41F for ; Wed, 26 Oct 2005 00:58:21 +0000 (GMT) (envelope-from plcplc@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B85943D45 for ; Wed, 26 Oct 2005 00:58:20 +0000 (GMT) (envelope-from plcplc@gmail.com) Received: by nproxy.gmail.com with SMTP id o25so7382nfa for ; Tue, 25 Oct 2005 17:58:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=knku4TEgR0NCoQ48xBDBOYAA1Xf6zM91CowbeuZ6kziwxUHIV6FgsTzYFXF/DtXxaZbl7xFfEt3XToG9CC87sCvKhki3noKS28VRIW9JT6o2Oh+RQ2Rspjr43S7MBPgP5Z6euwl1lhYvWEgwbsp/I14iqFiSdWxMNw0JZS3yb0Y= Received: by 10.48.30.12 with SMTP id d12mr71413nfd; Tue, 25 Oct 2005 17:58:19 -0700 (PDT) Received: from ?10.0.1.254? ( [80.164.23.11]) by mx.gmail.com with ESMTP id p43sm50073nfa.2005.10.25.17.58.18; Tue, 25 Oct 2005 17:58:19 -0700 (PDT) From: Philip Lykke Carlsen To: freebsd-questions@freebsd.org Date: Wed, 26 Oct 2005 02:58:16 +0200 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510260258.17153.plcplc@gmail.com> Subject: Re: traffic accounting per username with ipfw in 5.4 ? (more) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: plcplc@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 00:58:21 -0000 Monday 24 October 2005 23:54 skrev user: > Hello, > > On Tue, 25 Oct 2005, Andrew P. wrote: > > On 10/25/05, user wrote: > > > I remember that ipfw had been augmented some time ago to do traffic > > > counting, etc., based on usernames ... but I see no mention of that in > > > the ipfw man page on my 5.4-RELEASE system. > > > > > > Is this something that only exists in IPFW2 ? Does ipfw2 even exist > > > anymore ? > > > > > > Can someone clarify for me what is going on with regard to what used to > > > be called IPFW2, FreeBSD 5.x, and per-user traffic counting ? > > > > > > thanks. > > > > ipfw2 replaced ipfw in 5.x > > > > Read the manpage more carefully, please. Search > > for "uid" option. > > Thanks - I was searching for username and getting nowhere. Also, thank > you for the clarification regarding ipfw2/ipfw and their current state. > > I notice that the traffic accounting per uid only applies to traffic > initiated by that user, and initiated from the local machine. If I scp a > file away from the machine (as user X) the traffic does not get > incremented, and if I scp a file to the local machine (as user X) it also > does not get incremented - even though those are non-anonymous actions > that occur under the auspices of a particular username. > > Doe anyone have any suggestions for traffic accounting (of particularly > ssh traffic) on a per user basis, for _all_ traffic that occurs under the > auspices of that username, and not just what _they themselves_ initiate, > personally, in their own login shell ? > > Thank you. I've looked a bit into this, and it appears that sshd changes uid in FreeBSD 6.0 (I use 6.0RC1) .. I bet upgrading the system would be a lot easier than constructing a complex traffic-accounting system.. I'd think so at least..