Giter Site home page Giter Site logo

asus_fq's Introduction

Asus-Merlin路由器科学上网设置生成工具

Introduction

  • 本工具主要用于基于梅林固件的华硕路由器的科学上网配置,主要是生成dnsmasq的DNS配置和shadowsocks的iptables配置。dnsmasq的DNS配置用于防止DNS污染,shadowsocks的iptables配置用于根据目标IP地址,分流国内和国外的路由。
  • 配置中需要的域名信息来自于googlehosts/hosts,在此感谢。

Pre-condition

路由器端

  • dnscrypt-proxy: 为dnsmasq提供无污染的DNS查询。其对应服务器可以使用现有的,也可以在VPS上配置dnscrypt-wrapper来提供服务。
  • ss-redir: 为路由器下属的局域网提供透明代理,由iptables的规则表决定哪些IP地址使用该透明代理。
  • dig: 虽然本工具内的nat-start.basic已经内置了google, facebook等主要网站的iptables配置列表,但是对于一些域名地址,仍然需要通过dig来获取IP地址,然后生成iptables配置。

Configuration

  • dns.server: 用于设置dig查询域名的DNS服务器。
  • ips.filter: 用于设置不需要走透明代理的IP地址。

Usage

./net_utils.sh

asus_fq's People

Contributors

zjuerkzhang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.