From c4a33c55aa01969c76ef75ff62af06e73507c9a0 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 4 Jul 2025 17:09:48 +0800 Subject: [PATCH] feat: open ports for testing --- modules/nixos/base/networking.nix | 18 ++++++++++++++++++ modules/nixos/base/ssh.nix | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/modules/nixos/base/networking.nix b/modules/nixos/base/networking.nix index 33830355..bdc4ce49 100644 --- a/modules/nixos/base/networking.nix +++ b/modules/nixos/base/networking.nix @@ -1,4 +1,22 @@ { + networking.firewall.allowedTCPPorts = [ + # localsend + 53317 + + # tcp ports for testing & sharing + 63080 + 63081 + 63082 + 63083 + 63084 + 63085 + 63086 + 63087 + 63088 + 63089 + ]; + # networking.firewall.allowedUDPPorts = [ ... ]; + # Network discovery, mDNS # With this enabled, you can access your machine at .local # it's more convenient than using the IP address. diff --git a/modules/nixos/base/ssh.nix b/modules/nixos/base/ssh.nix index 0c2ccb9c..5582fa5d 100644 --- a/modules/nixos/base/ssh.nix +++ b/modules/nixos/base/ssh.nix @@ -1,6 +1,4 @@ {lib, ...}: { - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. networking.firewall.enable = lib.mkDefault false; # Enable the OpenSSH daemon.