Comments (3)
按照 UWP VPN API 的设计,一个传统的 VPN 客户端和服务端通信最多只有两条 TCP/UDP 连接,对应两个 socket 对象。理论上这里的 socket 是 VPN 平台托管的,路由不会绕进 VPN 接口,所以要用 AssociateTransport
向平台注册 socket 对象。
然而我们的代理和传统 VPN 不一样,是 1:1 向服务端建立连接的,仅仅两个 socket 没法实现,只能让 Leaf 主动往服务端建立连接。新创建的 socket 平台没有特殊处理,依然会绕回 VPN 接口,所以我们用了 bind
主动绑定 socket 到一个物理接口来规避这个问题。
from maple.
感谢解惑,明白了
直接使用wintun也能达到相同的效果吧(同样bind 物理接口)
路由表的路由规则只是在建立链接未指定本地网络出口时自动选择的规则
如果手动指定后就不归路由表管了?
from maple.
Wintun 应该也可以用类似的处理方法。
用 bind
绑定接口大概只是 Windows 下可行,别的平台要用别的方法。关于怎么影响路由这块你可以找找别的资料,我也不是太熟。
from maple.
Related Issues (20)
- 支持非tun运行吗? HOT 5
- GUI的Config页面的【更多】按钮 HOT 5
- how to create a config file with trojan please explain HOT 1
- Maple支持Trojan-Go协议吗? HOT 1
- 使用wintun参照vpn的方式使用leaf HOT 8
- Maple启动时闪退 HOT 7
- Using maple over Vmess HOT 8
- 可否可以支持在任意路径创建配置文件,或者软链到任意路径? HOT 3
- Maple crashes when I connect from Maple GUI HOT 3
- 请问要如何配合本地clash使用呢? HOT 2
- Win10 安装后运行 闪退 HOT 7
- Package Installation Certificate HOT 3
- VMessAEAD问题 HOT 1
- 如何能支持ipv6功能,我的网络是支持ipv6的,但vpn链接这里无法获取 HOT 1
- pen mmdb file C:\Users\wintrue\AppData\Local\Packages\56263bdbai.Maple_gv14dyc9zj8pj\LocalState\config\geo.mmdb failed: IoError("Access is denied. (os error 5)") HOT 8
- 不好意思,我问一下,安装的根证书的作用是啥? HOT 3
- Obfuscation: obfs=tls HOT 3
- 可以有详细一点的配置方法嘛 HOT 7
- 可以做到开机启动并且自动应用吗 HOT 1
- 在windows下vpn配置会影响到hyper-v虚拟机 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maple.