Replies: 3 comments 7 replies
-
|
主要看怎么用Rust调用wintun的API,主要实现函数就两个,读IP包和写IP包,做好了再考虑放进leaf中。不管是换tun还是netstack,leaf相关的改动最多就一百多行: https://github.com/eycorsican/leaf/blob/master/leaf/src/proxy/tun/inbound.rs#L160-L293,最直观的方法是用unbounded channel传IP包。 |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
期待eycorsican/leaf能加入对wintun的支持。 收集了几个wintun rust相关的文档:
具体的处理过程也许可以借鉴一下: xjasonlyu/tun2socks |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@stoneport 你好,请问有进展吗? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
想实现一个Windows下Trojan TUN模式客户端,考虑使用leaf + wintun做二次开发。目前能做到windows下启动leaf,也能安装wintun虚拟网卡,但就是不知道如何将二者关联起来。
leaf的客户端配置文件:
粗略学习了一下YtFlow/Maple项目,发现该项目仅支持windows 10以后的UWP。虽然省掉了第三方的TUN/TAP驱动,不过对Windows版本的要求比较高。
请指教,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions