From owner-freebsd-current@freebsd.org Thu Dec 10 14:37:27 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D22549D76A3 for ; Thu, 10 Dec 2015 14:37:27 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC1FE1B39 for ; Thu, 10 Dec 2015 14:37:27 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B790A214E7 for ; Thu, 10 Dec 2015 09:37:25 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute1.internal (MEProxy); Thu, 10 Dec 2015 09:37:25 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=vCuFWSczjer8x9V E7xNhNU9gZJA=; b=UOLIwOgUt6YPMsnql1BZiGVnPcD1YW8+LtsyGkWDSJXIkVh YVMhSxobcwCvQkWhjK3Mv2P12XlTl8OSriISAqDC1hwL/lAivr4c+z21+IupBsCH H2MhvJY/coll+XKhZufIF6yMk+AeHE9Q+AnXpV7WhHqNubJFAq0RPsEv9a9o= Received: by web3.nyi.internal (Postfix, from userid 99) id 91A23107863; Thu, 10 Dec 2015 09:37:25 -0500 (EST) Message-Id: <1449758245.1775185.463651697.2CDBB08E@webmail.messagingengine.com> X-Sasl-Enc: ap1tuBRHRVOoKyROTQ9yGw7HizCJIuP1iqZunHhQSSou 1449758245 From: Mark Felder To: Rick Macklem , "freebsd-current" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-5c8c9c89 In-Reply-To: <521574245.126601980.1449754639530.JavaMail.zimbra@uoguelph.ca> References: <521574245.126601980.1449754639530.JavaMail.zimbra@uoguelph.ca> Subject: Re: RPC request sent to 127.0.0.1 becomes from other IP on machine Date: Thu, 10 Dec 2015 08:37:25 -0600 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 14:37:27 -0000 On Thu, Dec 10, 2015, at 07:37, Rick Macklem wrote: > Hi, > > Mark has reported a problem via email where the nfsuserd daemon sees > requests coming from an IP# assigned to the machine instead of 127.0.0.1. > Here's a snippet from his message: > Ok, I have Plex in a jail and when I scan the remote NFS file share the > *local* server's nfsuserd spams the logs. > Spamming the logs refers to the messages nfsuserd generates when it gets > a request from an address other than 127.0.0.1. > > I think the best solution is to switch nfsuserd over to using an AF_LOCAL > socket like the gssd uses, but that will take a little coding and > probably > won't be MFCable. > > I've sent him the attached patch to try as a workaround. > > Does anyone happen to know under what circumstances the address 127.0.0.1 > gets replaced? > > And do you know if it will always be replaced with the same > address? > (I'm basically wondering if the workaround needs to be a list of IP > addresses > instead of a single address?) > > Thanks in advance for any help with this, rick > I've opened a PR per your request https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205193 -- Mark Felder ports-secteam member feld@FreeBSD.org