Firewall: Difference between revisions

Kacper (talk | contribs)
Add a section on how to configure the nftables firewall with more fine-grained rules than just 'allowed ports'.
Kacper (talk | contribs)
m Fix a typo that I missed on the preview.
 
Line 58: Line 58:
</nowiki>}}
</nowiki>}}


This will add the two specified rules to the <code>input-allow</code> chain in the <code>nixos-fw</code> table. You should of, course replace, the port and subnets with your own.
This will add the two specified rules to the <code>input-allow</code> chain in the <code>nixos-fw</code> table. You should, of course, replace the port and subnets with your own.


== Tips and tricks ==
== Tips and tricks ==