gostExample icon indicating copy to clipboard operation
gostExample copied to clipboard

Kind of UDP over TCP help needed

Open essoojay opened this issue 2 years ago • 3 comments

Am a complete noob, please someone help me with config for this

For example:

server-ip 6.6.6.6 server port 443

wireguard port 10000

sni / host: www.bing.com

wireguard android client on port 10000

udp blocked on network trying to listen on 443 forward to wireguard udp10000

my server:

./gost -L sni+tcp://:443/:10000/udp

client on termux:

./gost -L udp://:10000/127.0.0.1:10000 -F relay+sni://6.6.6.6:443?host=www.bing.com

wireguard android client endpoint 127.0.0.1:10000

am trying to achieve UDP over TCP through sni / host which is www.bing.com

Hope someone understands this and help with the right config

essoojay avatar Dec 18 '23 18:12 essoojay

I think you can try udp2raw. It's the right project works for your need.
https://github.com/wangyu-/udp2raw

transport udp on tcp.
and you can see many wireguard issues in the project.
https://github.com/wangyu-/udp2raw/issues?q=wireguard

woodlyer avatar Dec 19 '23 01:12 woodlyer

Thanks, I checked but has no option for sni or host.

essoojay avatar Dec 19 '23 18:12 essoojay

maybe you need use gost + udp2raw. gost build sni tcp relay tunnel. udp2raw do the udp over tcp work.

I think it's complicate. How about use gost for kcp with fake tcp?

#gost v2
./gost relay+kcp://:9000?tcp=true

#gost v3
./gost relay+kcp://:9000?kcp.tcp=true

# client
./gost tcp://:80/:80 -F relay+kcp://server.com:9000?kcp.tcp=true

woodlyer avatar Dec 20 '23 03:12 woodlyer