MDSLab / wstun

Tunnels and reverse tunnels over WebSocket
Apache License 2.0
114 stars 44 forks source link

client-reverse-wstunnel with http proxy #11

Open pankajbhagra opened 7 years ago

pankajbhagra commented 7 years ago

Is it possible to set the https_proxy from the client side of the reverse tunnel.

something similar to what wstunnel support wstunnel -r port -p https://proxy_host:proxy_port wss://...

i didn't see this option (-p) available in reverse tunnel. Any suggestion how to achieve this ?

something inline with allowing reverse wstunnel to use HTTP_CONNECT to work across proxy.

alotronto commented 7 years ago

Hi pankajbhagra,

As you seen, in the reverse tunnel client isn't present the '-p' option, only because when reverse tunnel was developed the normal tunnel, developed by mhzed, didn't have the '-p' option.

The objective of reverse tunnel it is to expose, using a reverse server (usually with a public IP), a service present on the reverse client in order to make a direct connection with this service externally.

I think that the use of a http proxy by a reverse client probably it is a valid use case, but I don't know how many work it is necessary to develop this feature.