host/server/default | remove unneeded code
This commit is contained in:
parent
f00487236c
commit
c54b9130c3
1 changed files with 0 additions and 18 deletions
|
|
@ -198,11 +198,8 @@ in {
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# always allow traffic from your Tailscale network
|
|
||||||
trustedInterfaces = [ "tailscale0" ];
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
|
|
||||||
# allow the Tailscale UDP port through the firewall
|
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||||
allowedTCPPortRanges = [{
|
allowedTCPPortRanges = [{
|
||||||
from = 1714;
|
from = 1714;
|
||||||
|
|
@ -212,22 +209,7 @@ in {
|
||||||
from = 1714;
|
from = 1714;
|
||||||
to = 1764;
|
to = 1764;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
# allow you to SSH in over the public internet
|
|
||||||
allowedTCPPorts = [ 22 ];
|
allowedTCPPorts = [ 22 ];
|
||||||
interfaces = {
|
|
||||||
"tailscale0" = {
|
|
||||||
allowedTCPPorts = [ 22 8080 8443 ];
|
|
||||||
allowedTCPPortRanges = [{
|
|
||||||
from = 1714;
|
|
||||||
to = 1764;
|
|
||||||
}];
|
|
||||||
allowedUDPPortRanges = [{
|
|
||||||
from = 1714;
|
|
||||||
to = 1764;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue