this post was submitted on 19 Oct 2024
44 points (89.3% liked)

Selfhosted

40347 readers
340 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Any recommendation for a cheap, small #firewall for my #homelab ? I realized I can’t control easily what goes out of my network only via DNS block lists

Cc @selfhosted@lemmy.world @selfhost@lemmy.ml

you are viewing a single comment's thread
view the rest of the comments
[–] schizo@forum.uncomfortable.business 3 points 1 month ago (1 children)

We probably need more details as to what exactly you're attempting to accomplish and how you're attempting to accomplish it.

The main issue is that each rule you add to a firewall has a performance penalty: each packet is checked against each rule before it's passed.

Ten rules require 10x more cpu than 1 rule, 100 rules need 10x more than 10 rules, and so on.

Depending on how much traffic and how many rules we're talking about and what kind of expectation you have for performance as well as anything else (eg. vpn endpoint), "small and cheap" may not be fast enough, and you might have to lean into higher performance hardware.

[–] Auli@lemmy.ca 1 points 1 month ago (1 children)

They’re not checked against every rule. First pass it stops.

Yeah, maybe could have been clearer.

I was very vividly remembering a VERY SMART client I had a while ago that had like 600 rules blocking all manner of ports and protocols and IPs, and wondering why everything performed like dogshit.

Sure, it'll go until it hits the first match, but if you have enough rules, you're going to be churning through an awful lot of cpu getting everything to the first match.

OP may not have been intending to do something quite that uh, special, but people do funky things.