Re: GatewayPorts does not open remote end
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 01/22/05
- Previous message: Jan Engelhardt: "Re: GatewayPorts does not open remote end"
- In reply to: Jan Engelhardt: "Re: GatewayPorts does not open remote end"
- Next in thread: Darren Tucker: "Re: GatewayPorts does not open remote end"
- Reply: Darren Tucker: "Re: GatewayPorts does not open remote end"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 22 Jan 2005 10:39:16 GMT
In article <Pine.LNX.4.61.0501221052400.19780@yvahk01.tjqt.qr>,
Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
>But if the sshd_config (which I may not edit, for I am not root) has
>GatewayPorts = yes, then all -L and -R would be forwarded, even for users
>which do not want Gatewayports.
That's true. There's an enhancement request with patch to implement
finer-grained control over port forwarding listen addresses:
http://bugzilla.mindrot.org/show_bug.cgi?id=413
If GatewayPorts=no on the server, then there's not much you can do
about it from the client side. What you could potentially do is run
an external forwarder (eg a modified netcat?) on the server to accept
connections and forward them to sshd on the loopback.
If nothing else is available, the ssh client on the remote host could
be pressed into service, although it's not very efficient, eg:
$ ssh -A -R 1234:port.forward.dest:22 remoteserver \
ssh -L 1235:127.0.0.1:1234 -N localhost
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Previous message: Jan Engelhardt: "Re: GatewayPorts does not open remote end"
- In reply to: Jan Engelhardt: "Re: GatewayPorts does not open remote end"
- Next in thread: Darren Tucker: "Re: GatewayPorts does not open remote end"
- Reply: Darren Tucker: "Re: GatewayPorts does not open remote end"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|