YtFlow / Maple

A lightweight Universal Windows proxy app based on https://github.com/eycorsican/leaf
Apache License 2.0
1.19k stars 121 forks source link

使用wintun参照vpn的方式使用leaf #33

Closed afuafu001 closed 1 year ago

afuafu001 commented 1 year ago

您好, 我尝试使用wintun,将packet通过netstack_send发送至leaf, 并且设定了OUTBOUND_INTERFACE为物理网卡ip,但似乎leaf的socket无法联通外网.建立tcp时,会报无效参数. 向大神请教一下是什么原因呢?

bdbai commented 1 year ago

你改的是 Maple 用的 Leaf fork 还是原版 Leaf?

afuafu001 commented 1 year ago

Maple Leaf

bdbai commented 1 year ago

Maple 用的 Leaf 因为 UWP 限制用的是 patch 过的 mio,不保证在别的环境能跑,你可以试试去掉 patch 然后换最新版的 tokio。

afuafu001 commented 1 year ago

好的,我试试。谢谢指点。

包布丁 @.***> 于 2022年9月14日周三 23:01写道:

Maple 用的 Leaf 因为 UWP 限制用的是 patch 过的 mio,不保证在别的环境能跑,你可以试试去掉 patch 然后换最新版的 tokio。

— Reply to this email directly, view it on GitHub https://github.com/YtFlow/Maple/issues/33#issuecomment-1246902075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ44AEY3TCU4HGGMCBJEMADV6HSFFANCNFSM6AAAAAAQMOOVAM . You are receiving this because you authored the thread.Message ID: @.***>

afuafu001 commented 1 year ago

原来的报错变成了“向一个无法连接的网络尝试套接字”, 我已设置路由全部到tun, leaf在connect之前bind了物理网卡的ip地址,但不能建立连接,是我理解有误吗?

bdbai commented 1 year ago

@afuafu001 瞎猜一波,会不会是通过物理网卡的路由被你删了…

bdbai commented 1 year ago

如果没有别的问题 issue 先关了,后续有进展可以再补充。

afuafu001 commented 1 year ago

好的

包布丁 @.***> 于 2022年11月24日周四 23:25写道:

如果没有别的问题 issue 先关了,后续有进展可以再补充。

— Reply to this email directly, view it on GitHub https://github.com/YtFlow/Maple/issues/33#issuecomment-1326590701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ44AE5T2SRR5CUUNUXPAA3WJ6CE3ANCNFSM6AAAAAAQMOOVAM . You are receiving this because you were mentioned.Message ID: @.***>