All Projects → cokebar → Gfwlist2dnsmasq

cokebar / Gfwlist2dnsmasq

Licence: gpl-3.0
A shell script which convert gfwlist into dnsmasq rules. Python version: https://github.com/cokebar/gfwlist2dnsmasq_python

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Gfwlist2dnsmasq

G2w.online
域名已被DNS污染,水表已拆
Stars: ✭ 49 (-93.59%)
Mutual labels:  dnsmasq, gfwlist
Clash Rules
🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 客户端。
Stars: ✭ 706 (-7.71%)
Mutual labels:  dnsmasq, gfwlist
Surge Rules
🦄 🎃 👻 Surge 规则集(DOMAIN-SET 和 RULE-SET),兼容 Surge for iOS 和 Surge for Mac 客户端。
Stars: ✭ 151 (-80.26%)
Mutual labels:  dnsmasq, gfwlist
V2ray Rules Dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf.
Stars: ✭ 6,550 (+756.21%)
Mutual labels:  dnsmasq, gfwlist
Genpac
PAC/Dnsmasq/Wingy file Generator, working with gfwlist, support custom rules.
Stars: ✭ 2,088 (+172.94%)
Mutual labels:  dnsmasq, gfwlist
Gfwlist2dnsmasq python
Just another python script to auto-generate dnsmasq ipset rules using gfwlist. Shell script version: https://github.com/cokebar/gfwlist2dnsmasq
Stars: ✭ 290 (-62.09%)
Mutual labels:  dnsmasq, gfwlist
Raspap Webgui
Simple wireless AP setup & management for Debian-based devices
Stars: ✭ 3,383 (+342.22%)
Mutual labels:  dnsmasq
Conf For Surge Shadowrocket
Surge Shadowrocket conf
Stars: ✭ 405 (-47.06%)
Mutual labels:  gfwlist
Roguesploit
Powerfull Wi-Fi trap!
Stars: ✭ 262 (-65.75%)
Mutual labels:  dnsmasq
openwrt-dnsmasq-extra
Anti Pollution/ADs DNS for OpenWrt/LEDE
Stars: ✭ 34 (-95.56%)
Mutual labels:  gfwlist
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (-5.36%)
Mutual labels:  dnsmasq
Dnsmasq sniproxy install
One-click Install and Configure Dnsmasq and Sniproxy for CentOS/Debian/Ubuntu
Stars: ✭ 515 (-32.68%)
Mutual labels:  dnsmasq
Asuswrt Merlin Transparent Proxy
transparent proxy base on ss, v2ray, ipset, iptables, chinadns on asuswrt merlin.
Stars: ✭ 367 (-52.03%)
Mutual labels:  dnsmasq
Netflix Proxy
Smart DNS proxy to watch Netflix
Stars: ✭ 3,220 (+320.92%)
Mutual labels:  dnsmasq
Chinadns Ng
chinadns next generation, refactoring with epoll and ipset
Stars: ✭ 407 (-46.8%)
Mutual labels:  gfwlist
Gfwlist2privoxy
将 gfwlist.txt(Adblock Plus 规则)转换为 privoxy.action
Stars: ✭ 279 (-63.53%)
Mutual labels:  gfwlist
Hosts
已停更
Stars: ✭ 667 (-12.81%)
Mutual labels:  dnsmasq
pi-ap
Raspberry Pi Access Point: This repo automates the configuration of hostapd, dnsmasq, dhcpcd & wpa_supplicant to transform a Pi into a wireless AP. Requirements: a Pi, an Ethernet cable and a DHCP-enabled port on a router with a 'net connection or a switch connected to this router.
Stars: ✭ 69 (-90.98%)
Mutual labels:  dnsmasq
Stacker
Stacker - The environment for local web development, ready for use.
Stars: ✭ 356 (-53.46%)
Mutual labels:  dnsmasq
Blacklist
Blacklist and Adware Blocking for the Ubiquiti EdgeMax Router
Stars: ✭ 393 (-48.63%)
Mutual labels:  dnsmasq

gfwlist2dnsmasq

A shell script which convert gfwlist into dnsmasq rules.

Working on both Linux-based (Debian/Ubuntu/Cent OS/OpenWrt/LEDE/Cygwin/Bash on Windows/etc.) and BSD-based (FreeBSD/Mac OS X/etc.) system.

This script needs sed, base64, curl(orwget). You should have these binaries on you system.

Usage

sh gfwlist2dnsmasq.sh [options] -o FILE
Valid options are:
    -d, --dns <dns_ip>
                DNS IP address for the GfwList Domains (Default: 127.0.0.1)
    -p, --port <dns_port>
                DNS Port for the GfwList Domains (Default: 5353)
    -s, --ipset <ipset_name>
                Ipset name for the GfwList domains
                (If not given, ipset rules will not be generated.)
    -o, --output <FILE>
                /path/to/output_filename
    -i, --insecure
                Force bypass certificate validation (insecure)
    -l, --domain-list
                Convert Gfwlist into domain list instead of dnsmasq rules
                (If this option is set, DNS IP/Port & ipset are not needed)
        --exclude-domain-file <FILE>
                Delete specific domains in the result from a domain list text file
                Please put one domain per line
        --extra-domain-file <FILE>
                Include extra domains to the result from a domain list text file
                This file will be processed after the exclude-domain-file
                Please put one domain per line
    -h, --help  Usage

OpenWRT Usage

( For LEDE 17.01/ OpenWrt 18.06 and later)

To download gfwlist curl or wget is needed. Because the connection is HTTPS, if you use busybox wget, you need to install libustream-openssl or libustream-mbedtls to support it, otherwise use GNU wget.

Because gfwlist is encoded by BASE64, base64 is needed to decode.

# curl
opkg update
opkg install curl coreutils-base64
# busybox wget (default by OpenWrt)
opkg update
opkg install libustream-mbedtls coreutils-base64
# GNU wget
opkg update
opkg install wget coreutils-base64

For security reason, this script won't bypass HTTPS certificate validation. So you should install ca-certificates and ca-bundle in addition.

opkg update
opkg install ca-certificates ca-bundle

If you really want to bypass the certificate validation, use '-i' or '--insecure' option. You should know this is insecure.

Generated Configuration Files Build Status

If you don't want to generate dnsmasq configuration file by yourself, you can directly download them:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].