Skip to Content
Mastering Linux Security and Hardening - Second Edition
book

Mastering Linux Security and Hardening - Second Edition

by Donald A. Tevault
February 2020
Intermediate to advanced
666 pages
15h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening - Second Edition

Looking at iptables rules in RHEL/CentOS 7 firewalld

RHEL 7 and its offspring use the iptables engine as the firewalld backend. You can't create rules with the normal iptables commands. However, every time you create a rule with a firewall-cmd command, the iptables backend creates the appropriate iptables rule and inserts it into its proper place. You can view the active rules with iptables -L. Here's the first part of a very long output:

[donnie@localhost ~]$ sudo iptables -LChain INPUT (policy ACCEPT)target     prot opt source               destination         ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHEDACCEPT     all  --  anywhere             anywhere            INPUT_direct  all  --  anywhere             anywhere            INPUT_ZONES_SOURCE  all  --  anywhere             anywhere            INPUT_ZONES all -- anywhere anywhere ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Security and Hardening - Third Edition

Mastering Linux Security and Hardening - Third Edition

Donald A. Tevault
UNIX and Linux System Administration Handbook, 5th Edition

UNIX and Linux System Administration Handbook, 5th Edition

Trent R. Hein, Evi Nemeth, Garth Snyder, Ben Whaley, Dan Mackin

Publisher Resources

ISBN: 9781838981778Supplemental Content