From nobody@FreeBSD.org  Sat Apr  7 11:53:10 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3828416A401
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Apr 2007 11:53:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 2936613C46A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Apr 2007 11:53:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l37BrA0d079905
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 7 Apr 2007 11:53:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l37Bm8a5078034;
	Sat, 7 Apr 2007 11:48:08 GMT
	(envelope-from nobody)
Message-Id: <200704071148.l37Bm8a5078034@www.freebsd.org>
Date: Sat, 7 Apr 2007 11:48:08 GMT
From: Tom Judge<tom@tomjudge.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mountd replies using wrong source address
X-Send-Pr-Version: www-3.0

>Number:         111354
>Category:       bin
>Synopsis:       mountd(8) replies using wrong source address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 07 12:00:12 GMT 2007
>Closed-Date:    Sun May 18 14:54:49 UTC 2008
>Last-Modified:  Sun May 18 14:54:49 UTC 2008
>Originator:     Tom Judge
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD beaker.mintel.co.uk 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Tue Mar 20 10:32:46 GMT 2007     root@bob.mintel.co.uk:/usr/obj/usr/src/sys/BUNSEN_BEAKER  i386
>Description:
When using an IP alias to provide NFS services to a network mountd will
reply to requests sent to the alias IP from the main IP on that network:

ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 8192
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 172.31.0.19 netmask 0xffffff00 broadcast 172.31.0.255
        inet 172.31.0.200 netmask 0xffffffff broadcast 172.31.0.200
        ether 00:13:72:5c:89:67
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active

Relevant line from client fstab:
172.31.0.200:/cfarm/ports /usr/ports      nfs     ro              0       0


When the client mounts the file system replies from mountd originate from
172.31.0.19 rather than from 172.31.0.200.

Could this be solved by adding the -h option mountd that is already present
in nfsd and rpcbind,  so that the bind address of mountd could be specified?

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Mon Sep 17 14:08:54 UTC 2007 
Responsible-Changed-Why:  
My work on bin/114097 may affect this PR, so I take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111354 
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Dom 3 Feb 2008 17:07:52 UTC 
State-Changed-Why:  
I committed and MFC'ed to RELENG_7 a patch that adds -h <bindip> option to mountd. Can you please test it and see if it solve your problem? Thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111354 
State-Changed-From-To: feedback->closed 
State-Changed-By: matteo 
State-Changed-When: Dom 18 Mag 2008 14:54:36 UTC 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111354 
>Unformatted:
