179

GitHub - Srar/node-tap: 基于TypeScript实现的SSTap

 6 years ago
source link: https://github.com/Srar/node-tap
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

node-tap

基于TypeScript实现的Tun2Shadowsocks. 目前可用于Windows平台.

测试实现特性

  • 缩水TCP实现(⚠️)
  • UDP转发(✅)
  • UDP转发多倍发包(✅)
  • 内建DNS解析转发(❌)
  • 路由表境内/境外IP分流(❌)

使用

  1. 从Releases中下载已经打包完的版本.

Releases中版本均64位编译, 可能无法在32位平台使用.

  1. 安装OpenVPN Tap-windows驱动.
  2. 安装Npcap来用于UDP多倍发包.
  3. 使用管理员权限cmd或powershell中在已以下命令运行node-sstap.
.\sstap.exe --host [ss host] --port [ss port] --passwd [ss password] --xtudp [x times]
  • host: 默认 Shadowsocks地址(可选)
  • port: 默认 Shadowsocks端口(可选)
  • passwd: 默认 Shadowsocks密码(可选)
  • tcphost: TCP Shadowsocks地址(可选)
  • tcpport: TCP Shadowsocks端口(可选)
  • tcppasswd: TCP Shadowsocks密码(可选)
  • udphost: UDP Shadowsocks地址(可选)
  • udpport: UDP Shadowsocks端口(可选)
  • udppasswd: UDP Shadowsocks密码(可选)
  • xtudp: UDP 多倍发包倍率(适用于游戏)

目前仅支持 RC4-MD5 加密方式.

如果已经成功运行你应该会看到以下信息: snapshort.png

此时全部流量就全部转发到对应Shadowsocks服务器了.

框架图

snapshort.png

该图来源: http://blog.ucloud.cn/archives/3115

参考


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK