add ad guard home to h003
This commit is contained in:
parent
e8679aa177
commit
2894e4050c
5 changed files with 77 additions and 14 deletions
50
hosts/h003/mods/adguardhome.nix
Normal file
50
hosts/h003/mods/adguardhome.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
allowDHCP = true;
|
||||
openFirewall = false;
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.vlan20.allowedTCPPorts = [
|
||||
53 # DNS
|
||||
68 # DHCP
|
||||
5543 # DNSCrypt
|
||||
3000 # Initial installation
|
||||
80 # admin panel
|
||||
443 # admin panel
|
||||
853 # DNS over tls
|
||||
# 6060 # Debugging profile
|
||||
];
|
||||
networking.firewall.interfaces.vlan20.allowedUDPPorts = [
|
||||
53 # DNS
|
||||
# 67 # DHCP
|
||||
# 68 # DHCP
|
||||
443 # Admin panel/https dns over https
|
||||
853 # DNS over quic
|
||||
5443 # DNSCrypt
|
||||
];
|
||||
|
||||
networking.firewall.interfaces.vlan30.allowedTCPPorts = [
|
||||
53 # DNS
|
||||
68 # DHCP
|
||||
5543 # DNSCrypt
|
||||
3000 # Initial installation
|
||||
80 # admin panel
|
||||
443 # admin panel
|
||||
853 # DNS over tls
|
||||
# 6060 # Debugging profile
|
||||
];
|
||||
networking.firewall.interfaces.vlan30.allowedUDPPorts = [
|
||||
53 # DNS
|
||||
# 67 # DHCP
|
||||
# 68 # DHCP
|
||||
443 # Admin panel/https dns over https
|
||||
853 # DNS over quic
|
||||
5443 # DNSCrypt
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue