sshtunnel icon indicating copy to clipboard operation
sshtunnel copied to clipboard

Support for Dynamic Port Forwarding

Open sorinsrn7 opened this issue 7 years ago • 7 comments

It would be nice to have support for dynamic port forwarding, something similar with -D option from unix ssh command.

ssh -f -N -D 127.0.0.1:1080 user@remote_server

If you run this command from your local system, all TCP traffic on 127.0.0.1 1080 it goes through remote_server. So basically 127.0.0.1:1080 it can be added as socks5 proxy in any other application.

sorinsrn7 avatar Apr 08 '17 14:04 sorinsrn7

I just tried a python library called Chilkat , it seems to support Dynamic Port Forwarding https://www.example-code.com/python/sshTunnel_dpf.asp

rand-Mal-Function avatar Jul 27 '17 16:07 rand-Mal-Function

hello-

any progress on this? it seems a PR was submitted but failed some tests. i am willing to discuss a bounty for this in private if it would help.

johnnybubonic avatar Jan 17 '18 11:01 johnnybubonic

Hello,

I think this would be a valuable addition as it is a very common use-case nowadays

cp2587 avatar Oct 19 '18 14:10 cp2587

Hello, I'm here to request the same feature.

hamadrehman avatar Jul 28 '19 19:07 hamadrehman

me too

yuxiaokui avatar Apr 03 '20 02:04 yuxiaokui

This is my primary use case for SSH Tunnels as well.

kurtabersold avatar Apr 27 '20 18:04 kurtabersold

https:// github.com /paramiko/paramiko/blob/5cd4a085a11940436111b6b6f93aa369c9fb2a92/demos/demo_socks_proxy.py

liuhuan72 avatar Aug 21 '22 16:08 liuhuan72