Disabling the firewalld Service
In Oracle Linux
10,
nftables
isn't enabled by default because the firewalld
service uses it as its backend. Disable firewalld
before beginning to work
with nftables
.
Do the following:
-
Disable the
firewalld
service if it isn't already disabled:sudo systemctl disable --now firewalld
- Clear any preexisting rulesets in
nftables
created byfirewalld
:sudo nft flush ruleset
- Display the current status of the
firewalld
service and ensure that the service is listed asinactive (dead)
:systemctl status firewalld
firewalld.service Loaded: masked (Reason: Unit firewalld.service is masked.) Active: inactive (dead) Jan 20 16:05:39 localhost.localdomain systemd[1]: Starting firewalld.service - firewalld - dynamic firewall daemon... Jan 20 16:05:40 localhost.localdomain systemd[1]: Started firewalld.service - firewalld - dynamic firewall daemon. Jan 20 16:08:33 localhost.localdomain systemd[1]: Stopping firewalld.service - firewalld - dynamic firewall daemon... Jan 20 16:08:33 localhost.localdomain systemd[1]: firewalld.service: Deactivated successfully. Jan 20 16:08:33 localhost.localdomain systemd[1]: Stopped firewalld.service - firewalld - dynamic firewall daemon.