Score:0

Do firewalld rich-rules apply irrespective of the allowed services in a zone?

za flag

Context: I have firewalld running on an AWS EC2.

Goal: I want to add a rich rule to the default zone (public) that allows traffic from a certain CIDR range/IP address range/subnet over port 443 (HTTPS) via the TCP protocol. I'm adding this rule to the public zone via firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="[CENSORED]" port port=443 protocol=tcp accept'

Question: Once I add this rich rule will it still apply (allow traffic through) even if the services listed when I run firewall-cmd --zone=public --list-all only include ssh dhcpv6-client?

Score:0
za flag

After testing on the target servers, yes, firewalld rich-rules apply irrespective of zone level service (and other configs for that matter).

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.