python-proxy icon indicating copy to clipboard operation
python-proxy copied to clipboard

rdp, ssh rhrough backward proxy with upstream

Open pouyamiralayi opened this issue 4 years ago • 1 comments

Scenario: Transporting RDP or SSH through backward proxy with an upstream. Client Side: pproxy -l socks5://:8080 socks5+in://:8081 -v Server Side:(Behind Nat, with Upstream) pproxy -l tunnel{CLIENT_IP:CLIENT_PORT}://8080 -r http://UPSTREAM_IP:UPSTREAM_PORT -vv pproxy -l http+in://8080 -vv Problem: Without the tunnel, in case of no upstream proxy, i can leverage RDP through the backward connection without any problem. So the backward proxy is functioning without any problem; but with the addition of tunnel and the upstream proxy, i can not transport RDP although i can see from my logs that the backward connection is established and rdp handshake is taking place. Question: Does anybody has a solution to connect with RDP or SSH through a backward proxy with an upstream?

pouyamiralayi avatar Dec 07 '20 03:12 pouyamiralayi

I can't understand the client side part. "-r" is missing in the command line. If you want to use backward, you should use the same protocol. For example, if client side is "socks5+in", server side must be "socks5+in".

qwj avatar Dec 15 '20 09:12 qwj