From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 15:08:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D25C1065673 for ; Mon, 5 Apr 2010 15:08:47 +0000 (UTC) (envelope-from walterk1@earthlink.net) Received: from pop-scotia.atl.sa.earthlink.net (pop-scotia.atl.sa.earthlink.net [207.69.195.65]) by mx1.freebsd.org (Postfix) with ESMTP id 4911E8FC14 for ; Mon, 5 Apr 2010 15:08:47 +0000 (UTC) Received: from user-0c6sn0e.cable.mindspring.com ([24.110.92.14] helo=[192.168.0.100]) by pop-scotia.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1Nynuw-0000M3-00 for freebsd-questions@FreeBSD.org; Mon, 05 Apr 2010 11:08:46 -0400 Message-ID: <4BB9FCFB.40103@earthlink.net> Date: Mon, 05 Apr 2010 10:08:43 -0500 From: Walter User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: ftp giving url but i want the IP address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 15:08:47 -0000 I want to parse ftp error messages in auth.log and use the ip address in inserting a block into ipfw. It works, except when ftpd spits out the host-specific url rather than the ip. Adding "-h" to the ftpd command in inet.conf didn't help. Can someone tell me how to do this, or point me to code (C) to convert it? Thanks. I'm off-list so please reply directly. Walter