From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 17:25:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28BC116A4CE for ; Fri, 4 Mar 2005 17:25:25 +0000 (GMT) Received: from smtp2.versatel.nl (smtp2.versatel.nl [62.58.50.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA4F43D1D for ; Fri, 4 Mar 2005 17:25:24 +0000 (GMT) (envelope-from f.staals@zonnet.nl) Received: (qmail 12133 invoked by uid 10); 4 Mar 2005 17:25:20 -0000 Received: (vexira-qq 12116-4C55B39E invoked from network) 04 Mar 2005 18:25:20 +0100 Received: from unknown (HELO [192.168.2.5]) ([62.59.173.176]) (envelope-sender ) by smtp2.versatel.nl (qmail-ldap-1.03) with SMTP for < >; 4 Mar 2005 17:25:20 -0000 Message-ID: <42289A42.6020705@zonnet.nl> Date: Fri, 04 Mar 2005 18:26:26 +0100 From: Frank Staals User-Agent: Mozilla Thunderbird 1.0 (X11/20050302) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.30.0.2; VDF: 6.30.0.11; host: postbode02.zonnet.nl) Subject: ftp monitoring and limiting transfer rates X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 17:25:25 -0000 Hey everyone, I have a question: I am running FreeBSD 5.3 with the default ftp-server ( ftpd ) as ftp deamon, everything works fine but I'd like to see what files peolpe are trying to download and when people log in. I would like I can get a html file which I can access on my httpd server. I know I can see who is loggin in by : tail -f /var/log/xferlog but that doesn't show what files are being transfered. My second question is about bandwith managing. How can I limit the ftp-transfer speeds that are used for downloading when people connect over rl1, my NIC which is connected to my modem and the internet. I am running pf for my firewalling and allready tried this in /etc/pf.conf: # assign packets to a queue. pass out on $ext_if from localhost to any port { 20, 21 } keep state queue ftp ##altq on $ext_if bandwidth 2Mb cbq queue { dflt, developers, marketing } ##queue dflt bandwidth 5% cbq(default) ##queue developers bandwidth 80% ##queue marketing bandwidth 15% altq on $ext_if bandwith 60Kb cbq queue { dflt, ftp } queue dflt bandwith 70% queue ftp bandwith 30% but this doesn't seem to work. Thanks in advance for checking this e-mail Frank Staals