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 nftables rules in RHEL/CentOS 8 firewalld

RHEL 8 and its offspring use nftables as the default firewalld backend. Every time you create a rule with a firewall-cmd command, the appropriate nftables rule is created and inserted into its proper place. To look at the ruleset that's currently in effect, we'll use the same nft command that we used with nftables on Ubuntu:

[donnie@localhost ~]$ sudo nft list ruleset. . .. . .table ip firewalld {    chain nat_PREROUTING {        type nat hook prerouting priority -90; policy accept;        jump nat_PREROUTING_ZONES_SOURCE        jump nat_PREROUTING_ZONES    }    chain nat_PREROUTING_ZONES_SOURCE {    }. . .. . .[donnie@localhost ~]$

Again, we can see a very lengthy list of default, pre-configured firewall rules. (To see ...

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