mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-20 09:04:42 +04:00
feat: move to own dns
This commit is contained in:
parent
96e942d8ac
commit
eaccf45596
15 changed files with 138 additions and 202 deletions
12
nix/server/firewall.nix
Normal file
12
nix/server/firewall.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
let
|
||||
dnsPort = 53;
|
||||
httpPort = 80;
|
||||
httpsPort = 443;
|
||||
dnsOverTlsPort = 853;
|
||||
in {
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ dnsPort httpPort httpsPort dnsOverTlsPort ];
|
||||
allowedUDPPorts = [ dnsPort ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue