Compare commits
3 Commits
9de22c1476
...
fd480b029d
Author | SHA1 | Date |
---|---|---|
pegasust | fd480b029d | |
pegasust | 897660109d | |
pegasust | ee33a23a1b |
|
@ -91,9 +91,19 @@ with lib;
|
||||||
# inherit networking;
|
# inherit networking;
|
||||||
networking = networking // {
|
networking = networking // {
|
||||||
firewall = {
|
firewall = {
|
||||||
trustedInterfaces = networking.firewall.trustedInterfaces or [] ++ [ "tailscale0" ];
|
trustedInterfaces = networking.firewall.trustedInterfaces or [ ] ++ [
|
||||||
allowedUDPPorts = networking.firewall.allowedUDPPorts or [] ++ [ config.services.tailscale.port ];
|
"tailscale0"
|
||||||
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
|
||||||
|
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
# includeHardware = false;
|
# includeHardware = false;
|
||||||
hostname = "Felia";
|
hostname = "Felia";
|
||||||
|
services.openssh = {
|
||||||
|
permitRootLogin = "no";
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Generic machine
|
# Generic machine
|
||||||
|
@ -83,8 +87,6 @@
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue