Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp534043ybg; Tue, 9 Jun 2020 06:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycff0q31pJfO/varDkYqp5ZfL97XyQ3Aff8YShkylnhBU42JT2Ons+Zy1Yr4Xx8EkUZFez X-Received: by 2002:aa7:c942:: with SMTP id h2mr27477916edt.23.1591710693970; Tue, 09 Jun 2020 06:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591710693; cv=none; d=google.com; s=arc-20160816; b=S73YO2uotsIE9Sa+owhxA3MeFEVUvv0pMkzMtCXa48A5QyFsON+mlJ4vYxN4k3mRLP D7hyFB+9aXrbAc1gLeJmlksPWLQp0NCnvIaCtsOdulmHDP70kHqcr4sMnvIQ4JCNT20q dnW3Mw8I5w6UAvzoi2/nP4oHtqZkMIamkc5deE6gnwjXL77H0rejzURudyGolgDOJc1i yVNW0Y3UpC9m0iL5ILu9OSquwRRxLNL2oblgTuZVaVOQp+6OaeSeNhZj5syFb02YQ+WA P98MmMzq31zdqwULdH9Dbh+vkbpfmCRvM4V03aBoFessRwrS90iyDZfZvkjGNrxFzpde tdsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=UHrV6LGpRruKFTu5Fpgts2Lp+AZdHSjEyIAgsjvHjD4=; b=b8iiV93sCRxLaJAk8PfAV8lfOko9wFsGcbk9/3nTyFBK4W4m7yAcl5doDEya/as3qj NgqRAC+hcHLXHUJ7spo2tAB/fYsOqH5HI8ZWWEkhS1iWjol8xuao5CXNzovVM0Txe+Y/ 7rmAuCRc4fzkprSaPUNlorWcWm9J104nd65LuKPbV3Bbj8V8TlxhKExFYhyZ3EzCPBP8 MdUOHK7Wy5TeZ4l3fRlTTGI1tvgjqzPukhz3JerTCcBLi6A46RafBtsLN/xBJQzwK+1E dttvmIKYSWUufQ/LmbvQvMRdZBeOiSG6BJ6pLaIPYLq2WDC36GhsfDi0mrrTlimW2cF3 GjzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqLqvFa4; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si6607222ejj.723.2020.06.09.06.50.59; Tue, 09 Jun 2020 06:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqLqvFa4; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbgFINra (ORCPT + 99 others); Tue, 9 Jun 2020 09:47:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:30363 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729535AbgFINr2 (ORCPT ); Tue, 9 Jun 2020 09:47:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591710447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UHrV6LGpRruKFTu5Fpgts2Lp+AZdHSjEyIAgsjvHjD4=; b=WqLqvFa4sMNyLHKN5nC23TsGuqNoSr7YuY4r76W4J86WRm/hL820ARRNOZ3QjZQTjrsHLU 1Wm9CViBm8maQlTSx3EQcevxXHNhD8+llzyWm92VR7Ox7z0vhKOdjmNksPNXHEuPreTSZC pOAj9qcD2uGDkiY8GXN5/mvI+61SAMI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-425-RpOR7Dp8OZOZZMhZM7fbNA-1; Tue, 09 Jun 2020 09:47:23 -0400 X-MC-Unique: RpOR7Dp8OZOZZMhZM7fbNA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EED0691135; Tue, 9 Jun 2020 13:47:20 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-114-73.phx2.redhat.com [10.3.114.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7B775C1D6; Tue, 9 Jun 2020 13:47:20 +0000 (UTC) Subject: Re: [rpcbind 1/1] man/rpcbind: Mention systemd socket in -h To: Petr Vorel , linux-nfs@vger.kernel.org References: <20200605075332.14564-1-pvorel@suse.cz> From: Steve Dickson Message-ID: Date: Tue, 9 Jun 2020 09:47:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200605075332.14564-1-pvorel@suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 6/5/20 3:53 AM, Petr Vorel wrote: > and reformat doc a bit. > > Based on Olaf Kirch's patch for openSUSE. > > Signed-off-by: Petr Vorel Committed... (tag: rpcbind-1_2_6-rc6) steved. > --- > Hi Steve, > > original patch: > https://build.opensuse.org/package/view_file/openSUSE:Factory/rpcbind/0031-rpcbind-manpage.patch?expand=1 > > Olaf removed note about multi-homed host and about adding 127.0.0.1 an > ::1. I kept them, but maybe multi-homed is not relevant any more or not > limited only to UDP. Feel free to modify the text to better accommodate > to current usage. > > Kind regards, > Petr > > man/rpcbind.8 | 32 ++++++++++++++++++++++---------- > 1 file changed, 22 insertions(+), 10 deletions(-) > > diff --git a/man/rpcbind.8 b/man/rpcbind.8 > index af6200f..fbf0ace 100644 > --- a/man/rpcbind.8 > +++ b/man/rpcbind.8 > @@ -86,9 +86,16 @@ checks are shown in detail. > Do not fork and become a background process. > .It Fl h > Specify specific IP addresses to bind to for UDP requests. > -This option > -may be specified multiple times and is typically necessary when running > -on a multi-homed host. > +This option may be specified multiple times and can be used to > +restrict the interfaces rpcbind will respond to. > +When specifying IP addresses with > +.Fl h , > +.Nm > +will automatically add > +.Li 127.0.0.1 > +and if IPv6 is enabled, > +.Li ::1 > +to the list. > If no > .Fl h > option is specified, > @@ -99,14 +106,19 @@ which could lead to problems on a multi-homed host due to > .Nm > returning a UDP packet from a different IP address than it was > sent to. > -Note that when specifying IP addresses with > -.Fl h , > +Note that when > .Nm > -will automatically add > -.Li 127.0.0.1 > -and if IPv6 is enabled, > -.Li ::1 > -to the list. > +is controlled via systemd's socket activation, > +the > +.Fl h > +option is ignored. In this case, you need to edit > +the > +.Nm ListenStream > +and > +.Nm ListenDgram > +definitions in > +.Nm /usr/lib/systemd/system/rpcbind.socket > +instead. > .It Fl i > .Dq Insecure > mode. >