Displaying 7 results from an estimated 7 matches for "channel_request_local_forward".
2002 Jan 05
2
new feature w/ patch
...Thanks,
Scott
diff -ru openssh-3.0.2p1/channels.c openssh-3.0.2p1-NewFeature/channels.c
--- openssh-3.0.2p1/channels.c Thu Oct 11 20:35:05 2001
+++ openssh-3.0.2p1-NewFeature/channels.c Sat Jan 5 15:36:10 2002
@@ -2057,11 +2057,11 @@
* channel to host:port from remote side.
*/
int
-channel_request_local_forwarding(u_short listen_port, const char *host_to_connect,
- u_short port_to_connect, int gateway_ports)
+channel_request_local_forwarding(const char *listen_host, u_short listen_port,
+ const char *host_to_connect, u_short port_to_connect, int gateway_ports)
{
return channel_request_forwarding(...
2000 Aug 23
1
Protocol 2 remote forwarding patch
...char *address_to_bind;
+ int port_to_bind;
+ address_to_bind = packet_get_string(NULL);
+ port_to_bind = packet_get_int();
+
+ /* Check if the client is allowed to forward (this port) */
+ if ( allow_remote_forwarding(address_to_bind, port_to_bind) ) {
+ /* Start listening on the port */
+ channel_request_local_forwarding( port_to_bind, address_to_bind,
+ port_to_bind, 1, 1 );
+ /* NOT REACHED if error (disconnects).
+ * Note: if error xfree not called
+ * for address_to_bind
+ */
+ success = 1;
+ }
+ else {
+ success = 0;
+ packet_send_debug("Server has disabled port f...
2001 Feb 10
3
Protocol 2 remote forwarding patch
...D && !user_authenticated_as_root ) {
+ log("User tries to forward privileged port %d", port_to_bind);
+ packet_send_debug("Requested forwarding of port %d but user is not root.", port_to_bind);
+ success = 0;
+ }
+ else {
+ /* Start listening on the port */
+ channel_request_local_forwarding( port_to_bind, address_to_bind,
+ port_to_bind, 1,
+ 1 /* ssh2_remote_fwd*/);
+ /* NOT REACHED if error (disconnects).
+ * Note: if error xfree not called
+ * for address_to_bind
+ */
+ success = 1;
+ }
+
+ xfree( address_to_bind );
+ }
+
+...
2000 Oct 09
2
Remote port forwarding
...Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
I've checked the code and the only use of the "gateway_ports" variable
is when calling the getaddrinfo function (inside
channel_request_local_forwarding).
The right behaviour should be to deny the port fordwarding request,
shouldn't it?
Any help? BTW, I'm using openssh-2.2.0p1 on Linux (RedHat).
Thanks in advance,
Jose
_______________________________________________________________________________
Jose A. Rodriguez OOO Universi...
2001 Sep 20
1
Patch to allow local port forwarding from an existing connection
...+
+ s += 2;
+
+ if (sscanf(s, "%hu/%255[^/]/%hu", &fwd_port, buf, &fwd_host_port) != 3
+ &&
+ sscanf(s, "%hu:%255[^:]:%hu", &fwd_port, buf, &fwd_host_port) != 3)
+ {
+ msg = "Invalid port forward";
+ goto out;
+ }
+ if (local) {
+ n = channel_request_local_forwarding(fwd_port, buf,
+ fwd_host_port,
+ options.gateway_ports);
+ if (n <= 0) {
+ msg = "Port forwarding failed";
+ goto out;
+ }
+ }
+ else
+ channel_request_remote_forwarding(fwd_port, buf, fwd_host_port);
+
+ msg = "Forwarding port";
+ out:
+ signal...
2001 Feb 01
0
warnings on aix325
...of function `getsockname'
channels.c: In function `channel_free':
channels.c:318: warning: implicit declaration of function `shutdown'
channels.c: In function `channel_post_x11_listener':
channels.c:543: warning: implicit declaration of function `accept'
channels.c: In function `channel_request_local_forwarding':
channels.c:1484: warning: implicit declaration of function `socket'
channels.c:1494: warning: implicit declaration of function `setsockopt'
channels.c:1501: warning: implicit declaration of function `bind'
channels.c:1512: warning: implicit declaration of function `listen'...
1999 Dec 10
5
openssh on AIX v4.3.3 with native compiler
Hello,
Was looking in the archives... and haven't seen this one listed.
When I compile openssh-1.2pre17 on AIX v4.3.3 with the native compiler
I get the following errors. I haven't see this __attribute__ code.. What
compiler/libraries are needed to compile this? I have seen that people
have compiled openssh on AIX.. Just wondering what you have used.
# make
cc -g