-
-
Notifications
You must be signed in to change notification settings - Fork 253
Agent Side Proxy and Port Mapping
Jing Mi edited this page Apr 21, 2023
·
5 revisions
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.
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).