make sure web ports are allowed
This commit is contained in:
committed by
Joakim Repomaa
parent
e2f8d1eeff
commit
5c456d4a50
@@ -121,11 +121,10 @@
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
modules.firewall = {
|
||||
enable = true;
|
||||
allInterfaces = [ "ssh" ];
|
||||
};
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
|
||||
networking.firewall = {
|
||||
trustedInterfaces = [ "podman1" ];
|
||||
interfaces.podman1.allowedUDPPorts = [ 53 ];
|
||||
};
|
||||
networking.firewall.trustedInterfaces = [ "podman1" ];
|
||||
modules.firewall.interfaces.podman1 = [ "dns" ];
|
||||
|
||||
modules.webserver.enable = true;
|
||||
|
||||
|
||||
@@ -94,6 +94,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
modules.firewall.allInterfaces = lib.mkDefault [ "web" ];
|
||||
modules.firewall.allInterfaces = [ "web" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user