Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1927801ybg; Fri, 5 Jun 2020 00:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDe/98u5mTl+ZAOk0VHofinNWdK5z+9VukVSwP4Kp0D7UBiC1kR17AiA0KTmUGgZjvS5wy X-Received: by 2002:a17:906:4ec1:: with SMTP id i1mr5122301ejv.152.1591343663062; Fri, 05 Jun 2020 00:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591343663; cv=none; d=google.com; s=arc-20160816; b=WApfMOsc0eiWuphPyLlYI48ki0aItDymOFIgimIcoPBwRCO5BJ/JK36GyGXwiVB2rk FBEwH4N2rg+SkaDxh8CrNID38J0WLuRCR/FA7w0VxaGA5Jr5PlgrBEsqhv7mIsSz2OMR hKtmAosQla+9H8WOhdrbRlvjfymcW9QqnLIr94XWY3pFUaOnogtNok1b9DzsOtmSpIVU Kl1p4Eo4ZR1VQyxhBhbXEIPbSfmMx2V7Yie9xF04UBml20ttHylSupNIPLHAHmVWjT0L t0Osm7FAS3I6ra4Ua8tzOtVtJRbGvSevmCWOmMiFPtjOLLz84MScFv0T9nKW+g/jC6+9 cwpw== 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:mime-version :message-id:date:subject:cc:to:from; bh=6YaLSAmrX9Cd0jvYJfKoxYoPCZE8j7O2ucfo1Xh/R/0=; b=el+j7gQH04RqGuFr+s+QcnmxBFDrIFUSRzHInTc5Jg/4nkqG+CIz1Sxuoh5rf6uskP UD8prcmIsDL1eZFobIdXaSCQ/kM1zRbtgKt1mc0Rur+qW4n/44s7nyHIG0xaGKLhkzNi u2izzdsnnn5aM7w8HP+WJxKWnSozFXUSRV6ZsJ67iOPE+GxlvCB5Yt+Dbo4sqfQivNRA lB0cVvxYTXds5RFvuxXGkpE2DAW+KPHleVgaoGlWbB1twWGYifFgBe0QZqF7QIz8cCWy Bbk0T1OtVqDAEE3IfCfAZB/e1cGHpGjbwXzHzyfm/sTgo+u07/PoIz47gvXxWqYHICBz VEVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si3058372ejq.305.2020.06.05.00.53.44; Fri, 05 Jun 2020 00:54:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726024AbgFEHxj (ORCPT + 99 others); Fri, 5 Jun 2020 03:53:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:39160 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbgFEHxj (ORCPT ); Fri, 5 Jun 2020 03:53:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0500EADBB; Fri, 5 Jun 2020 07:53:41 +0000 (UTC) From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , Steve Dickson Subject: [rpcbind 1/1] man/rpcbind: Mention systemd socket in -h Date: Fri, 5 Jun 2020 09:53:32 +0200 Message-Id: <20200605075332.14564-1-pvorel@suse.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org and reformat doc a bit. Based on Olaf Kirch's patch for openSUSE. Signed-off-by: Petr Vorel --- 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. -- 2.26.2