11
submitted 11 months ago* (last edited 11 months ago) by flashgnash@lemm.ee to c/nix@programming.dev

I've found the built in nix firewall to be somewhat lacking (can't have different ports open on different networks for instance, I would rather reduce my attack surface while out on other people's/public WiFi)

Is it possible to use other firewall software on NixOS declaratively?

you are viewing a single comment's thread
view the rest of the comments
[-] moonpiedumplings@programming.dev 1 points 11 months ago* (last edited 11 months ago)

You want firewalld. Not declarative (probably?), but the only option that can dynamically change firewall rules based on the network you are connected to.

Look into firewalld zones.

this post was submitted on 01 Nov 2023
11 points (86.7% liked)

Nix / NixOS

1707 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS