Displaying 9 results from an estimated 9 matches for "channel_connect_by_listen_address".
2013 Dec 19
3
[Bug 2189] New: Client fails to consider hostname when matching rfwd channel opens
...s
> at once from a client on the same server-side port (by setting
> GatewayPorts=clientspecified in the server config and binding to
> different addresses), the client always matches on the first listener
> with that port, as seen in the following code snippet:
>
> Channel *
> channel_connect_by_listen_address(u_short listen_port, char *ctype, char *rname)
> {
> int i;
>
> for (i = 0; i < num_permitted_opens; i++) {
> if (permitted_opens[i].host_to_connect != NULL &&
> port_match(permitted_opens[i].listen_port, listen_port))...
2008 Feb 27
1
remote/reverse port forward, ssh client setting source IPs to what ssh server reports
..., and then do a bind with the source IP from the ssh server on
the socket before doing the connect to the server app on OpenSSH
client. Then OpenSSH client will be reporting the correct source IP to
the server app. Note, adding the feature to "connect_to" would also
require editing "channel_connect_by_listen_address" function in
channels.c and "client_request_forwarded_tcpip" function in
clientloop.c to forward the originating IP I think. I am not an expert
at programing or C or posix OSes so my implementation theories and
analysis might be faulty.
2002 Jan 05
2
new feature w/ patch
...ring. */
xfree(hostname);
diff -ru openssh-3.0.2p1/channels.h openssh-3.0.2p1-NewFeature/channels.h
--- openssh-3.0.2p1/channels.h Sun Nov 11 18:04:55 2001
+++ openssh-3.0.2p1-NewFeature/channels.h Sat Jan 5 14:34:05 2002
@@ -189,7 +189,7 @@
int channel_connect_to(const char *, u_short);
int channel_connect_by_listen_address(u_short);
void channel_request_remote_forwarding(u_short, const char *, u_short);
-int channel_request_local_forwarding(u_short, const char *, u_short, int);
+int channel_request_local_forwarding(const char *, u_short, const char *, u_short, int);
int
channel_request_forwarding(const char *,...
2009 Feb 17
2
Idea: reverse socks proxy
Hi,
Just a usecase that I'm sure has been covered before but just in case
its not an openssh solution would be very helpful.
I was trying to install software on a server that was firewalled so no
outbound http connections would work. I was also tunnelling via
another server. Outbound ssh connections also were a convenient option.
What would have been nice would be a remote version of
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...nect cctx;
+ Channel *c;
+
+ sock = connect_to_helper(host, port, &cctx);
+ if (sock == -1)
+ return NULL;
+
c = channel_new(ctype, SSH_CHANNEL_CONNECTING, sock, sock, -1,
CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, 0, rname, 1);
c->connect_ctx = cctx;
@@ -3347,6 +3479,10 @@ channel_connect_by_listen_address(u_short listen_port, char *ctype, char *rname)
for (i = 0; i < num_permitted_opens; i++) {
if (permitted_opens[i].host_to_connect != NULL &&
port_match(permitted_opens[i].listen_port, listen_port)) {
+ if (permitted_opens[i].port_to_connect == FWD_PERMIT_ANY_PORT)
+ retu...
2005 Feb 22
0
TR: 3.8.1p1 option "permitopennet" added
...ed_opens(char *, int);
+void channel_add_permittednet_opens(char *, char *, int, int);
void channel_clear_permitted_opens(void);
void channel_input_port_forward_request(int, int);
-int channel_connect_to(const char *, u_short);
+int channel_connect_to(const char *, u_short, void *);
int channel_connect_by_listen_address(u_short);
void channel_request_remote_forwarding(u_short, const char *, u_short);
int channel_setup_local_fwd_listener(u_short, const char *, u_short, int);
diff -nru openssh-3.8.1p1/serverloop.c openssh-3.8.1p1-devs//serverloop.c
--- openssh-3.8.1p1/serverloop.c Wed Jan 21 01:02:50 2004
+++ op...
2004 Aug 05
1
LocalForward and RemoteForward bind patch
...h-3.8p1-localbind/channels.h
--- openssh-3.8p1/channels.h 2003-10-01 23:17:00.000000000 -0700
+++ openssh-3.8p1-localbind/channels.h 2004-08-05 09:44:22.159094328 -0700
@@ -199,9 +199,9 @@
void channel_input_port_forward_request(int, int);
int channel_connect_to(const char *, u_short);
int channel_connect_by_listen_address(u_short);
-void channel_request_remote_forwarding(u_short, const char *, u_short);
-int channel_setup_local_fwd_listener(u_short, const char *, u_short, int);
-int channel_setup_remote_fwd_listener(const char *, u_short, int);
+void channel_request_remote_forwarding(const char *, u_short, const...
2013 Aug 31
11
[Bug 2147] New: OpenSSH remote forwarding of dynamic ports doesn't work when you create more than one
https://bugzilla.mindrot.org/show_bug.cgi?id=2147
Bug ID: 2147
Summary: OpenSSH remote forwarding of dynamic ports doesn't
work when you create more than one
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...st char *, u_short, char *, char *, int *,
const char **);
-Channel *channel_connect_to_path(const char *, char *, char *);
+Channel *channel_connect_to_path(const char *, char *, char *, struct ForwardOptions *);
Channel *channel_connect_stdio_fwd(const char*, u_short, int, int);
Channel *channel_connect_by_listen_address(const char *, u_short,
char *, char *);
diff --git a/misc.h b/misc.h
index c242f90..99341f6 100644
--- a/misc.h
+++ b/misc.h
@@ -38,6 +38,7 @@ struct ForwardOptions {
int gateway_ports; /* Allow remote connects to forwarded ports. */
mode_t streamlocal_bind_mask; /* umask for streamloc...