chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Server support upstream socks5 proxy

Open wen-long opened this issue 6 years ago • 3 comments

In some case there need a domain or ip rule based software for dispatch traffic on server side Such as https://github.com/Dreamacro/clash Config:

Rule:
- DOMAIN-SUFFIX,google.com,auto
- DOMAIN-KEYWORD,google,auto
- DOMAIN,google.com,auto
- DOMAIN-SUFFIX,ad.com,REJECT
- IP-CIDR,127.0.0.0/8,DIRECT
- SOURCE-IP-CIDR,192.168.1.201/32,DIRECT

And some hook-based socksify software such as proxychains-ng can not do with golang compiled software.

I hope chisel server be able to forward outgoing traffic to another socks5 server

wen-long avatar Feb 23 '19 16:02 wen-long

In the following, where do you need a socks proxy?

user-app -> chisel-client -> chisel-server -> user-endpoint

jpillora avatar Feb 24 '19 06:02 jpillora

@jpillora

user-app -> chisel-client -> chisel-server -> socks5 proxy -> user-endpoint

wen-long avatar Feb 24 '19 08:02 wen-long

Hi @jpillora ~Could you please explain or clarify the README section on SOCKS5 usage? I might have misunderstood the use cases here.~

Oh nevermind, --socks5 enables SOCKS5 support without needing a separate SOCKS5 program running on the server machine.

I realized this after reading this line.

It failed earlier because it wasn't listening on IPv6, and I was trying to connect over IPv6, obviously it failed.

realyukii avatar Sep 05 '25 08:09 realyukii