firewall-cmd says “FirewallD is not running”
firewall-cmd says FirewallD is not running, and ufw rules have no effect. UrbeStack manages the firewall with nftables and provides commands to open ports.
Symptoms
On AlmaLinux, firewall-cmd waits about ten seconds and then fails.
firewall-cmd --add-port=8080/tcpWaiting on dbus connection...
FirewallD is not runningOn Ubuntu, ufw allow 8080/tcp prints Rules updated. The rule has no effect, and ufw status prints Status: inactive.
Cause
UrbeStack writes its firewall rules to a single nftables table, inet urbestack. During installation, UrbeStack disables and masks firewalld and ufw to keep them from running alongside its firewall.
Resolution
Open the port with an UrbeStack command.
urbestack-firewall-rule-add --kind port --value 8080 --note 'what it is for'For
--value, use a port number, a UDP port such as8080/udp, or a range such as30000-31000.To set all extra open ports at once, pass them as one list.
urbestack-firewall-ports-set --ports "8080, 9000/udp, 30000-31000"Check the firewall rules and open ports.
urbestack-firewall-status