3
0
Fork 0
forked from mirrors/nixpkgs

added sshd GatwayPorts option

svn path=/nixos/trunk/; revision=13363
This commit is contained in:
Marc Weber 2008-11-20 23:47:05 +00:00
parent d7c321c64a
commit 80377e512e
3 changed files with 10 additions and 4 deletions

View file

@ -842,6 +842,13 @@ in
<command>no</command>
";
};
gatewayPorts = mkOption {
default = "no";
description = "
Specifies whether remote hosts are allowed to connect to ports forwarded for the client. See man sshd_conf.
";
};
};
lshd = {

View file

@ -191,9 +191,7 @@ let
inherit (pkgs) writeText openssh glibc;
inherit (pkgs.xorg) xauth;
inherit nssModulesPath;
forwardX11 = config.services.sshd.forwardX11;
allowSFTP = config.services.sshd.allowSFTP;
permitRootLogin = config.services.sshd.permitRootLogin;
inherit (config.services.sshd) forwardX11 allowSFTP permitRootLogin gatewayPorts;
})
# GNU lshd SSH2 deamon.

View file

@ -1,6 +1,6 @@
{ writeText, openssh, glibc, xauth
, nssModulesPath
, forwardX11, allowSFTP, permitRootLogin
, forwardX11, allowSFTP, permitRootLogin, gatewayPorts
}:
assert permitRootLogin == "yes" ||
@ -29,6 +29,7 @@ let
"}
PermitRootLogin ${permitRootLogin}
GatewayPorts ${gatewayPorts}
'';