search for: local_forwards

Displaying 7 results from an estimated 7 matches for "local_forwards".

2004 Aug 05
1
LocalForward and RemoteForward bind patch
...l_forward(Options *options, u_short port, const char *host, - u_short host_port) +add_local_forward(Options *options, const char *listen_host, u_short port, + const char *host, u_short host_port) { Forward *fwd; #ifndef NO_IPPORT_RESERVED_CONCEPT @@ -215,6 +215,7 @@ if (options->num_local_forwards >= SSH_MAX_FORWARDS_PER_DIRECTION) fatal("Too many local forwards (max %d).", SSH_MAX_FORWARDS_PER_DIRECTION); fwd = &options->local_forwards[options->num_local_forwards++]; + fwd->listen_host = listen_host == NULL ? NULL : xstrdup(listen_host); fwd->port = port;...
2002 Jan 05
2
new feature w/ patch
...(options.bind_address == NULL) { + if (options.gateway_ports == 0) { + local_host = "localhost"; + } else { + local_host = "{ANY}"; + } + } else { + local_host = options.bind_address; + } /* Initiate local TCP/IP port forwardings. */ for (i = 0; i < options.num_local_forwards; i++) { - debug("Connections to local port %d forwarded to remote address %.200s:%d", + debug("Connections to local port %.200s:%d forwarded to remote address %.200s:%d", + local_host, options.local_forwards[i].port, options.local_forwards[i].host, op...
2001 Feb 10
3
Protocol 2 remote forwarding patch
..._set(SSH2_MSG_GLOBAL_REQUEST, &channel_server_global_request); } void server_init_dispatch_13() diff -ru openssh.orig/ssh.c openssh/ssh.c --- openssh.orig/ssh.c Tue Dec 5 20:11:58 2000 +++ openssh/ssh.c Fri Feb 9 23:27:08 2001 @@ -851,7 +851,7 @@ channel_request_local_forwarding(options.local_forwards[i].port, options.local_forwards[i].host, options.local_forwards[i].host_port, - options.gateway_ports); + options.gateway_ports, 0); } /* Initiate remote TCP/IP port forwardings. */ @@ -907,7 +907,25 @@ channel_request_local_forwarding(options.local_forwards[i]....
2000 Aug 23
1
Protocol 2 remote forwarding patch
...cified. */ if (buffer_len(&command) == 0) tty_flag = 1; @@ -511,6 +507,29 @@ /* reinit */ log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 0); + /* -N option only makes sense with protocol 2. It doesn't make sense + without port forwarding ?????? + */ + if ( options.num_local_forwards == 0 && options.num_remote_forwards == 0 && + no_shell_flag ) { + fprintf(stderr, "-N makes sense only with port forwardings\n"); + usage(); + /* NOT REACHED */ + } + if ((options.protocol & SSH_PROTO_2) && no_shell_flag && + buffer_len(&co...
2012 May 03
5
[PATCH/RFC 0/6] New mux client request to list open tcp forwardings.
These patches implement a new mux client request to list the currently opened TCP forwardings. It also removes some todos regarding keeping the list of forwardings in the options up-to-date. Bert Wesarg (6): attach the forwarding type to struct Forward merge local and remote forward lists generate unique ids for forwardings to be used for identification remove closed forwardings from
2005 Mar 10
6
[Bug 996] Fatal error in xfree() when scp invokes ssh with a LocalForward config
....org LocalForward 12345 localhost:54321 This seems to happen with ssh when scp invokes it to connect to the remote host, for example: % scp mindrot.org:.cshrc /dev/null xfree: NULL pointer given as argument gdb shows this happens on this line in readconf.c: xfree(options->local_forwards[i].listen_host); It's possible (perhaps likely) there are other similar problems in this routine. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2010 Jan 14
1
ssh(1) multiplexing rewrite
...(ftype != MUX_FWD_DYNAMIC && fwd.connect_host == NULL) { + logit("%s: missing connect host", __func__); + goto invalid; + } + + /* Skip forwards that have already been requested */ + switch (ftype) { + case MUX_FWD_LOCAL: + case MUX_FWD_DYNAMIC: + for (i = 0; i < options.num_local_forwards; i++) { + if (compare_forward(&fwd, + options.local_forwards + i)) { + exists: + debug2("%s: found existing forwarding", + __func__); + buffer_put_int(r, MUX_S_OK); + goto out; + } } - if (errno == ENOENT) - debug("Control socket \"%.100s\&quo...