all 16 comments

sorted by: hot top controversial new old
[–] 12 points 4 months ago

iptables and nftables are just different frontends to the netfilter kernel module.

  • source
  • [–] 17 points 4 months ago* (7 children)

    OpenSnitch is a nice for the desktop environment, deny by default and prompts the user when an application requests a open port, at first the prompts can get a little overwhelming given how many things want to connect to xyz server but eventually lightens up.

  • source
  • hideshow 7 child comments
  • [–] 0 points 4 months ago (6 children)

    Its a little annoying on Linux but I wonder what it would be like on Windows.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 4 months ago (2 children)

    Glasswire and Tinywall(?) are like this.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 4 months ago (1 child)

    Simplewall works great, it's open source. And yes, there are a couple of million requests made by windows apps alone, which are completely fine to block. Simplewall also blocks windows telemetry. I have to use win11 at work and it's an absolute ahitstorm of network requests that you don't get to see when using windows firewall.

    Glaswire looks beautiful and functions well, but you will hit the paywall after a couple of weeks (I used this on the around 2010 I think)

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 months ago*

    The firewall is annoying? I would argue and say the firewall is protecting your computer from connecting to a rouge server, annoying or not it’s better than some douche abusing an exploit in your system.

  • source
  • parent
  • [+] -8 points 4 months ago (6 children)

    These firewall tools are interesting, but I honestly haven't needed them in years. The premise is a little out of date. Who puts cloud servers on the open internet these days? Everything I see uses a public load balancer and a WAF service.

  • source
  • hideshow 6 child comments
  • [–] 21 points 4 months ago (1 child)

    Sure, but what if youve configured your waf or w/e incorrectly, what if someone gains access to another part of your network? Having sane firewall settings is always better than none at all.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 4 months ago

    All the cloud services I've used had virtual network firewalls for internal traffic. Security Groups for AWS, Cloud Firewall for GCP, etc. That's typically how lateral traffic gets managed. Defense in depth is good, but as I said I haven't used host firewalls in forever, and we get audited for security certificates every year, and no auditor has asked about them that I recall.

  • source
  • parent
  • [–] 9 points 4 months ago* (1 child)

    A lot of people host websites created with a static site generator just fine without that extra layer. Unless your site has expensive to generate dynamic pages, lots of video content, or deep changelog pages (wiki history or forge commit diff's publicly available), it makes a lot of sense to keep it simple.

    Putting everything behind Cloudflare is just cargo cult behaviour and learning all the ins and outs of it isnt any harder than learning a firewall (which is transferrable knowledge that can also protect your machines from each other).

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 4 months ago (1 child)

    If you're trying to be cost-effective, renting a VPS for a fixed term instead of using a IaaS platform that provides all these things just by clicking a checkbox, then caring about your firewall is a necessary part of building the system image that you deploy. You can of course set up your own private networking between systems and build the same type of architecture that a IaaS would provide, but to do that you're going to need to understand everything about linux networking and netfilter already.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 0 points 4 months ago

    Maybe that's the context. All of my cloud hosting work is very large corporate systems in the big three clouds. You're talking about Hostinger or Scalahosting type services, yes?

  • source
  • parent
  • 9 comments in c/linux@lemmy.world view that post
    [–] 12 points 4 months ago (1 child)

    I didn't realise I wanted to read up about Linux firewalls, but apparently I did. Thanks

  • source
  • hideshow 1 child comment
  • [–] 3 points 3 months ago

    I've wanted to for years. I've tried to multiple times. Like I love computers and programming I can get absolutely lost in code for hours. For whatever reason when I start to look at networking my brain switches off and says nope. I can clean enough to hack what I need for the most part, but of I strive for any depth of knowledge on the subject my brain shuts down.

    Hoping this article is the ticket.

  • source
  • parent
  • [–] 8 points 4 months ago* (5 children)

    networking.firewall.enable = true;

    Tap for spoilerYeah I'm familiar with all the tools but - omg - have NixOS modules ever changed my life

  • source
  • hideshow 5 child comments
  • [–] 3 points 4 months ago (4 children)
  • [–] 8 points 4 months ago (3 children)
  • [–] 3 points 4 months ago (2 children)

    For me it's clearly not obvious what exactly 'enabling firewall' entails, what policy is applied, what rules, etc., etc.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 4 months ago* (1 child)

    There are sensible defaults but it ultimately depends on what the module is doing and how you configure it.

    https://github.com/NixOS/nixpkgs/blob/8c91a71d13451abc40eb9dae8910f972f979852f/nixos/modules/services/networking/firewall.nix

    The beauty is that this, or your own custom modules, become a declarative and reproducible abstraction layer which (if properly written) lets you focus on the what rather than the how.

    ... You could also write a bunch of scripts, which is what I used to do before I joined the cult.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 months ago

    Nftables rulesets are reproducible and let you focus on what rather than how. I've tried nix some time ago, conceptually cool distro, but it requires a lot of time, time that can be used configuring emacs 😝.

  • source
  • parent
  • [–] 6 points 4 months ago*

    On all modern linux's, the iptables command is actually a compatibility layer controlling nftables.

    I prefer it over the nft command because it's much easier to read and use. I only use the nft command when checking for the occasional chain/table that iptables didn't show me.

  • source