heiher / hev-socks5-tproxy

A simple, lightweight socks5 transparent proxy for Linux. (IPv4/IPv6/TCP/UDP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

work with trojan socks5

cattyhouse opened this issue · comments

one of the good idea of hev-socks5-tproxy is that it's upd tproxy is routed over tcp, which works quite well with Chrome youtube QUIC traffic in this way : [tproxy - socks5 upstream 10808] - > [trojan forward mode : localhost 10808 to remote localhost 1080] - [trojan server 443] - [hev socks5 server port 1080]

is it possible to work directly with trojan client mode socks5 listening somehow?

commented

one of the good idea of hev-socks5-tproxy is that it's upd tproxy is routed over tcp, which works quite well with Chrome youtube QUIC traffic in this way : [tproxy - socks5 upstream 10808] - > [trojan forward mode : localhost 10808 to remote localhost 1080] - [trojan server 443] - [hev socks5 server port 1080]

is it possible to work directly with trojan client mode socks5 listening somehow?

No. The UDP over TCP is a non-standard extented command of socks5, it's now just only works with hev-socks5-server. I think forward TCP port is a nice way. 👍

one of the good idea of hev-socks5-tproxy is that it's upd tproxy is routed over tcp, which works quite well with Chrome youtube QUIC traffic in this way : [tproxy - socks5 upstream 10808] - > [trojan forward mode : localhost 10808 to remote localhost 1080] - [trojan server 443] - [hev socks5 server port 1080]
is it possible to work directly with trojan client mode socks5 listening somehow?

No. The UDP over TCP is a non-standard extented command of socks5, it's now just only works with hev-socks5-server. I think forward TCP port is a nice way. 👍

Yeah, i have to. before this, i use ipt2socks to provide tproxy and forward to trojan client's socks5 port, it works very well, excecpt for QUIC traffic from Google Chrome and iOS youtube.app. in that case, the trojan server on VPS consumes a lot of CPU, when dealing with QUIC traffic, however everything else works like a charm.

wonder if you could take a look at that program and maybe get some inspiration

commented

There have a socks5 core library that supports UDP over TCP, but I guess that non-standard feature may not be accepted by trojan.