Kang Hu
Kang Hu
可以尝试一下我的分支:https://github.com/happyharryh/gost/tree/wireguard-client ``` # 构建 git clone -b wireguard-client --recursive https://github.com/happyharryh/gost.git cd gost git apply wireproxy.patch go build ./cmd/gost # 用法 (1234是任意正整数) ./gost -L=auto://127.0.0.1:8000 -F=wg://:1234?c=proxy.conf ``` 注意这个分支只支持作为WireGuard客户端,不支持作为服务器端。proxy.conf文件格式参考 https://github.com/pufferffish/wireproxy/blob/master/README.md
> > 可以尝试一下我的分支:https://github.com/happyharryh/gost/tree/wireguard-client > > > > > > ``` > > > # 构建 > > > git clone -b wireguard-client --recursive https://github.com/happyharryh/gost.git > > > cd gost >...
> > > > 是多级转发,我这边测试 wg套wg 和 wg套http好像都不好使了。 这个不太好做。 如果你看我的代码,会发现目前的wireguard与gost主程序的耦合是不紧密的。或者说wireguard并没有真正融入gost,两者只是在用接口对接。现在gost主程序启动时,附带启动了一个wireguard客户端,然后gost主程序在每次处理gost客户端请求时,调用这个wireguard客户端的DialContext接口。至于wireguard客户端内部是怎么工作的,对我来说仍是黑盒。 由于wireguard客户端的启动成本大,不太适合由gost客户端发起请求,让gost服务器端(包括第2级、第3级、第N级服务器端)被动地启动wireguard客户端并使用。所以现在只能由gost服务器端自己在启动的时候,主动加载wireguard配置,启动wireguard 客户端,为gost客户端提供服务。 想要实现多级转发功能,可能需要详细解读wireguard代码,将wireguard客户端向wireguard服务器端发送的请求过程完整实现在gost中,这个需要花比较多的精力。
You can try my branch: https://github.com/happyharryh/gost/tree/wireguard-client ``` # Build git clone -b wireguard-client --recursive https://github.com/happyharryh/gost.git cd gost git apply wireproxy.patch go build ./cmd/gost # Usage (assuming that 1234 is your...
可以尝试一下我的分支:https://github.com/happyharryh/gost/tree/hysteria-quic ``` # 构建 git clone -b hysteria-quic https://github.com/happyharryh/gost.git cd gost go build ./cmd/gost # 服务器端 ./gost -L='quic://127.0.0.1:8080?send_mbps=100' # 客户端 ./gost -L=auto://127.0.0.1:1080 -F='quic://127.0.0.1:8080?send_mbps=20&keepalive=true' ``` 这个分支只是简易实现了Hysteria-QUIC的通道,未实现Hysteria的其他加密功能,数据发送速率由服务器端/客户端启动配置直接定死,而非在连接时协商
> @happyharryh 专门来这里感谢的~ hysteria-quic 非常 nice~~ 终于又能高峰期上网了😂 注意这里的quic没有实现身份校验和伪装,仅仅是应用了hysteria的拥塞算法提升传输速率,建议搭配iptables白名单之类的防护使用
> > @happyharryh 专门来这里感谢的~ hysteria-quic 非常 nice~~ 终于又能高峰期上网了😂 > > gost 可以中转最新的Hysteria 2 协议吗?如何操作? 这里的quic没有实现hy的身份校验和伪装,不能直接和hy对接,还是得用hy才能和hy对接。中转的话可以用gost帮忙把udp数据转发一下,不过如果只是转发的话,其实用iptables就可以实现,性能还更高一些
> > > > @happyharryh 专门来这里感谢的~ hysteria-quic 非常 nice~~ 终于又能高峰期上网了😂 > > > > > > > > > gost 可以中转最新的Hysteria 2 协议吗?如何操作? > > > > > > 这里的quic没有实现hy的身份校验和伪装,不能直接和hy对接,还是得用hy才能和hy对接。中转的话可以用gost帮忙把udp数据转发一下,不过如果只是转发的话,其实用iptables就可以实现,性能还更高一些...
> > Once the route is removed and the system reverts to DHCP gateway, everything works again. > > I am encountering another issue: even after removing the incorrect route,...