git: 95f8bb6d06d9 - stable/11 - ipfw.8: synopsis misses nat show form

Lutz Donnerhacke donner at FreeBSD.org
Fri Jun 18 10:07:27 UTC 2021


The branch stable/11 has been updated by donner:

URL: https://cgit.FreeBSD.org/src/commit/?id=95f8bb6d06d9fb65dc382423485f2f636ec20375

commit 95f8bb6d06d9fb65dc382423485f2f636ec20375
Author:     Lutz Donnerhacke <donner at FreeBSD.org>
AuthorDate: 2021-05-10 16:30:42 +0000
Commit:     Lutz Donnerhacke <donner at FreeBSD.org>
CommitDate: 2021-06-18 10:06:42 +0000

    ipfw.8: synopsis misses nat show form
    
    Document the existing behavior, which is currently only available by
    reading third party documentation or the source code itself.
    
    PR:             254617
    Submitted by:   Oliver Kiddle
    Differential Revision: https://reviews.freebsd.org/D30189
    
    (cherry picked from commit c8250c5ada85fec8936e8eb8695d7cb80a3ce8ab)
---
 sbin/ipfw/ipfw.8 | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8
index 4cdd7b63849f..93c265512ce1 100644
--- a/sbin/ipfw/ipfw.8
+++ b/sbin/ipfw/ipfw.8
@@ -1,7 +1,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 11, 2021
+.Dd June 4, 2021
 .Dt IPFW 8
 .Os
 .Sh NAME
@@ -105,6 +105,11 @@ in-kernel NAT.
 .Ar number
 .Cm config
 .Ar config-options
+.Nm
+.Cm nat
+.Ar number
+.Cm show
+.Brq Cm config | log
 .Ss STATEFUL IPv6/IPv4 NETWORK ADDRESS AND PROTOCOL TRANSLATION
 .Nm
 .Oo Cm set Ar N Oc Cm nat64lsn Ar name Cm create Ar create-options
@@ -922,7 +927,7 @@ This makes the
 .Xr netstat 1
 entry look rather weird but is intended for
 use with transparent proxy servers.
-.It Cm nat Ar nat_nr | tablearg
+.It Cm nat Ar nat_nr | global | tablearg
 Pass packet to a
 nat instance
 (for network address translation, address redirect, etc.):
@@ -3243,8 +3248,9 @@ Obey transparent proxy rules only, packet aliasing is not performed.
 Skip instance in case of global state lookup (see below).
 .El
 .Pp
-Some specials value can be supplied instead of
-.Va nat_number:
+Some special values can be supplied instead of
+.Va nat_number
+in nat rule actions:
 .Bl -tag -width indent
 .It Cm global
 Looks up translation state in all configured nat instances.
@@ -3270,7 +3276,7 @@ For more information about aliasing modes, refer to
 .Xr libalias 3 .
 See Section
 .Sx EXAMPLES
-for some examples about nat usage.
+for some examples of nat usage.
 .Ss REDIRECT AND LSNAT SUPPORT IN IPFW
 Redirect and LSNAT support follow closely the syntax used in
 .Xr natd 8 .


More information about the dev-commits-src-all mailing list