George Shuklin
2015-12-09 19:04:11 UTC
Hello.
OpenSSH has -D option to create socks proxy (take local traffic and send
it from remote machine). But sometimes there is an opposite problem: to
allow apps on remote machine send traffic from local machine (for
example, to get access to intranet resources).
Expected syntax (I use -B as fist unused letter, plus it may be
memorized as 'back'):
ssh -B 127.0.0.1:1080 ***@remote_server
Creates a socks proxy for remote machine, all requests on remove machine
coming to 127.0.0.1:1080 are served by local ssh client.
Right now it can be implemented as combination of ssh -D 1080 localhost
&; ssh -R 127.1:1080:127.1:1080 ***@remote, but it is very inelegant.
Thanks!
OpenSSH has -D option to create socks proxy (take local traffic and send
it from remote machine). But sometimes there is an opposite problem: to
allow apps on remote machine send traffic from local machine (for
example, to get access to intranet resources).
Expected syntax (I use -B as fist unused letter, plus it may be
memorized as 'back'):
ssh -B 127.0.0.1:1080 ***@remote_server
Creates a socks proxy for remote machine, all requests on remove machine
coming to 127.0.0.1:1080 are served by local ssh client.
Right now it can be implemented as combination of ssh -D 1080 localhost
&; ssh -R 127.1:1080:127.1:1080 ***@remote, but it is very inelegant.
Thanks!