From defca18c6e641c63c3a9066db7bb06a4351a6184 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 19 Dec 2022 17:38:04 +0100 Subject: [PATCH] Baldur open firewall --- baldur/configuration.nix | 2 +- nixos_modules/bertof_user.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/baldur/configuration.nix b/baldur/configuration.nix index 76166a6..70cf082 100644 --- a/baldur/configuration.nix +++ b/baldur/configuration.nix @@ -78,7 +78,7 @@ with lib; { networking.firewall = { enable = true; allowPing = true; - # allowedTCPPorts = [ ]; + allowedTCPPorts = [ 8000 ]; # allowedUDPPorts = [ ]; extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns''; }; diff --git a/nixos_modules/bertof_user.nix b/nixos_modules/bertof_user.nix index 66243b8..8dc855a 100644 --- a/nixos_modules/bertof_user.nix +++ b/nixos_modules/bertof_user.nix @@ -5,6 +5,7 @@ openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAhxOjo9Ac9hVd3eOR56F6sClUMUh1m7VpcmzA18dslj bertof@odin" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7mcf8fbMo1eXqSJeVFWaweB+JOU+67dFuf8laZKZZG bertof@thor" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbG791lSOl8Rqoy+KkdKiOJnOMRg02+HZ/VrlrWMYAX bertof@baldur" ]; }; }