From owner-freebsd-questions@FreeBSD.ORG Mon Jul 20 15:03:09 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E25F11065675; Mon, 20 Jul 2009 15:03:09 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-fx0-f205.google.com (mail-fx0-f205.google.com [209.85.220.205]) by mx1.freebsd.org (Postfix) with ESMTP id 431BB8FC19; Mon, 20 Jul 2009 15:03:08 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fxm1 with SMTP id 1so457596fxm.43 for ; Mon, 20 Jul 2009 08:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=G92Y891XybjEDe+qOCGAMWUEKoCVDN4w0f+vxzF8u1g=; b=YSnKBeZCR/Zph0kHZ4ZEQkPvtiRk/oefG60mD3JywTLxXRcmgM1c93ESA5kRc527LN kystVR/csTxhVMNQ35bdOSc7Tahqv79o24aYri0kLi78CfJ/tDRH9i3v+7UQiu7FtQvL EhJM08qHWS6VSjnzDCeDudFvRkwuUV/ZZdaD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sDFsNXdkH1prNTAS2guFgeQObetiuFRpNEFvCy8pYpQkSH6stKilnrxJLbeX+CIk32 06CRs9w7qOU+evApstpJ3stgFCNTwtTuzvukigZwV7etxpUpHLsIg4mQAeOO/bAZh0xM BbvhY8S1z0/xO40j6Wc+phWIknQBaDndEhpCk= MIME-Version: 1.0 Received: by 10.204.116.69 with SMTP id l5mr4328060bkq.102.1248100472850; Mon, 20 Jul 2009 07:34:32 -0700 (PDT) In-Reply-To: References: Date: Mon, 20 Jul 2009 18:34:32 +0400 Message-ID: From: pluknet To: Cristiano Deana Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: stable , questions@freebsd.org Subject: Re: ftpd - Logging and resolving IP 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, 20 Jul 2009 15:03:10 -0000 2009/7/20 Cristiano Deana : > Hi, > > i use ftpd (base system), logging login, xfer, auth failure. What i > need is to log the IP address of the client, not the hostname. > I looked in ftpd(8) ma it seems it's not possible to disable the > reverse resolution. > > Any idea? > > Thanks in advance > I hope it's still applicable. --- libexec/tftpd/tftpd.c.orig 2007-11-09 06:13:22.000000000 +0300 +++ libexec/tftpd/tftpd.c 2007-11-09 06:13:49.000000000 +0300 @@ -487,7 +487,7 @@ char hbuf[NI_MAXHOST]; getnameinfo((struct sockaddr *)&from, from.ss_len, - hbuf, sizeof(hbuf), NULL, 0, 0); + hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST); syslog(LOG_INFO, "%s: %s request for %s: %s", hbuf, tp->th_opcode == WRQ ? "write" : "read", filename, errtomsg(ecode)); -- wbr, pluknet