Code Monkey home page Code Monkey logo

reborn's Introduction

Reborn

注意 0.5.0 版本开始使用了新的配置格式,如果使用的是 0.5.0 之前版本的,请参考旧版使用说明

功能介绍

Reborn 是一款 macOS 上的透明代理

  • 对用户无感知,无需配置系统代理,自动接管所有应用程序(如浏览器和终端工具)流量
  • 支持根据 IP、域名、GEOIP 规则进行分流,屏蔽特定网站
  • DNS 解析对 CDN 友好
  • 可以查看所有经过 Reborn 转发的连接

流量监控功能

流量监控功能默认关闭,如果需要开启,请在 Preferences 中打开相应的设置。
可以设置是否进行网络信息统计、是否在状态栏显示实时网速、状态栏是否使用窄模式。
perferences

  • 状态栏显示实时网速
    • 宽模式 statusbar
    • 窄模式 statusbar
  • Dashboard 查看统计信息
    server
  • 服务器流量统计
    server
  • 查看连接信息
    • 当前活跃连接
      active
    • 最近完成的连接
    • 所有连接信息

注意事项

配置规则仓库下有个模版文件,大概看看就能看懂了,配置文件放到 Profiles 目录下就好了。

如果将reborn作为前端配合其他工具使用,则需要对其他工具配置进程规则。

由于是通过虚拟网卡实现的,所有如果要用 ping, traceroute 等功能,加 -S/-s 指定具体网卡吧。

最后说明一下,内置了 crash 上报会上传到 hockeyapp 和版本升级检测的,没有其他额外的网络功能了。

希望碰到图标自动变灰(服务挂了)的情况能够反馈下如何出现的,比如访问某个网站,使用了某个工具,日志文件在 ~/Library/Application Support/Reborn/Logs 目录下

导航

配置详解

https://github.com/langyanduan/Reborn/blob/master/v2/DETAIL.md

基础配置模版

https://github.com/langyanduan/Reborn/blob/master/v2/template.conf

下载地址

https://github.com/langyanduan/Reborn/releases

QA

1. 如何判断 Reborn 已启用,并接管了流量

查看网卡信息,输入命令 ifconfig,可以看到 utun6Reborn 创建的虚拟网卡

utun6: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
    inet 240.0.200.2 --> 240.0.200.255 netmask 0xffffff00
    inet6 fe80::147e:ad68:d777:e455%utun6 prefixlen 64 secured scopeid 0xf
    nd6 options=201<PERFORMNUD,DAD>

查看路由表,输入 netstat -nr,可以看到 utun6 作为默认下一跳地址排在第一位

Routing tables

Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
default            240.0.200.1        UGSc           71       21   utun6
default            192.168.1.1        UGScI          11        0     en0

使用 ping 任意地址,响应时间都是小数毫秒级别,说明 icmp 协议均被本地接管

➜  reborn git:(master) ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=0.169 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=255 time=0.201 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=255 time=0.312 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=255 time=0.174 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=255 time=0.193 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.169/0.210/0.312/0.052 ms

2. 如何作为前端使用

需要配置进程规则,如使用 ss-local 作为后端

[RULES]
...
PROCESS, ss-local, DIRECT
...

3. 使用 iPhone 的个人热点并以 USB 方式连接电脑, 会造成个人热点以规律的方式连接断开

系统偏好设置-网络-iPhone USB 中的 除非需要,否则请停用 勾去掉

4. 卸载

执行脚本 Reborn.app/Contents/Resources/Uninstall.sh 后,直接删除 Reborn.app 即可

更新记录

  • 0.5.60
    支持从文件中读取规则. 优化网络统计功能.
  • 0.5.53
    新增对 xchacha20-ietf-poly1305 算法的支持. Dashboard 窗口置顶.
  • 0.5.50
    修复配置冲突时的解析异常
  • 0.5.48
    实时网速不统计本地代理的流量
  • 0.5.47
    优化 Dashboard 显示的统计信息
  • 0.5.45
    支持查看 UDP 连接详情,优化性能并修复了一些 bug
  • 0.5.41
    现在会从系统读取 hosts 文件,修复解析配置bug
  • 0.5.4
    支持配置状态栏样式,修复解析配置bug
  • 0.5.31
    状态栏显示实时网速,Dashboard 支持流量统计、连接记录等功能

后续计划

  • simple-obfs
  • v2ray 等协议支持 ...

reborn's People

Contributors

langyanduan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.