Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
afuafu001 opened this issue Sep 14, 2022 · 8 comments
Closed

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

afuafu001 opened this issue Sep 14, 2022 · 8 comments
Labels
question Further information is requested

Comments

@afuafu001
Copy link

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

@bdbai
Copy link
Member

bdbai commented Sep 14, 2022

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

@afuafu001
Copy link
Author

Maple Leaf

@bdbai
Copy link
Member

bdbai commented Sep 14, 2022

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

@afuafu001
Copy link
Author

afuafu001 commented Sep 14, 2022 via email

@afuafu001
Copy link
Author

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

@bdbai
Copy link
Member

bdbai commented Sep 15, 2022

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

@bdbai bdbai added the question Further information is requested label Nov 20, 2022
@bdbai
Copy link
Member

bdbai commented Nov 24, 2022

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

@bdbai bdbai closed this as completed Nov 24, 2022
@afuafu001
Copy link
Author

afuafu001 commented Nov 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants