e1732a364fed / v2ray_simple

a verysimple proxy
MIT License
531 stars 106 forks source link

WinDivert-based Windows TProxy #41

Open e1732a364fed opened 2 years ago

e1732a364fed commented 2 years ago

从 hysteria的issue看到的。 它能加 那我就能加。

https://github.com/HyNetwork/hysteria/issues/281

https://www.reqrypt.org/windivert.html

参考 https://www.seeull.com/archives/314.html

Leao9203 commented 2 years ago

从 hysteria的issue看到的。 它能加 那我就能加。我要证明我的能力不低于 hy作者。

HyNetwork/hysteria#281

https://www.reqrypt.org/windivert.html

参考 https://www.seeull.com/archives/314.html

哈哈哈哈哈哈哈 这胜负欲

e1732a364fed commented 2 years ago

总之,虽然会考虑加这个功能,但是该功能的优先级 是比 tun 要低的。

我们先考虑 wintun 再 考虑 windivert.

因为Tun的话,可以提供 全平台支持,而 windivert只能用于 windows。

如果加了 windivert用于 windows 端的 透明代理的话,那么透明代理 就剩 macOS 没支持了,显得很尴尬

为了减少 macOS 的尴尬,也是要先 支持 Tun

后来发现 tun/tap 涉及到 cgo,而且经常涉及到 自己运行一些外部命令,甚至安装一些插件(如wintun),总之还是不够优雅。

所以还是先实现 透明代理比较爽一些。

当然,要是都不好实现,那么就两种都搁置。

e1732a364fed commented 2 years ago

关于macOS 上的 透明代理实现,也许可以参考

https://github.com/shadowsocks/go-shadowsocks2/blob/master/pfutil/pf_darwin.go

https://penglei.github.io/post/transparent_proxy_on_macosx/

e1732a364fed commented 1 year ago

其实vs都实现了tun了,感觉没必要再搞别的了?

e1732a364fed commented 1 year ago

还可参考 https://github.com/macronut/phantomsocks

https://github.com/imgk/shadow