From owner-freebsd-isp Mon May 13 16:43:46 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 356BF37B400 for ; Mon, 13 May 2002 16:43:38 -0700 (PDT) Received: from fwd03.sul.t-online.de by mailout05.sul.t-online.com with smtp id 177PTO-0002fm-00; Tue, 14 May 2002 01:43:22 +0200 Received: from Turing.picht.org (320017162287-0001@[80.133.170.4]) by fmrl03.sul.t-online.com with esmtp id 177PTM-0PVyMaC; Tue, 14 May 2002 01:43:20 +0200 Received: from Turing.picht.org (localhost.picht.org [127.0.0.1]) by Turing.picht.org (8.12.3/8.12.3/Debian-8) with ESMTP id g4DNhCmb008034; Tue, 14 May 2002 01:43:12 +0200 Received: (from hans@localhost) by Turing.picht.org (8.12.3/8.12.3/Debian-8) id g4DNh77o008032; Tue, 14 May 2002 01:43:07 +0200 Date: Tue, 14 May 2002 01:43:07 +0200 From: Hans-Joachim Picht To: Francis Vidal Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Web hosting and jail Message-ID: <20020513234307.GA7924@lnxce.net> References: <004901c1f779$3ab77690$01a25bca@pran> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004901c1f779$3ab77690$01a25bca@pran> Organisation: LNXCE Linux-Consulting-Europe GbR X-Sender: 320017162287-0001@t-dialin.net Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, May 10, 2002 at 12:47:34AM +0800, Francis Vidal wrote: > I don't exactly get it. Can you please elaborate? Thanks. > > You can run ipfw on the same machine as your jails. > > You bind you jails (services within the jail) to a certain ip f.ex: jail /raid/foobar.com foobar.com 1.2.3.4 /usr/sbin/apachectl start Now you can set up ipfw rules to count the traffic to and from the jail. /sbin/ipfw add 1010 count all from any to 1.2.3.4/32 /sbin/ipfw add 1011 count all from 1.2.3.4/32 to any If you want to play around with ipastat and python/perl/sh you can also easily generate automated traffic bills for your customers. With best regards Hans -- Work: Consultant with Linux Consulting Europe http://www.lnxce.net Vogelhecke 2 D - 35447 Reiskirchen Tel: +491751629201 Fax: +49640862649 Germany Private: hans@picht.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message