-
Notifications
You must be signed in to change notification settings - Fork 6
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
为什么最后移除掉tun的ethernet封装? #105
Comments
实现比较复杂,并且 fork 了 smoltcp 暴露了一些内部的接口,长期不容易维护。后来发现可以用系统的网络栈就改成用系统的了 |
那必须额外加个路由,把socks地址排除掉对吗 |
不需要啊。现在依赖 DNS,把需要翻墙的域名解析到 tun 所在的网段,不需要翻墙的域名走系统的DNS解析,也就不会走到 tun。 |
不过需要在配置文件里面指定 socks server 直连 |
我看里面有这句话
那就是加路由的时候,对socks5的流量要放行,这种实现不应该就是加个更短的socks5路由条目吗 |
tun 对应的网段为: 10.0.0.0/16
|
文档写的有点问题,应该是远程的翻墙服务器必须配置成 |
我看没有涉及到修改默认路由,并没有将全部的流量都转发到tun网卡。
|
|
感谢作者!通过阅读seeker源代码,受益良多! |
你好,我是从这过来的,shadowsocks/shadowsocks-rust#199 (comment)
看seeker 2020年的代码,seeker曾用过smoltcp的ethernet封装,但似乎最新的master已经去掉了
现在采用封包后发给socks服务器,而不需要从packet里自行封装TCPListener。但封包发给socks服务器需要编写路由表将socks ip排除。不太灵活
想知道最后去掉ethenet的原因是什么?
The text was updated successfully, but these errors were encountered: