Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemm.ee
nix·Nix / NixOSbyflashgnash

Are there alternatives for the NixOS firewall?

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?

View original on lemm.ee
11

6 replies

You can disable the NixOS firewall, install firewalld (or any other firewall solution) and use that if you want.

11

Well if that link doesn’t work, networking.firewall.interfaces..allowedTCPPorts

1
flashgnashreply
lemm.ee

It can be configured per interface, but not per access point

This does actually help as I can just open ports over tailscale and exclusively use that for connections though the ideal is to be able to open ports only when connected to home WiFi

0

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.

1

opnsense and pfsense, though they run on freeBSD

Also OpenWRT if you want to stay on Linux, but OpenWRT is a nightmare for updating

-7

You reached the end

Are there alternatives for the NixOS firewall? | Spyke