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

Add alternative secure tunel: tr-jan wing #405

Merged
merged 6 commits into from
Jun 14, 2020
Merged

Add alternative secure tunel: tr-jan wing #405

merged 6 commits into from
Jun 14, 2020

Conversation

Yonsm
Copy link
Contributor

@Yonsm Yonsm commented Jun 10, 2020

使用说明

添加了另外一种安全、高效、可灵活组合的上网方式,链路为 dnsmasq + g--list + ipset --> socks/tr-jan -> 其中 tr-jan 既可以运行在路由器上,也可以是运行在其他设备上的任何SOCKS服务。相关功能默认未开启(建议不要和 SS 一同编译,虽然不会冲突);启用步骤如下:

  1. 在 config 中添加CONFIG_FIRMWARE_INCLUDE_WING=y后编译固件。
  2. 在路由器参数设置-脚本-路由器启动后脚本中,启用 wing HOST 443 PASS 一行(去掉 # 号,替换服务器和密码)。
  3. 在路由器参数设置-脚本-防火墙启动后脚本中,启用 wing resume(去掉 # 号)。

以上,在NEWIFI3->GCP上速度大概能到40Mbps。最关键的是,相当的稳、稳、稳…

进阶:如果把 tr-jan 移到 N1 等设备上运行,以上第 2 步可启用 wing 192.168.1.9 1080 一行(去掉 # 号,替换 SOCKS 服务器地址和端口),在NEWIFI3+N1->GCP上实测速度可达 320Mbps 以上。

备注:dns2tcp 运行在 UDP 54 而不是著名的 5353(mDNS/Bonjour),避免 AirPlay 等苹果设备错误访问 DNS 的问题,以前多数人使用 5353 是个彻底的错误(比如乐播投屏会频繁访问路由器的 5353 UDP 端口来查询 local 的域名,导致 dns2tcp/dnsforwarder 等频繁的错误查询记录)。

未来计划

  1. 添加 WEB 页面配置。
  2. 支持 chn-oute 模式。
  3. 添加 $$/V2 支持,在这个新脚本下,添加一种新通道相当容易了。
  4. 完善 dnsmasq:
    • 把 dns2tcp 的功能整合到 dnsmasq 内,直接让 dnsmasq 支持 dns over tcp 或 HTTP DNS。
    • 让 dnsmasq 支持更高效的 domain-list-file based server config,而不是现在这样每个域名一行,大量重复配置关键字(dnsmasq 不支持超长的行,比较废柴),另外包括 ipset 的配置一并整合支持了,只需要一个 domains_list.txt;
    • 因为域名太多了,期望能把其他人或 dnsmasq 的其他分支支持 hash 功能的改动移过来。

以上只是计划,可能大概率不会全部去做,小富即安够用就好:)

@hanwckf hanwckf merged commit 8539c9d into hanwckf:dev Jun 14, 2020
hanwckf pushed a commit that referenced this pull request Jun 14, 2020
* 实验性功能,目前仅支持脚本启动方式,暂无webui

* Add dns2tcp

* add ipt2socks

* Add trojan wing

* Add wing startup script

* Add wing makefile

* Add custom ip sample script to gfwlist
meolunr pushed a commit to meolunr/rt-n56u that referenced this pull request Jul 25, 2020
* 实验性功能,目前仅支持脚本启动方式,暂无webui

* Add dns2tcp

* add ipt2socks

* Add trojan wing

* Add wing startup script

* Add wing makefile

* Add custom ip sample script to gfwlist
joekingx pushed a commit to joekingx/rt-n56u that referenced this pull request Oct 5, 2020
joekingx added a commit to joekingx/rt-n56u that referenced this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants