Firewall: Difference between revisions
imported>CryoMyst No edit summary |
imported>Bowmanjd m So minor, but I was confused if networking.nftables _replaced_ or _supplemented_ networking.firewall, and I noticed example configs online that suggested others may be confused as well. |
||
Line 1: | Line 1: | ||
NixOS provides an interface to configure the firewall through the option <code>networking.firewall</code>. | NixOS provides an interface to configure the firewall through the option <code>networking.firewall</code>. | ||
The default firewall uses [https://www.netfilter.org/ iptables]. To use the newer [https://www.nftables.org/ nftables] instead, set <code>networking.nftables.enable = true;</code> | The default firewall uses [https://www.netfilter.org/ iptables]. To use the newer [https://www.nftables.org/ nftables] instead, additionally set <code>networking.nftables.enable = true;</code> | ||
== Enable == | == Enable == |