From owner-freebsd-questions Thu Jan 3 6:16:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from femail35.sdc1.sfba.home.com (femail35.sdc1.sfba.home.com [24.254.60.25]) by hub.freebsd.org (Postfix) with ESMTP id 7D76637B41C for ; Thu, 3 Jan 2002 06:16:18 -0800 (PST) Received: from main ([24.14.243.57]) by femail35.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20020103141618.LRMD8351.femail35.sdc1.sfba.home.com@main>; Thu, 3 Jan 2002 06:16:18 -0800 Message-ID: <000a01c19461$2144a550$0300a8c0@jayyness.com> From: "Totally Jayyness" To: Cc: References: <000f01c19394$42196d10$0300a8c0@jayyness.com> <20020102171727.E49613@ns2.wananchi.com> <000401c1939a$de3338b0$0300a8c0@jayyness.com> <3C331E47.609CC5A3@globalnet.co.uk> Subject: Re: Kicking a single user off httpd Date: Thu, 3 Jan 2002 07:15:42 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for the tip, what a great looking program, just finished doing a /stand/sysinstall of it. I also went to the web page to read about it http://www.snert.com/Software/mod_throttle/ I still have some questions but am going to check the man page first and try to get it working. Hmmm, couldn't find a man page for this, probably not looking in the right place. I tried man throttle and man mod_throttle. Not sure what other iteration to try, back to the web page. Ok, it looks like I want to use the Concurrent Policy, only allowing 3 concurrent connections per IP. Not sure what some of the instructions mean, though. What the heck is this stuff listed in the directions below? "2. Depending on your operating system, you must edit the #undef and #define found at the top of mod_throttle.c source file to specify the semaphore & shared memory API to use. For the semaphore support you must #define only one of the following and #undef the rest. If you do not #define one of these, then mod_throttle will operate without semaphore support, which will have undefined results: USE_POSIX_SERIALIZATION USE_FCNTL_SERIALIZATION USE_FLOCK_SERIALIZATION USE_SYSTEM_V_SERIALIZATION For the shared memory support you must #define only one of the following and #undef the rest. If you do not #define one of these, then mod_throttle will operate without shared memory, which will have undefined results: USE_POSIX_SHARED_MEMORY USE_SYSTEM_V_SHARED_MEMORY" What the heck is that? And what the heck is this? "3.To build as DSO module, just type: cd (path to)/mod_throttle-3.1 make install To build as a static module: cd /usr/local/apache_1.3.14 (or where ever you keep the Apache source) ./configure \ (see below in the Notes for additional information) --disable-shared=throttle \ --add-module=(path to)/mod_throttle-3.1/mod_throttle.c \ ... (your other configuration options) ... make install" Does anyone have a sample mod_throttle config file they can show me? I made the minimum config entry to my httpd.conf file but the policy is set to none. I would like to limit the amount of concurrent connections to one of my particalar virtual web pages to 3. The doc shows Context: server, , , so, do I add jaybsd.jayyness.com, mp3s.jayyness.com, /mp3, What does location stand for???? OHHHHH it is server OR virtual host OR directory OR location... ok I hope that is right. But where do I put the server? Like this? ThrottlePolicy Concurrent 3 60 SetHandler throttle-status SetHandler throttle-me SetHandler throttle-me Well, the above isn't right... I think I have everythign I need except for where to put the virtual server in the http.conf part.... unless steps 2. and 3. above are really important. please reply directly as I am not subscribed to the list ----- Original Message ----- From: "John Ekins" To: "Totally Jayyness" Sent: Wednesday, January 02, 2002 7:50 AM Subject: Re: Kicking a single user off httpd > Totally Jayyness wrote: > > > > Thanks for the quick reply, Wash. > > > > I don't want to completely block that user from my web space forever... I > > am just looking for a way to kick his connection off long enough for > > whatever program he was using (probably just a web browser) to time-out when > > it was trying to auto-reconnect (which apparently is does with a vigor). > > Why not bandwidth throttle his IP? You could do this either using Apache > with mod_throttle (available in ports), or ipfw/dummynet. > > Cheers, > John. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message