From owner-freebsd-questions Wed Jan 2 6:19: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.wananchi.com (ns2.wananchi.com [212.49.74.4]) by hub.freebsd.org (Postfix) with ESMTP id 61CB537B41A for ; Wed, 2 Jan 2002 06:18:55 -0800 (PST) Received: from wash by ns2.wananchi.com with local (Exim 3.33 #1 (FreeBSD)) id 16LmCt-000FIf-00; Wed, 02 Jan 2002 17:17:27 +0300 Date: Wed, 2 Jan 2002 17:17:27 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org Cc: Jayyness@mindspring.com Subject: Re: Kicking a single user off httpd Message-ID: <20020102171727.E49613@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-questions@freebsd.org, Jayyness@mindspring.com References: <000f01c19394$42196d10$0300a8c0@jayyness.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000f01c19394$42196d10$0300a8c0@jayyness.com> User-Agent: Mutt/1.3.23i X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Are you a turtle? X-Operating-System: FreeBSD 4.4-STABLE i386 X-Best-Window-Manager: XFCE X-Mailer: Mutt http://www.mutt.org/ X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 5:13PM up 2 days, 12 mins, 4 users, load averages: 0.45, 0.63, 0.56 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * Totally Jayyness [20020102 16:48]: wrote: > I know how to kill and restart this process... just don't know how to kick a > single user. Better explain the situation as I am not sure how to ask my > question really. > > I recently set up a FreeBSD 4.4 mp3/ftp server. If you go to my website, it > is just a directory listing of all my mp3s with playlist songs to stream > mp3s from the web. > > Well, while trying to listen to my mp3s this morning, they were super > choppy. Winamp couldn't keep up with the buffer. I log into my server and > find that there are like 40+ connections to port 80 from one single IP.... > So this person must be d/ling MP3s directly from my web interface instead of > requesting ftp access to my site.... so I do a killall -HUP httpd which > kills all the connections and restarts my daemon... check netstat -Aan and > everything looks normal.... my mp3s start streaming nicely... for about 1 > minute (probably less). Check netstat -Aan again and all the 40+ > connections are back... > > Can I kill that user off of httpd? If so, what commands do I use? Kill is rather difficult, IMO. Why don't you use the restrictions that come as directives in httpd.conf to restrict who can access your server? Order allow,deny AllowOverride None Allow from .some_domain.com Or so I think ;) - -Wash S y s t e m s A d m i n. - -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Why can't you be a non-conformist like everyone else? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8MxZ1n7LIsuxjem8RAvIqAJ44vkhhiwZQNIcmBG9Cu5bhGGxv/gCeOQCA 8EB3vH5ftOF4L72CAfHna8s= =Ptwx -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message