Blame SOURCES/0017-doc-Add-deprecation-notices-to-all-relevant-man-page.patch

3a00e5
From 635e4c4e7f3581a7cc8c04244ae3de239ad84935 Mon Sep 17 00:00:00 2001
3a00e5
From: Phil Sutter <psutter@redhat.com>
3a00e5
Date: Thu, 17 Jun 2021 18:44:28 +0200
3a00e5
Subject: [PATCH] doc: Add deprecation notices to all relevant man pages
3a00e5
3a00e5
This is RHEL9 trying to friendly kick people towards nftables.
3a00e5
---
3a00e5
 iptables/arptables-nft-restore.8       | 13 ++++++++++++-
3a00e5
 iptables/arptables-nft-save.8          | 14 +++++++++++++-
3a00e5
 iptables/arptables-nft.8               | 19 ++++++++++++++++++-
3a00e5
 iptables/ebtables-nft.8                | 15 ++++++++++++++-
3a00e5
 iptables/iptables-apply.8.in           | 14 +++++++++++++-
3a00e5
 iptables/iptables-extensions.8.tmpl.in | 14 ++++++++++++++
3a00e5
 iptables/iptables-restore.8.in         | 17 ++++++++++++++++-
3a00e5
 iptables/iptables-save.8.in            | 15 ++++++++++++++-
3a00e5
 iptables/iptables.8.in                 | 17 +++++++++++++++++
3a00e5
 iptables/xtables-monitor.8.in          | 11 +++++++++++
3a00e5
 10 files changed, 142 insertions(+), 7 deletions(-)
3a00e5
3a00e5
diff --git a/iptables/arptables-nft-restore.8 b/iptables/arptables-nft-restore.8
3a00e5
index 09d9082cf9fd3..b1bf02998f9cc 100644
3a00e5
--- a/iptables/arptables-nft-restore.8
3a00e5
+++ b/iptables/arptables-nft-restore.8
3a00e5
@@ -24,6 +24,17 @@ arptables-restore \- Restore ARP Tables (nft-based)
3a00e5
 .SH SYNOPSIS
3a00e5
 \fBarptables\-restore
3a00e5
 .SH DESCRIPTION
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
 .PP
3a00e5
 .B arptables-restore
3a00e5
 is used to restore ARP Tables from data specified on STDIN or
3a00e5
@@ -35,5 +46,5 @@ flushes (deletes) all previous contents of the respective ARP Table.
3a00e5
 .SH AUTHOR
3a00e5
 Jesper Dangaard Brouer <brouer@redhat.com>
3a00e5
 .SH SEE ALSO
3a00e5
-\fBarptables\-save\fP(8), \fBarptables\fP(8)
3a00e5
+\fBarptables\-save\fP(8), \fBarptables\fP(8), \fBnft\fP(8)
3a00e5
 .PP
3a00e5
diff --git a/iptables/arptables-nft-save.8 b/iptables/arptables-nft-save.8
3a00e5
index 905e59854cc28..49bb0f6260f2f 100644
3a00e5
--- a/iptables/arptables-nft-save.8
3a00e5
+++ b/iptables/arptables-nft-save.8
3a00e5
@@ -27,6 +27,18 @@ arptables-save \- dump arptables rules to stdout (nft-based)
3a00e5
 \fBarptables\-save\fP [\fB\-V\fP]
3a00e5
 .SH DESCRIPTION
3a00e5
 .PP
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
+.PP
3a00e5
 .B arptables-save
3a00e5
 is used to dump the contents of an ARP Table in easily parseable format
3a00e5
 to STDOUT. Use I/O-redirection provided by your shell to write to a file.
3a00e5
@@ -43,5 +55,5 @@ Print version information and exit.
3a00e5
 .SH AUTHOR
3a00e5
 Jesper Dangaard Brouer <brouer@redhat.com>
3a00e5
 .SH SEE ALSO
3a00e5
-\fBarptables\-restore\fP(8), \fBarptables\fP(8)
3a00e5
+\fBarptables\-restore\fP(8), \fBarptables\fP(8), \fBnft\fP(8)
3a00e5
 .PP
3a00e5
diff --git a/iptables/arptables-nft.8 b/iptables/arptables-nft.8
3a00e5
index ea31e0842acd4..ec5b993a41e8b 100644
3a00e5
--- a/iptables/arptables-nft.8
3a00e5
+++ b/iptables/arptables-nft.8
3a00e5
@@ -39,6 +39,19 @@ arptables \- ARP table administration (nft-based)
3a00e5
 .BR "arptables " [ "-t table" ] " -P chain target " [ options ]
3a00e5
 
3a00e5
 .SH DESCRIPTION
3a00e5
+.PP
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
+.PP
3a00e5
 .B arptables
3a00e5
 is a user space tool, it is used to set up and maintain the
3a00e5
 tables of ARP rules in the Linux kernel. These rules inspect
3a00e5
@@ -340,9 +353,13 @@ bridges, the same may be achieved using
3a00e5
 chain in
3a00e5
 .BR ebtables .
3a00e5
 
3a00e5
+This tool is deprecated in Red Hat Enterprise Linux. It is maintenance only and
3a00e5
+will not receive new features. New setups should use \fBnft\fP(8). Existing
3a00e5
+setups should migrate to \fBnft\fP(8) when possible.
3a00e5
+
3a00e5
 .SH MAILINGLISTS
3a00e5
 .BR "" "See " http://netfilter.org/mailinglists.html
3a00e5
 .SH SEE ALSO
3a00e5
-.BR xtables-nft "(8), " iptables "(8), " ebtables "(8), " ip (8)
3a00e5
+.BR xtables-nft "(8), " iptables "(8), " ebtables "(8), " ip "(8), " nft (8)
3a00e5
 .PP
3a00e5
 .BR "" "See " https://wiki.nftables.org
3a00e5
diff --git a/iptables/ebtables-nft.8 b/iptables/ebtables-nft.8
3a00e5
index 1fa5ad9388cc0..5bdc0bb8a939e 100644
3a00e5
--- a/iptables/ebtables-nft.8
3a00e5
+++ b/iptables/ebtables-nft.8
3a00e5
@@ -52,6 +52,19 @@ ebtables \- Ethernet bridge frame table administration (nft-based)
3a00e5
 .br
3a00e5
 
3a00e5
 .SH DESCRIPTION
3a00e5
+.PP
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
+.PP
3a00e5
 .B ebtables
3a00e5
 is an application program used to set up and maintain the
3a00e5
 tables of rules (inside the Linux kernel) that inspect
3a00e5
@@ -1111,6 +1124,6 @@ table. Also there is no support for
3a00e5
 .B string
3a00e5
 match. And finally, this list is probably not complete.
3a00e5
 .SH SEE ALSO
3a00e5
-.BR xtables-nft "(8), " iptables "(8), " ip (8)
3a00e5
+.BR xtables-nft "(8), " iptables "(8), " ip "(8), " nft (8)
3a00e5
 .PP
3a00e5
 .BR "" "See " https://wiki.nftables.org
3a00e5
diff --git a/iptables/iptables-apply.8.in b/iptables/iptables-apply.8.in
3a00e5
index f0ed4e5f8d450..7f99a21ed2b61 100644
3a00e5
--- a/iptables/iptables-apply.8.in
3a00e5
+++ b/iptables/iptables-apply.8.in
3a00e5
@@ -11,6 +11,18 @@ iptables-apply \- a safer way to update iptables remotely
3a00e5
 \fBiptables\-apply\fP [\-\fBhV\fP] [\fB-t\fP \fItimeout\fP] [\fB-w\fP \fIsavefile\fP] {[\fIrulesfile]|-c [runcmd]}\fP
3a00e5
 .SH "DESCRIPTION"
3a00e5
 .PP
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
+.PP
3a00e5
 iptables\-apply will try to apply a new rulesfile (as output by
3a00e5
 iptables-save, read by iptables-restore) or run a command to configure
3a00e5
 iptables and then prompt the user whether the changes are okay. If the
3a00e5
@@ -47,7 +59,7 @@ Display usage information.
3a00e5
 Display version information.
3a00e5
 .SH "SEE ALSO"
3a00e5
 .PP
3a00e5
-\fBiptables-restore\fP(8), \fBiptables-save\fP(8), \fBiptables\fR(8).
3a00e5
+\fBiptables-restore\fP(8), \fBiptables-save\fP(8), \fBiptables\fR(8), \fBnft\fP(8).
3a00e5
 .SH LEGALESE
3a00e5
 .PP
3a00e5
 Original iptables-apply - Copyright 2006 Martin F. Krafft <madduck@madduck.net>.
3a00e5
diff --git a/iptables/iptables-extensions.8.tmpl.in b/iptables/iptables-extensions.8.tmpl.in
3a00e5
index 99d89a1fe44ad..73d40bbfe9c52 100644
3a00e5
--- a/iptables/iptables-extensions.8.tmpl.in
3a00e5
+++ b/iptables/iptables-extensions.8.tmpl.in
3a00e5
@@ -7,6 +7,20 @@ iptables-extensions \(em list of extensions in the standard iptables distributio
3a00e5
 .PP
3a00e5
 \fBiptables\fP [\fB\-m\fP \fIname\fP [\fImodule-options\fP...]]
3a00e5
 [\fB\-j\fP \fItarget-name\fP [\fItarget-options\fP...]
3a00e5
+.SH DESCRIPTION
3a00e5
+These tools are
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. They are maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details. There is also
3a00e5
+.BR iptables\-translate (8)/ ip6tables\-translate (8)
3a00e5
+to help with the migration.
3a00e5
 .SH MATCH EXTENSIONS
3a00e5
 iptables can use extended packet matching modules
3a00e5
 with the \fB\-m\fP or \fB\-\-match\fP
3a00e5
diff --git a/iptables/iptables-restore.8.in b/iptables/iptables-restore.8.in
3a00e5
index b4b62f92740d1..1bbf7a0d98d0a 100644
3a00e5
--- a/iptables/iptables-restore.8.in
3a00e5
+++ b/iptables/iptables-restore.8.in
3a00e5
@@ -31,6 +31,19 @@ ip6tables-restore \(em Restore IPv6 Tables
3a00e5
 [\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
3a00e5
 [\fBfile\fP]
3a00e5
 .SH DESCRIPTION
3a00e5
+These tools are
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. They are maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details. There is also
3a00e5
+.BR iptables\-restore\-translate (8)/ ip6tables\-restore\-translate (8)
3a00e5
+to help with the migration.
3a00e5
 .PP
3a00e5
 .B iptables-restore
3a00e5
 and
3a00e5
@@ -87,7 +100,9 @@ from Rusty Russell.
3a00e5
 .br
3a00e5
 Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-restore.
3a00e5
 .SH SEE ALSO
3a00e5
-\fBiptables\-apply\fP(8),\fBiptables\-save\fP(8), \fBiptables\fP(8)
3a00e5
+\fBiptables\-apply\fP(8), \fBiptables\-save\fP(8), \fBiptables\fP(8),
3a00e5
+\fBnft\fP(8), \fBiptables\-restore\-translate\fP(8),
3a00e5
+\fBip6tables\-restore\-translate\fP(8)
3a00e5
 .PP
3a00e5
 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
3a00e5
 which details NAT, and the netfilter-hacking-HOWTO which details the
3a00e5
diff --git a/iptables/iptables-save.8.in b/iptables/iptables-save.8.in
3a00e5
index 7683fd3780f72..6fe50b2d446e5 100644
3a00e5
--- a/iptables/iptables-save.8.in
3a00e5
+++ b/iptables/iptables-save.8.in
3a00e5
@@ -30,6 +30,18 @@ ip6tables-save \(em dump iptables rules
3a00e5
 [\fB\-t\fP \fItable\fP] [\fB\-f\fP \fIfilename\fP]
3a00e5
 .SH DESCRIPTION
3a00e5
 .PP
3a00e5
+These tools are
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. They are maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
+.PP
3a00e5
 .B iptables-save
3a00e5
 and
3a00e5
 .B ip6tables-save
3a00e5
@@ -62,7 +74,8 @@ Rusty Russell <rusty@rustcorp.com.au>
3a00e5
 .br
3a00e5
 Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-save.
3a00e5
 .SH SEE ALSO
3a00e5
-\fBiptables\-apply\fP(8),\fBiptables\-restore\fP(8), \fBiptables\fP(8)
3a00e5
+\fBiptables\-apply\fP(8),\fBiptables\-restore\fP(8), \fBiptables\fP(8),
3a00e5
+\fBnft\fP(8)
3a00e5
 .PP
3a00e5
 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
3a00e5
 which details NAT, and the netfilter-hacking-HOWTO which details the
3a00e5
diff --git a/iptables/iptables.8.in b/iptables/iptables.8.in
3a00e5
index 999cf339845f9..895cc7b111eb9 100644
3a00e5
--- a/iptables/iptables.8.in
3a00e5
+++ b/iptables/iptables.8.in
3a00e5
@@ -55,6 +55,20 @@ match = \fB\-m\fP \fImatchname\fP [\fIper-match-options\fP]
3a00e5
 .PP
3a00e5
 target = \fB\-j\fP \fItargetname\fP [\fIper\-target\-options\fP]
3a00e5
 .SH DESCRIPTION
3a00e5
+These tools are
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. They are maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details. There is also
3a00e5
+.BR iptables\-translate (8)/ ip6tables\-translate (8)
3a00e5
+to help with the migration.
3a00e5
+.PP
3a00e5
 \fBIptables\fP and \fBip6tables\fP are used to set up, maintain, and inspect the
3a00e5
 tables of IPv4 and IPv6 packet
3a00e5
 filter rules in the Linux kernel.  Several different tables
3a00e5
@@ -447,6 +461,9 @@ There are several other changes in iptables.
3a00e5
 \fBiptables\-save\fP(8),
3a00e5
 \fBiptables\-restore\fP(8),
3a00e5
 \fBiptables\-extensions\fP(8),
3a00e5
+\fBnft\fP(8),
3a00e5
+\fBiptables\-translate\fP(8),
3a00e5
+\fBip6tables\-translate\fP(8)
3a00e5
 .PP
3a00e5
 The packet-filtering-HOWTO details iptables usage for
3a00e5
 packet filtering, the NAT-HOWTO details NAT,
3a00e5
diff --git a/iptables/xtables-monitor.8.in b/iptables/xtables-monitor.8.in
3a00e5
index b647a79eb64ed..bbccf009e8269 100644
3a00e5
--- a/iptables/xtables-monitor.8.in
3a00e5
+++ b/iptables/xtables-monitor.8.in
3a00e5
@@ -6,6 +6,17 @@ xtables-monitor \(em show changes to rule set and trace-events
3a00e5
 .PP
3a00e5
 \
3a00e5
 .SH DESCRIPTION
3a00e5
+This tool is
3a00e5
+.B deprecated
3a00e5
+in Red Hat Enterprise Linux. It is maintenance only and will not receive new
3a00e5
+features. New setups should use
3a00e5
+.BR nft (8).
3a00e5
+Existing setups should migrate to
3a00e5
+.BR nft (8)
3a00e5
+when possible. See
3a00e5
+.UR https://red.ht/nft_your_tables
3a00e5
+.UE
3a00e5
+for details.
3a00e5
 .PP
3a00e5
 .B xtables-monitor
3a00e5
 is used to monitor changes to the ruleset or to show rule evaluation events
3a00e5
-- 
3a00e5
2.32.0
3a00e5