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

Selfhosted

61003 readers
480 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years 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 2 years 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 2 years 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.