Git Product home page Git Product logo

freedom-routes's Introduction

支持平台: Linux, Mac OS X, Windows, OpenWRT, DD-WRT, ASUSWRT

生成一个可以运行的脚本, 当VPN运行的时候, 自动添加国内的IP地址到系统路由表, 用直接连接方式访问国内的网站, 用VPN方式访问国外的网站, 从而提升网页浏览速度. (例如: 使用前ping baidu.com是300ms延迟, 使用后可以减少到30ms)

项目一览

命令行: Go版本 - 本项目, Python版本

图形化应用程序: Windows

对chnroutes的改进

  1. Linux下导入路由的速度更快, 秒时间导入
  2. 支持模板, 可以自定义脚本

网络版本

下载

每24小时更新一次.

使用方法

这些ip地址库并不是固定不变的, 尽管变化不大, 但还是建议每隔两三个月更新一次.

手动运行

启用
# ./routes-up.sh

停用
# ./routes-down.sh

Windows需要右键routes-up.bat -> 已管理员身份运行. 并且导入需要好几分钟, 请耐心等待, 有哪位大神知道有更好的方法的话, 求指教.

OpenVPN

# cp them to /etc/openvpn
# edit /etc/openvpn/hello.conf

  script-security 2
  up ./routes-up.sh
  down ./routes-down.sh

PPTP

cp routes-up.sh /etc/ppp/ip-pre-up
cp routes-down.sh /etc/ppp/ip-down.d/ip-down

本地版本

查看本地版本使用说明

开发

任何人都可以帮助这个项目

  • 请保持低调, 不要推广本项目, 自己用的好就可以了, 不要点击右上角的star按钮
  • 提交Bug/建议
  • 帮助作者提高文档
  • 欢迎其他开发者Fork和发送Pull-Request
  • 欢迎其他开发者申请Collaborator权限

感谢所有贡献者.
感谢原来的chnroutes作者.

编译

$ mkdir output
$ sed -i '/const ASSETS_MODE/s/.*/const ASSETS_MODE = "runtime"/' routes/routes.go
$ go build -o output/freedom-routes
$ cp -r routes/templates output

freedom-routes's People

Contributors

sabersalv avatar layerssss avatar aterbion avatar

Watchers

James Cloos avatar Lios 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.