global/security: enable ssh GatewayPorts

This commit is contained in:
Infinidoge 2024-04-14 07:27:35 -04:00
parent d9d184041e
commit d55fccdd3a
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -38,10 +38,13 @@ with lib;
services.openssh = {
enable = true;
openFirewall = mkDefault true;
settings.X11Forwarding = mkDefault false;
settings = {
X11Forwarding = mkDefault false;
GatewayPorts = mkDefault "yes";
};
hostKeys = mkDefault [{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}];
};