jpillora / chisel

A fast TCP/UDP tunnel over HTTP
MIT License
12.77k stars 1.35k forks source link

Server support upstream socks5 proxy #81

Open wen-long opened 5 years ago

wen-long commented 5 years ago

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

jpillora commented 5 years ago

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

user-app -> chisel-client -> chisel-server -> user-endpoint
wen-long commented 5 years ago

@jpillora

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