From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 08:22:20 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7450A1065670; Fri, 31 Aug 2012 08:22:20 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 208DA8FC0C; Fri, 31 Aug 2012 08:22:19 +0000 (UTC) Received: by obbun3 with SMTP id un3so6540794obb.13 for ; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wCROLM4TPC3VKezzBRrtO4Rk6D/VfDU6qIXtMqw9c5s=; b=nVFn7vdr4WQUMsxeod0AA/Rw2KvBLFnkoL7svEKj+VM+pmpx/Z0o2vO0sh+QmMHKic 9DC3kDGFmWxYPfxCZoINwZjM23ErRzkIGI/2+zMCk5h+8eEV87bhL/P5C65AOd3Vvryc pYSM3hqJrE8SgjOz0+o4zjQhyTxIPtd4MMga/VQ2XtU817EwEyk/79hTLKvWQDc6UXcy fPe3Ficb9V62O2v/srcVKw9qiPejLuMWCjlusySf/3jwKaaxO/U5scAX7lvTBxvFak22 FbiBRhGYmWRgtTYSp2htOMhRsRJLi8r06s0TbI5j2ZLFnfIawQlDRw8cvDwPVI3RY/Xx As8A== MIME-Version: 1.0 Received: by 10.182.222.39 with SMTP id qj7mr7009472obc.16.1346401339478; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) Received: by 10.76.142.201 with HTTP; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) In-Reply-To: References: <50407056.3000606@passap.ru> Date: Fri, 31 Aug 2012 01:22:19 -0700 Message-ID: From: Garrett Cooper To: =?KOI8-R?B?4s/SydMg88HNz9LPxM/X?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, "freebsd-rc@FreeBSD.org" Subject: Re: rpcbind does not honor -h flag X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 08:22:20 -0000 On Fri, Aug 31, 2012 at 1:14 AM, Garrett Cooper wrote: > On Fri, Aug 31, 2012 at 1:05 AM, =E2=CF=D2=C9=D3 =F3=C1=CD=CF=D2=CF=C4=CF= =D7 wrote: >> Hi All, >> >> I've it at 9.1-PRERELEASE and I've got a chance to test at CURRENT. >> It's the same (mind a line with "udp4 *:768" at sockstat info): >> ----- >> % sockstat -4l | grep rpcbind >> >> % grep rpcbind /etc/rc.conf.local >> rpcbind_flags=3D"-h 192.168.119.6" >> rpcbind_enable=3D"YES" >> >> % sudo /etc/rc.d/rpcbind start >> Starting rpcbind. >> >> % sockstat -4l | grep rpcbind >> root rpcbind 4265 9 udp4 127.0.0.1:111 *:* >> root rpcbind 4265 10 udp4 192.168.119.6:111 *:* >> root rpcbind 4265 11 udp4 *:768 *:* >> root rpcbind 4265 12 tcp4 127.0.0.1:111 *:* >> root rpcbind 4265 13 tcp4 192.168.119.6:111 *:* >> >> % uname -a >> FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #31 r239793: Wed = Aug >> 29 03:00:30 SAMT 2012 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX i3= 86 > > This is a generic rc(5) bug: ... > Please file a PR against rc ASAP. Grr... that's right. /etc/defaults/rc.conf overwrites anything set in the environment. Please ignore the previous email. And FWIW, rpcbind doesn't in fact bind to specific addresses like you claim= : $ sockstat -4 | grep rpcbind root rpcbind 1060 9 udp4 127.0.0.1:111 *:* root rpcbind 1060 10 udp4 192.168.20.2:111 *:* root rpcbind 1060 11 udp4 *:974 *:* root rpcbind 1060 12 tcp4 127.0.0.1:111 *:* root rpcbind 1060 13 tcp4 192.168.20.2:111 *:* Thanks, -Garrett