From owner-freebsd-current@freebsd.org Fri Dec 11 01:51:29 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 562219D641E for ; Fri, 11 Dec 2015 01:51:29 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 02DC21A7E for ; Fri, 11 Dec 2015 01:51:28 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:mIj+ABIh19+PIjNSYNmcpTZWNBhigK39O0sv0rFitYgULPnxwZ3uMQTl6Ol3ixeRBMOAu6wC07KempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRMiK14ye7KObxd76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKKx8zGJsIk+PzV6nvp/jtLYqySlbuuog+shcSu26Ov1gFf0LRAghZko44s/isBjFBSiG6mYfGjEVmxZVACDgzS28c7vM5HjUrO14jRObNs6+aLk/WjCv6u8/UhrhgyQDOjsR7WbYl8F0lKIdqxv39E83+JLdfIzAbKk2RajaZ95PADMZBss= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CtBACXK2pW/61jaINeDoN/bga9Q4FiFwqFJEoCgXISAQEBAQEBAQGBCYItggcBAQEEAQEBICsgCwwEAgEIGAICDRkCAicBCSYCBAgHBAEaAgSIDg2tFZF/AQEBAQEBAQEBAQEBAQEBAQEBG4EBhVWEfVIWg0IQAgEFgzWBSQWOJ4hJhTSFIoURmmYCKAc0g0ZcIDQHhEmBBwEBAQ X-IronPort-AV: E=Sophos;i="5.20,410,1444708800"; d="scan'208";a="255547396" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 10 Dec 2015 20:51:18 -0500 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id E7B3415F565; Thu, 10 Dec 2015 20:51:18 -0500 (EST) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id b7MMgQrlEz_l; Thu, 10 Dec 2015 20:51:18 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 7CCCA15F56E; Thu, 10 Dec 2015 20:51:18 -0500 (EST) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vssIHBDONg4R; Thu, 10 Dec 2015 20:51:18 -0500 (EST) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 63A0215F565; Thu, 10 Dec 2015 20:51:18 -0500 (EST) Date: Thu, 10 Dec 2015 20:51:18 -0500 (EST) From: Rick Macklem To: Benjamin Kaduk Cc: freebsd-current Message-ID: <1916004699.127591232.1449798678143.JavaMail.zimbra@uoguelph.ca> In-Reply-To: References: <521574245.126601980.1449754639530.JavaMail.zimbra@uoguelph.ca> Subject: Re: RPC request sent to 127.0.0.1 becomes from other IP on machine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF42 (Win)/8.0.9_GA_6191) Thread-Topic: RPC request sent to 127.0.0.1 becomes from other IP on machine Thread-Index: u/PpY21mh/Ra6N8poT2Zek8zYa0bjA== 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: Fri, 11 Dec 2015 01:51:29 -0000 Ok, I had a hunch it was related to the use of jails. I am just testing a patch that switches the nfsuserd over to using an af_local socket, so this will be avoided. (I think it makes more sense anyhow. I just never got around to doing it.;-) Thanks for the info, rick ----- Original Message ----- > On Thu, 10 Dec 2015, 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? > > My memory is quite hazy on this subject, but I think that outbound traffic > from a jail is not permitted to use the system loopback address 127.0.0.1; > traffic from this address within a jail gets replace with the jail's > primary IP address. It is possible to specify an alternate loopback > address for use within the jail (e.g., 127.0.0.2) and if that alternate > address is only bound within the jail, it can be used for outgoing traffic > to the host. See jail.conf(5); I appear to have something like: > > kduck { > host.hostname = "kduck.mit.edu"; > ip4.addr = lo0|127.0.0.2, 18.18.0.52; > [...] > } > > Note that there may be some additional magic about the primary address of > the jail being first (or last?) in the list of addresses. > > -Ben > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >