Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2000 16:41:18 +0400 (MSD)
From:      Vlad Skvortsov <vss@ulstu.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/20381: portmapper incorrectly checks interfaces with aliases
Message-ID:  <200008031241.QAA02937@mx2.ulstu.ru>

next in thread | raw e-mail | index | archive | help

>Number:         20381
>Category:       bin
>Synopsis:       portmapper incorrectly checks interfaces with aliases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 03 06:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Vlad Skvortsov
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Ulyanovsk State Technical Universoty
>Environment:

	There is aliased address on lo0 interface (in addition to 127.0.0.1).

>Description:

	/usr/sbin/portmap treats aliased ip addresses on interfaces as
	non-local thus refusing local daemons to register (for example,
	mountd).

	Function find_local() cycles through all interfaces and collects
	addresses associated with them. Though it only gets one (first)
	address from each interface. In case when lo0 has aliased ip besides
	127.0.0.1, the latter may be not the first associated with lo0 in the 
	list returned by sysctl(NET_RT_IFLIST). That way the aliased ip will
	be further treated as local and 127.0.0.1 as non-local.

>How-To-Repeat:

	# iconfig lo0 1.2.3.4 netmask 0xfffffff alias
	# killall -9 portmap
	# portmap -v
	# mountd

	After this portmapper claims to syslog that request from mountd has
	come not from local address.

>Fix:
	
	Check if the interface has aliased ip addresses and in that case
	copy them all to internal local addresses array.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008031241.QAA02937>