this post was submitted on 20 Dec 2024
11 points (100.0% liked)

homelab

6773 readers
44 users here now

founded 4 years ago
MODERATORS
 

I have a couple rules in place to allow traffic in from specific IPs. Right after these rules I have rules to block everything else, as this firewall is an "allow by default" type.

The problem I'm facing is that when I replace these two ports to match "Any" instead, those machines (matrix server and game server) are unable to perform apt-gets.

I had thought that this should still be allowed, because the egress rules for those two permit outbound traffic to http/s and once that's established it's a "stateful" connection which should allow the traffic to flow back the other way.

What am I doing wrong here, and what is the best way to ensure that traffic only hits these servers from the minimal number of ports.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 4 weeks ago

Are you able to, say, wget 1.1.1.1?

Maybe it's just DNS, since it's UDP based there is no state, although some firewalls do detect requests and treat it as pseudo-stateful.