Giter VIP home page Giter VIP logo

gfwrules's Introduction

GFW Rules

Surge / Clash 分流规则配置文件生成工具。

有两个版本:

  1. 大陆 IP 走直连,其余走代理。

    规则由 ipip.net china_ip_list 转换生成。

  2. GFWList

安装:

$ git clone https://github.com/dodowhat/gfwrules.git ~/.gfwrules
$ echo 'export PATH="$PATH:~/.gfwrules/bin"' >> ~/.bashrc
$ source ~/.bashrc

使用说明:

gfwrules.sh [选项] [文件名]

选项:
  -b [文件名]   生成配置文件,文件内容为服务器相关信息
                忽略文件名则生成示例配置文件
  -h, --help    显示帮助信息

文件内容示例:
server1 = https, server1.example.com, 443, username1, password1
server2 = https, server2.example.com, 443, username2, password2

示例下载 (把里面的服务器配置改成自己的就可以使用了,不定期更新):

Manual:

Usage: gfwrules.sh [OPTIONS] [FILE]

Building config files for Surge and Clash with specific rules and servers.
There are two versions of the configs:
  1. Bypass China IP
  2. GFWList

OPTIONS:
  -b [FILE]     build config files with your specific servers
                omitting [FILE] will build with example servers
  -h, --help    display this help and exit

[FILE] content example:
server1 = https, server1.example.com, 443, username1, password1
server2 = https, server2.example.com, 443, username2, password2

gfwrules's People

Contributors

qweqaz1234 avatar example123 avatar

Stargazers

 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.