search for: disable_forward

Displaying 3 results from an estimated 3 matches for "disable_forward".

2000 Aug 23
1
Protocol 2 remote forwarding patch
...1275,6 +1290,122 @@ c->remote_window += adjust; } +/* Jarno Huuskonen: Checks if the server allows port forwarding. + * Logs all failed attempts. + * Return 1 if the forwarding is allowed or 0 for failure. + */ +int allow_remote_forwarding(const char *address_to_listen, int port) +{ +#ifdef DISABLE_FORWARDING + return 0; +#endif /* DISABLE_FORWARDING */ + + /* Only root can forward privileged ports */ + if ( port < IPPORT_RESERVED && !user_authenticated_as_root ) { + debug("Non-root user tries to forward privileged port %d", port); + /* Commercial ssh2 doesn't disconnect so...
2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...n 1.40 diff -u -r1.40 auth-passwd.c --- usr.bin/ssh/auth-passwd.c 2006/08/03 03:34:41 1.40 +++ usr.bin/ssh/auth-passwd.c 2006/09/18 09:35:52 @@ -144,7 +144,7 @@ if (as == NULL) return (0); if (auth_getstate(as) & AUTH_PWEXPIRED) { - auth_close(as); + auth_close_do_env(authctxt, as); disable_forwarding(); authctxt->force_pwchange = 1; return (1); @@ -153,7 +153,7 @@ expire_checked = 1; warn_expiry(authctxt, as); } - return (auth_close(as)); + return (auth_close_do_env(authctxt, as)); } } #else Index: usr.bin/ssh/auth.h =================================================...
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...ring a lookup */ dump_cfg_string(sLogLevel, log_level_name(o->log_level)); diff --git a/serverloop.c b/serverloop.c index b5eb344..f295a3f 100644 --- a/serverloop.c +++ b/serverloop.c @@ -488,7 +488,8 @@ server_request_direct_streamlocal(void) !no_port_forwarding_flag && !options.disable_forwarding && (pw->pw_uid == 0 || use_privsep)) { c = channel_connect_to_path(target, - "direct-streamlocal at openssh.com", "direct-streamlocal"); + "direct-streamlocal at openssh.com", "direct-streamlocal", + &options.fwd_opts...