2019-04-23 15:30:43 +00:00
|
|
|
= How to edit iptables rules
|
|
|
|
|
2021-04-23 22:11:13 +00:00
|
|
|
.Outdated information
|
|
|
|
[CAUTION]
|
|
|
|
====
|
|
|
|
A newer, more flexible access control service, firewalld,
|
|
|
|
is now the default firewall manager for Fedora/CentOS.
|
|
|
|
For most regular users' needs,
|
|
|
|
firewalld has eliminated the need to edit iptables rules directly.
|
2019-04-23 15:30:43 +00:00
|
|
|
|
2021-04-23 22:11:13 +00:00
|
|
|
You may wish to read the <<firewalld.adoc#,Using firewalld>> Quick Doc instead of this document,
|
|
|
|
as the information provided here is no longer current.
|
|
|
|
It is preserved mainly for historical interest.
|
|
|
|
====
|
2019-04-23 15:30:43 +00:00
|
|
|
|
2021-04-23 22:11:13 +00:00
|
|
|
In this how-to, we will illustrate how to edit iptables rules
|
|
|
|
using the `iptables` command and the system configuration file
|
|
|
|
`/etc/sysconfig/iptables`.
|
|
|
|
|
|
|
|
NOTE: This how-to illustrates editing existing iptables rules,
|
|
|
|
not the initial creation of rules chains.
|
2019-04-23 15:30:43 +00:00
|
|
|
|
|
|
|
include::{partialsdir}/iptables-cli.adoc[leveloffset=+1]
|