qwj / python-proxy

HTTP/HTTP2/HTTP3/Socks4/Socks5/Shadowsocks/ShadowsocksR/SSH/Redirect/Pf TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio.
MIT License
1.99k stars 333 forks source link

rdp, ssh rhrough backward proxy with upstream #100

Open pouyamiralayi opened 3 years ago

pouyamiralayi commented 3 years ago

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?

qwj commented 3 years ago

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".