Score:0

Firewalld Allow 1 ip address from a subnet and drop the rest

US flag

I am using firewalld to control access to my AlmaLinux 8 server. I have several subnets defined as sources in the DROP zone and it seems to work well.

I am wondering if is easily possible to allow access to a specific address within one of these subnets.

Restrictions to all other subnets is done in the system default interface zone.

Or am I completely on the wrong track.

Thanks

Score:0
US flag

The answer seems to be in here:

https://agix.com.au/firewalld-zone-order-priority-and-how-to-restrict-all-but-one-address/

Basically it says that source zones are processed in alphabetical order. So create a zone e.g. 00-Allow and add your single IP address to it

Use the DROP or Block zone to ban the whole subnet.

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.