udp dport 60000-61000 counter accept comment "Mosh"
tcp dport { http, https } counter accept comment "HTTP"
udp dport ntp skuid ${users.systemd-timesync.name} counter accept comment "NTP"
- meta l4proto { udp, tcp } skuid dnscrypt-proxy2 counter accept comment "dnscrypt-proxy2"
tcp dport git counter accept comment "Git"
tcp dport 5201 counter accept comment "iperf"
}
tcp dport { ssh, 2222, 20022 } counter accept comment "SSH"
udp dport 60001-60100 counter accept comment "Mosh"
udp dport ntp skuid ${users.systemd-timesync.name} counter accept comment "NTP"
- meta l4proto { udp, tcp } skuid dnscrypt-proxy2 counter accept comment "dnscrypt-proxy2"
tcp dport { http, https } counter accept comment "HTTP"
tcp dport git counter accept comment "Git"
tcp dport imaps counter accept comment "IMAPS"
tcp dport { ssh, 2222, 20022 } counter accept comment "SSH"
udp dport 60001-60100 counter accept comment "Mosh"
udp dport ntp skuid ${users.systemd-timesync.name} counter accept comment "NTP"
- meta l4proto { udp, tcp } skuid dnscrypt-proxy2 counter accept comment "dnscrypt-proxy2"
tcp dport { http, https } counter accept comment "HTTP"
tcp dport git counter accept comment "Git"
tcp dport imaps counter accept comment "IMAPS"
tcp dport { ssh, 2222, 20022 } counter accept comment "SSH"
udp dport 60001-60100 counter accept comment "Mosh"
udp dport ntp skuid ${users.systemd-timesync.name} counter accept comment "NTP"
- meta l4proto { udp, tcp } skuid dnscrypt-proxy2 counter accept comment "dnscrypt-proxy2"
tcp dport { http, https } counter accept comment "HTTP"
tcp dport git counter accept comment "Git"
tcp dport imaps counter accept comment "IMAPS"
-{ lib, ... }:
+{ lib, config, ... }:
+let inherit (config) users; in
with lib;
{
networking = {
use_syslog = true;
};
};
+ networking.nftables.ruleset = ''
+ table inet filter {
+ chain output-net {
+ meta l4proto { udp, tcp } th dport domain skuid ${users.users.dnscrypt-proxy2.name} counter accept comment "DHCP"
+ }
+ }
+ '';
}
url = "https://github.com/NixOS/nixpkgs/pull/276014.diff";
sha256 = "sha256-SUftUE++06TqRmK88VxQKiI9NaJs7XtC8I97ScQHF/Y=";
}
+ {
+ meta.description = "dnscrypt-proxy2";
+ url = "https://github.com/NixOS/nixpkgs/pull/304810.diff";
+ sha256 = "sha256-YGQZibCIKz7YYS1bw2QNtHbJPWWV6nZqWwddWsAFK5Q=";
+ }
/*
{
meta.description = "nixos/syncoid: enable N:N dataset mappings";