search for: fwd_port

Displaying 14 results from an estimated 14 matches for "fwd_port".

2004 Aug 05
1
LocalForward and RemoteForward bind patch
...enssh-3.8p1/clientloop.c openssh-3.8p1-localbind/clientloop.c --- openssh-3.8p1/clientloop.c 2004-08-05 08:59:57.478187000 -0700 +++ openssh-3.8p1-localbind/clientloop.c 2004-08-05 09:44:51.134689368 -0700 @@ -549,13 +549,13 @@ goto out; } if (local) { - if (channel_setup_local_fwd_listener(fwd_port, buf, + if (channel_setup_local_fwd_listener(NULL, fwd_port, buf, fwd_host_port, options.gateway_ports) < 0) { logit("Port forwarding failed."); goto out; } } else - channel_request_remote_forwarding(fwd_port, buf, + channel_request_remote_forwarding(NULL, fwd_po...
2004 May 18
0
use of -D at EscapeChar command line
...hn Mishanski -------------- next part -------------- diff -aur openssh-3.8.1p1-orig/clientloop.c openssh-3.8.1p1/clientloop.c --- openssh-3.8.1p1-orig/clientloop.c 2003-12-17 00:33:11.000000000 -0500 +++ openssh-3.8.1p1/clientloop.c 2004-05-18 16:12:57.000000000 -0400 @@ -508,6 +508,7 @@ u_short fwd_port, fwd_host_port; char buf[1024], sfwd_port[6], sfwd_host_port[6]; int local = 0; + int socks = 0; leave_raw_mode(); handler = signal(SIGINT, SIG_IGN); @@ -518,12 +519,18 @@ s++; if (*s == 0) goto out; - if (strlen(s) < 2 || s[0] != '-' || !(s[1] == 'L' || s[1] ==...
2001 Sep 20
1
Patch to allow local port forwarding from an existing connection
...ffer.h" +#include "cli.h" #include "compat.h" #include "channels.h" #include "dispatch.h" @@ -465,6 +466,75 @@ } } +void +process_cmdline(Buffer *bin, Buffer *bout, Buffer *berr) +{ + char string[1024]; + void (*handler)(int); + char *s; + u_short fwd_port, fwd_host_port; + char buf[256]; + int local = 0; + char *msg; + int n; + + leave_raw_mode(); + handler = signal(SIGINT, SIG_IGN); + fprintf(stderr, "\r\n> "); + s = fgets(string, sizeof string, stdin); + if (s == NULL) { + msg = NULL; + goto out; + } + + while (*s && isspace...
2003 Aug 12
1
[PATCH] Minor nit: -D is now "socks" not "socks4"
...on 1.90 diff -u -p -r1.90 readconf.c --- readconf.c 2 Aug 2003 12:24:49 -0000 1.90 +++ readconf.c 12 Aug 2003 07:21:16 -0000 @@ -676,7 +676,7 @@ parse_int: fatal("%.200s line %d: Badly formatted port number.", filename, linenum); if (*activep) - add_local_forward(options, fwd_port, "socks4", 0); + add_local_forward(options, fwd_port, "socks", 0); break; case oClearAllForwardings: Index: ssh.c =================================================================== RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/ssh.c,v retrieving revision 1....
2000 Feb 04
0
Patch that allows equal sign in options
...L, WHITESPACE); + cp = strtok(NULL, WHITESPACE_EQ); if (!cp) fatal("%.200s line %d: Missing argument.", filename, linenum); if (cp[0] < '0' || cp[0] > '9') fatal("%.200s line %d: Badly formatted port number.", filename, linenum); fwd_port = atoi(cp); - cp = strtok(NULL, WHITESPACE); + cp = strtok(NULL, WHITESPACE_EQ); if (!cp) fatal("%.200s line %d: Missing second argument.", filename, linenum); @@ -474,14 +475,14 @@ break; case oLocalForward: - cp = strtok(NULL, WHITESPACE); + cp = strtok(NULL,...
2001 May 18
0
PATCH: implement delay (sleep) after last tunnelled connection exits
...ilcmpLRDo", opt)) { /* options with arguments */ + if (strchr("eilcmpLRSDo", opt)) { /* options with arguments */ optarg = av[optind] + 2; if (strcmp(optarg, "") == 0) { if (optind >= ac - 1) @@ -488,7 +489,13 @@ } add_local_forward(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fwd_port ==...
2002 Jan 27
0
[PATCH] Add an exit delay to Openssh-3.0.2p1 for use in tunneling
...t(ac, av, - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:TVX")) != -1) { + "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:S:TVX")) != -1) { switch (opt) { case '1': options.protocol = SSH_PROTO_1; @@ -487,7 +488,13 @@ add_remote_forward(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fw...
2001 Sep 28
1
[PATCH] fix for Linux hang on exit bug in 2.9.9p2
...t(ac, av, - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:TVX")) != -1) { + "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:S:TVX")) != -1) { switch (opt) { case '1': options.protocol = SSH_PROTO_1; @@ -495,7 +496,13 @@ add_remote_forward(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fw...
2001 Sep 05
2
sshd hangs on logout -- is this a bug?
In the changelog, there is an entry: 20001129 - (djm) Back out all the serverloop.c hacks. sshd will now hang again if there are background children with open fds. Does this mean that this is regarded as expected (and correct) behavior, that should not change in the future, or does it mean that this behavior is a known problem that someone will eventually fix? --Adam -- Adam McKenna
2001 Nov 14
6
[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
...t(ac, av, - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:TVX")) != -1) { + "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:NPR:S:TVX")) != -1) { switch (opt) { case '1': options.protocol = SSH_PROTO_1; @@ -495,7 +496,13 @@ add_remote_forward(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fw...
2001 Aug 15
1
ProxyCommand broken in SNAP-20010814
For some odd reason, one line was removed from the handling of ProxyCommand in readconf.c. As a result, ssh crashes on strlen(string) when it parses this option. --- readconf.c:X Mon Aug 6 23:35:52 2001 +++ readconf.c Wed Aug 15 16:11:44 2001 @@ -475,6 +475,7 @@ case oProxyCommand: charptr = &options->proxy_command; + string = xstrdup(""); while ((arg =
2003 Apr 14
1
OpenSSH 3.6.1p1 "Proxy-None" patch
Hi OpenSSH'lers! While using OpenSSH for quite a while, I became annoyed with the inflexible config-file parsing algorithm. I special it did not alow me to express: "Use *no* proxy for host xyz, but *this* proxy for all other hosts". So I had a look at the source an make a quick-n-dirty change, allowing me to use the special ProxyCommand "None" to express "don't
2004 Sep 08
0
[PATCH]Extending user@host syntax
...[-p port] [-R port:host:hostport] [-S ctl] [user@]hostname [command]\n" +" [-p port] [-R port:host:hostport] [-S ctl]\n" +" [user@]hostname[%%port][,host_key_alias] [command]\n" ); exit(1); } @@ -176,7 +177,7 @@ int i, opt, exit_status; u_short fwd_port, fwd_host_port; char sfwd_port[6], sfwd_host_port[6]; - - char *p, *cp, *line, buf[256]; + char *p, *cp, *line, buf[256], *host_key_aliasp; struct stat st; struct passwd *pw; int dummy; @@ -474,6 +475,28 @@ host = ++cp; } else host = *av; + + host_key_aliasp = 0; + if (strrchr(...
2002 Jul 17
2
[Patch] SSH through HTTP proxy using CONNECT
...{ /* options with arguments */ + if (strchr("eilcmpLRDor", opt)) { /* options with arguments */ optarg = av[optind] + 2; if (strcmp(optarg, "") == 0) { if (optind >= ac - 1) @@ -481,6 +482,15 @@ /* NOTREACHED */ } add_local_forward(&options, fwd_port, buf, fwd_host_port); + break; + case 'r': + if (sscanf(optarg, "%255[^:]:%u", buf, + &options.proxy_port) != 2) { + fprintf(stderr, "Bad HTTP proxy '%s'.\n", optarg); + usage(); + /* NOTREACHED */ + } + options.proxy_server = xstrdup(...