From owner-freebsd-isp@FreeBSD.ORG Mon Jul 17 17:06:16 2006 Return-Path: X-Original-To: isp@freebsd.org Delivered-To: freebsd-isp@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F40C16A4E5; Mon, 17 Jul 2006 17:06:16 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC3843D67; Mon, 17 Jul 2006 17:06:15 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.6/8.13.6) with ESMTP id k6HH6DUj041286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jul 2006 13:06:14 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k6HH67Dv019025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Jul 2006 13:06:08 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: net@freebsd.org, isp@freebsd.org Date: Mon, 17 Jul 2006 13:06:01 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607171306.01882.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88/1600/Sat Jul 15 11:03:46 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: Subject: forcing FTP-uploaded files to be of certain types only X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 17:06:16 -0000 Hello! We run an FTP server for the customers to upload their data (usually -- giant core-files and database-dumps). Sometimes they forget compress them, however, wasting many gigabytes of our server's space... How hard would it be to make the stock FreeBSD FTP-server to examine the first, say, 100Kb of the uploaded file and interrupt transfer if the file is of a prohibited or is not of an allowed type? Anything under 100Kb is fine, I guess, and 100Kb is more than enough to detect compression or lack thereof... Thanks for ideas! -mi