shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

[Feature][Windows] Add 'redirect-to-proxy' option

Open corkia1 opened this issue 4 years ago • 1 comments
trafficstars

ssserver on Windows

redirect-to is an array. When the client's packet match it, forward it to another proxy.

(port)/(tcp|udp) : (direct|socks4|socks5)://(IP:Port)/(tcp|udp) | null

example:

{
'redirect-to':[
'53/tcp': 'direct://127.0.0.1:53/udp',
'53/udp': 'direct://127.0.0.1:53/udp',
'80/tcp': null,
'443/tcp': 'socks5://127.0.0.1:9050/tcp'
'*': null
]
}

meaning;

The 1st and 2nd lines will hijack DNS connection to outside (eg Google) to local DNS server. Connecttion to http: will be blocked. Connection to https: will be rerouted to Tor. Connection to other ports (eg SMTP) are blocked.

corkia1 avatar Aug 19 '21 11:08 corkia1

Now it becomes a v2ray.

zonyitoo avatar Aug 19 '21 11:08 zonyitoo