Compare commits
No commits in common. "fd480b029de3919f62e5c5ac2ef701a39d3f6b79" and "9de22c147658971e05d3553006a791f5538364c9" have entirely different histories.
fd480b029d
...
9de22c1476
|
@ -91,19 +91,9 @@ with lib;
|
|||
# inherit networking;
|
||||
networking = networking // {
|
||||
firewall = {
|
||||
trustedInterfaces = networking.firewall.trustedInterfaces or [ ] ++ [
|
||||
"tailscale0"
|
||||
];
|
||||
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
|
||||
|
||||
];
|
||||
trustedInterfaces = networking.firewall.trustedInterfaces or [] ++ [ "tailscale0" ];
|
||||
allowedUDPPorts = networking.firewall.allowedUDPPorts or [] ++ [ config.services.tailscale.port ];
|
||||
allowedTCPPorts = networking.firewall.allowedTCPPorts or [] ++ [ 22 ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
specialArgs = {
|
||||
# includeHardware = false;
|
||||
hostname = "Felia";
|
||||
services.openssh = {
|
||||
permitRootLogin = "no";
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
# Generic machine
|
||||
|
@ -87,6 +83,8 @@
|
|||
prefixLength = 24;
|
||||
}];
|
||||
firewall.enable = true;
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
firewall.allowedUDPPorts = lib.range 60000 61000; # mosh
|
||||
useDHCP = false;
|
||||
interfaces.eth0.useDHCP = true;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue