nadoo / glider

glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
GNU General Public License v3.0
3.1k stars 422 forks source link

kcp listen and client (where is the readme?) #146

Closed huffery closed 4 years ago

huffery commented 4 years ago

I cannot find any example of kcp. So the following listen on server seems works: glider -listen kcp://aes:key@:443,socks5:// -verbose 2020/01/02 01:43:52 strategy.go:82: [strategy] forward to remote servers in round robin mode. 2020/01/02 01:43:52 kcp.go:164: [kcp] listening on :443

But I cannot find a way to make client end to work. The following does not work.

glider -listen :888 -forward kcp://aes:key@:443,socks5:// -verbose 2020/01/02 01:46:39 strategy.go:149: [strategy] no available forwarders, just use: :443, please check your settings or network 2020/01/02 01:46:39 strategy.go:82: [strategy] forward to remote servers in round robin mode. 2020/01/02 01:46:39 mixed.go:69: [mixed] listening TCP on :888 2020/01/02 01:46:39 socks5.go:165: [socks5-udp] listening UDP on :888

huffery commented 4 years ago

what my input is something like: glider -listen :888 -forward kcp://aes:key@1.1.1.1:443,socks5:// -verbose github hid my IP. just in case you wonder why I do not input my server IP.

nadoo commented 4 years ago

server:

glider -verbose -listen "kcp://none:key@127.0.0.1:8444?dataShards=10&parityShards=3,http://"

client:

glider -verbose -listen :8443 -forward "kcp://none:key@127.0.0.1:8444?dataShards=10&parityShards=3,http://"
nadoo commented 4 years ago

Feel free to reopen this issue if you still have any problem