system/security: allow more firewall port ranges

This commit is contained in:
LavaDesu 2022-01-11 11:39:56 +07:00
parent 87bac04297
commit d8903b5bd7
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,7 +1,8 @@
{ config, pkgs, ... }: {
networking.firewall = {
enable = true;
allowedUDPPorts = [ 20100 ];
allowedUDPPortRanges = [ { from = 20000; to = 20100; } ];
allowedTCPPortRanges = [ { from = 20000; to = 20100; } ];
trustedInterfaces = [ "wg0" ];
};