From vss@mx2.ulstu.ru Thu Aug 3 05:57:09 2000 Return-Path: Received: from mx2.ulstu.ru (ns.ulstu.ru [62.76.34.36]) by hub.freebsd.org (Postfix) with ESMTP id 50AB737B663 for ; Thu, 3 Aug 2000 05:56:43 -0700 (PDT) (envelope-from vss@mx2.ulstu.ru) Received: (from vss@localhost) by mx2.ulstu.ru (8.9.3-mfd/8.9.3) id QAA02937; Thu, 3 Aug 2000 16:41:18 +0400 (MSD) Message-Id: <200008031241.QAA02937@mx2.ulstu.ru> Date: Thu, 3 Aug 2000 16:41:18 +0400 (MSD) From: Vlad Skvortsov Sender: vss@mx2.ulstu.ru Reply-To: vss@ulstu.ru To: FreeBSD-gnats-submit@freebsd.org Subject: portmapper incorrectly checks interfaces with aliases X-Send-Pr-Version: 3.2 >Number: 20381 >Category: bin >Synopsis: portmapper incorrectly checks interfaces with aliases >Confidential: no >Severity: serious >Priority: medium >Responsible: brian >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 03 06:00:00 PDT 2000 >Closed-Date: Wed Aug 9 02:25:20 PDT 2000 >Last-Modified: Wed Aug 09 02:25:48 PDT 2000 >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: From: Sheldon Hearn To: vss@ulstu.ru Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/20381: portmapper incorrectly checks interfaces with aliases Date: Thu, 03 Aug 2000 18:54:57 +0200 On Thu, 03 Aug 2000 16:41:18 +0400, Vlad Skvortsov wrote: > >Number: 20381 > >Category: bin > >Synopsis: portmapper incorrectly checks interfaces with aliases Could you try the last patch provided on PR bin/5139 ? http://www.freebsd.org/cgi/query-pr.cgi?pr=5139 Ciao, Sheldon. Responsible-Changed-From-To: freebsd-bugs->brian Responsible-Changed-By: sheldonh Responsible-Changed-When: Tue Aug 8 04:10:55 PDT 2000 Responsible-Changed-Why: Brian has a handle on this. http://www.freebsd.org/cgi/query-pr.cgi?pr=20381 State-Changed-From-To: open->closed State-Changed-By: brian State-Changed-When: Tue Aug 8 11:28:15 PDT 2000 State-Changed-Why: Committed to 4-stable http://www.freebsd.org/cgi/query-pr.cgi?pr=20381 State-Changed-From-To: closed->open State-Changed-By: brian State-Changed-When: Tue Aug 8 13:45:54 PDT 2000 State-Changed-Why: Oops, I closed the wrong PR.... sorry. http://www.freebsd.org/cgi/query-pr.cgi?pr=20381 State-Changed-From-To: open->closed State-Changed-By: brian State-Changed-When: Wed Aug 9 02:25:20 PDT 2000 State-Changed-Why: Fixed in -current. I'll MFC in 1 week if there are no problems. http://www.freebsd.org/cgi/query-pr.cgi?pr=20381 >Unformatted: