RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1945151 - iptables: userspace: add deprecation notice to man pages
Summary: iptables: userspace: add deprecation notice to man pages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: iptables
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta
: 9.0 Beta
Assignee: Phil Sutter
QA Contact: Štěpán Němec
Sagar Dubewar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-31 12:39 UTC by Eric Garver
Modified: 2022-05-27 12:24 UTC (History)
6 users (show)

Fixed In Version: iptables-1.8.7-15.el9
Doc Type: Deprecated Functionality
Doc Text:
.`ipset` and `iptables-nft` have been deprecated The `ipset` and `iptables-nft` packages have been deprecated in RHEL. The `iptables-nft` package contains different tools such as `iptables`, `ip6tables`, `ebtables` and `arptables`. These tools will no longer receive new features and using them for new deployments is not recommended. As a replacement, prefer using the `nft` command-line tool provided by the `nftables` package. Existing setups should migrate to `nft` if possible. When you load the `iptables`, `ip6tables`, `ebtables`, `arptables`, `nft_compat`, or `ipset` module, the module logs the following warning to the `/var/log/messages` file: ---- Warning: <module_name> - this driver is not recommended for new deployments. It continues to be supported in this RHEL release, but it is likely to be removed in the next major release. Driver updates and fixes will be limited to critical issues. Please contact Red Hat Support for additional information. ---- For more information on migrating to nftables, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_firewalls_and_packet_filters/getting-started-with-nftables_firewall-packet-filters#assembly_migrating-from-iptables-to-nftables_getting-started-with-nftables[Migrating from iptables to nftables], as well as the `iptables-translate(8)` and `ip6tables-translate(8)` man pages.
Clone Of:
Environment:
Last Closed: 2021-12-02 20:21:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Garver 2021-03-31 12:39:57 UTC
This includes everything provided by iptables-nft: iptables, ip6tables, ebtables, arptables.

We chose to _not_ add a print on invocation of CLI. Others claim this would affect scripts, pipes, etc. A print to stderr was also discouraged.

Comment 1 Phil Sutter 2021-06-17 16:43:46 UTC
I'm planning to go with a short NOTES entry in man pages like so:

diff --git a/iptables/arptables-nft-restore.8 b/iptables/arptables-nft-restore.8
index 09d9082cf9fd3..1bc5572754f66 100644
--- a/iptables/arptables-nft-restore.8
+++ b/iptables/arptables-nft-restore.8
@@ -32,6 +32,8 @@ Use I/O redirection provided by your shell to read from a file
 .TP
 .B arptables-restore
 flushes (deletes) all previous contents of the respective ARP Table.
+.SH NOTES
+This tool is deprecated, new setups should use nftables instead.
 .SH AUTHOR
 Jesper Dangaard Brouer <brouer>
 .SH SEE ALSO

I'll do this for the following man pages:

iptables/arptables-nft-restore.8
iptables/arptables-nft-save.8
iptables/arptables-nft.8
iptables/ebtables-nft.8
iptables/iptables-apply.8.in
iptables/iptables-restore.8.in
iptables/iptables-save.8.in
iptables/iptables.8.in
iptables/xtables-legacy.8
iptables/xtables-monitor.8.in
iptables/xtables-nft.8

What do you say, is this sufficient? I thought about linking to a migration howto, but am hesitant to put long URLs into man pages. Here are some examples:

- https://wiki.nftables.org/wiki-nftables/index.php/Main_Page#Upgrading_from_xtables_to_nftables
- https://developers.redhat.com/blog/2017/01/10/migrating-my-iptables-setup-to-nftables
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-nftables_configuring-and-managing-networking#assembly_migrating-from-iptables-to-nftables_getting-started-with-nftables

Comment 2 Eric Garver 2021-06-17 18:52:52 UTC
(In reply to Phil Sutter from comment #1)
> I'm planning to go with a short NOTES entry in man pages like so:
> 
> diff --git a/iptables/arptables-nft-restore.8
> b/iptables/arptables-nft-restore.8
> index 09d9082cf9fd3..1bc5572754f66 100644
> --- a/iptables/arptables-nft-restore.8
> +++ b/iptables/arptables-nft-restore.8
> @@ -32,6 +32,8 @@ Use I/O redirection provided by your shell to read from a
> file
>  .TP
>  .B arptables-restore
>  flushes (deletes) all previous contents of the respective ARP Table.
> +.SH NOTES
> +This tool is deprecated, new setups should use nftables instead.

I would like it to be a little for assertive.

"This tool is deprecated. It is maintenance only and will not receive new features. New setups should use nftables. Existing setups should migrate to nftables when possible."

>  .SH AUTHOR
>  Jesper Dangaard Brouer <brouer>
>  .SH SEE ALSO
> 
> I'll do this for the following man pages:
> 
> iptables/arptables-nft-restore.8
> iptables/arptables-nft-save.8
> iptables/arptables-nft.8
> iptables/ebtables-nft.8
> iptables/iptables-apply.8.in
> iptables/iptables-restore.8.in
> iptables/iptables-save.8.in
> iptables/iptables.8.in
> iptables/xtables-legacy.8
> iptables/xtables-monitor.8.in
> iptables/xtables-nft.8
> 
> What do you say, is this sufficient? I thought about linking to a migration
> howto, but am hesitant to put long URLs into man pages. Here are some
> examples:

Agreed. Lets avoid the URLs. We'll need an access article about the deprecation. That's a good place to point to migration tutorials/howtos.

For iptables you can suggest iptables-translate.

Comment 3 Štěpán Němec 2021-06-18 14:47:56 UTC
(In reply to Phil Sutter from comment #1)
> I'm planning to go with a short NOTES entry in man pages like so:

> @@ -32,6 +32,8 @@ Use I/O redirection provided by your shell to read from a
> file
>  .TP
>  .B arptables-restore
>  flushes (deletes) all previous contents of the respective ARP Table.
> +.SH NOTES
> +This tool is deprecated, new setups should use nftables instead.
>  .SH AUTHOR
>  Jesper Dangaard Brouer <brouer>
>  .SH SEE ALSO

> What do you say, is this sufficient?

I think so, plus a nft(8) reference.

I'm leaning towards the shorter note, as we will need to reach out to
the users/customers through other channels (and in more detail) as well,
anyway, but I'll defer to your and Eric's judgement.

Is this intended as a downstream change? Wouldn't it make more sense
upstream first/as well, given that the position there is the same?

Comment 4 Phil Sutter 2021-06-18 15:48:09 UTC
(In reply to Štěpán Němec from comment #3)
> (In reply to Phil Sutter from comment #1)
> > I'm planning to go with a short NOTES entry in man pages like so:
> 
> > @@ -32,6 +32,8 @@ Use I/O redirection provided by your shell to read from a
> > file
> >  .TP
> >  .B arptables-restore
> >  flushes (deletes) all previous contents of the respective ARP Table.
> > +.SH NOTES
> > +This tool is deprecated, new setups should use nftables instead.
> >  .SH AUTHOR
> >  Jesper Dangaard Brouer <brouer>
> >  .SH SEE ALSO
> 
> > What do you say, is this sufficient?
> 
> I think so, plus a nft(8) reference.
> 
> I'm leaning towards the shorter note, as we will need to reach out to
> the users/customers through other channels (and in more detail) as well,
> anyway, but I'll defer to your and Eric's judgement.

I like Eric's version. I added references to *-translate tools where sensible,
let's see if I can integrate that nft(8) reference as well without blowing
things up too much.

And I agree with the assessment of this being not sufficient on it's own no
matter how elaborate we make it.

> Is this intended as a downstream change? Wouldn't it make more sense
> upstream first/as well, given that the position there is the same?

Downstream only, upstream doesn't like calling iptables "deprecated", at least
not yet.

Comment 10 Phil Sutter 2021-07-02 16:06:04 UTC
Taking a step back here:

- Deprecation notice should go first in DESCRIPTION, not hidden in a NOTES section
- Add a shortened URL for further reading
- Refer to nft(8) (and where sensible, iptables-translate) in SEE ALSO section
- Drop deprecation notices from xtables-nft/xtables-legacy man pages, they describe the concepts not commands


Note You need to log in before you can comment on or make changes to this bug.