Compare commits

..

No commits in common. "fd480b029de3919f62e5c5ac2ef701a39d3f6b79" and "9de22c147658971e05d3553006a791f5538364c9" have entirely different histories.

2 changed files with 5 additions and 17 deletions

View File

@ -91,19 +91,9 @@ with lib;
# inherit networking; # inherit networking;
networking = networking // { networking = networking // {
firewall = { firewall = {
trustedInterfaces = networking.firewall.trustedInterfaces or [ ] ++ [ trustedInterfaces = networking.firewall.trustedInterfaces or [] ++ [ "tailscale0" ];
"tailscale0" allowedUDPPorts = networking.firewall.allowedUDPPorts or [] ++ [ config.services.tailscale.port ];
]; allowedTCPPorts = networking.firewall.allowedTCPPorts or [] ++ [ 22 ];
allowedUDPPorts = networking.firewall.allowedUDPPorts or [ ] ++ [
config.services.tailscale.port
];
allowedTCPPorts = networking.firewall.allowedTCPPorts or [ ] ++ [
22
];
allowedUDPPortRanges = networking.firewall.allowedUDPPortRanges or [ ] ++ [
{ from = 60000; to = 61000; } # mosh
];
}; };
}; };

View File

@ -17,10 +17,6 @@
specialArgs = { specialArgs = {
# includeHardware = false; # includeHardware = false;
hostname = "Felia"; hostname = "Felia";
services.openssh = {
permitRootLogin = "no";
enable = true;
};
}; };
}; };
# Generic machine # Generic machine
@ -87,6 +83,8 @@
prefixLength = 24; prefixLength = 24;
}]; }];
firewall.enable = true; firewall.enable = true;
firewall.allowedTCPPorts = [ 22 ];
firewall.allowedUDPPorts = lib.range 60000 61000; # mosh
useDHCP = false; useDHCP = false;
interfaces.eth0.useDHCP = true; interfaces.eth0.useDHCP = true;
}; };