Skip to content

Agent Side Proxy and Port Mapping

Jing Mi edited this page Apr 21, 2023 · 5 revisions

Socks5 Proxy Server

How it works

Launch a SOCKS5 proxy server with random username/password on agent side, then map its port (TCP only) back to CC. Assuming your CC can be reached by IP address 1.2.3.4, the resulting proxy config URL will be socks5://username:password@1.2.3.4:port. You can use this proxy to access network resources on agent side.

How to use it

Type run_proxy, set the port as you like (for example 8080), then run, you will see username/password sent back to you by agent, now you can use the proxy as socks5://username:password@1.2.3.4:8080.

Note that if DoH is enabled, agent side SOCKS5 server will use it to resolve names, but this shouldn't be a concern since UDP is currently not supported (DNS via SOCKS5 won't work).