heiher / hev-socks5-tunnel

A high-performance tun2socks for Linux/Android/FreeBSD/macOS/iOS/WSL2 (IPv4/IPv6/TCP/UDP)
MIT License
931 stars 166 forks source link

Reuse of udp relay #175

Closed 5andr0 closed 1 month ago

5andr0 commented 1 month ago

Thanks for making this open source!

Is this requesting a new socks5 udp relay server every time there's a different destination addr or source port? It would be nice if the udp relay is only requested once and then used for all different destinations since you can redirect to the right client or destination by the socks5 udp header. No need to have multiple relays open

heiher commented 1 month ago

The current practice is that one local source address:port pair corresponds to one connection/session, while one connection/session can communicate with multiple different destination address:port pairs.