Date: Tue, 14 May 2002 01:43:07 +0200 From: Hans-Joachim Picht <hjp@lnxce.net> To: Francis Vidal <francisv@dagupan.com> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Web hosting and jail Message-ID: <20020513234307.GA7924@lnxce.net> In-Reply-To: <004901c1f779$3ab77690$01a25bca@pran> References: <Pine.BSF.4.05.10205090800490.6896-100000@misery.sdf.com> <004901c1f779$3ab77690$01a25bca@pran>
index | next in thread | previous in thread | raw e-mail
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 <hjp@lnxce.net>
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020513234307.GA7924>
