add firewall exceptions to their respective files

This commit is contained in:
Kopatz
2023-10-29 11:10:50 +01:00
parent 1896f7866c
commit 91c9c255ac
4 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
{
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
services.adguardhome = {
enable = true;
settings = {

View File

@@ -1,4 +1,6 @@
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;

View File

@@ -1,4 +1,5 @@
{
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;

View File

@@ -4,8 +4,7 @@
useDHCP = false;
firewall = {
enable = true;
allowedTCPPorts = [ 22 53 80 443 ];
allowedUDPPorts = [ 53 5000 ];
allowedUDPPorts = [ 5000 ];
};
nameservers = [
"127.0.0.1"