convert gfwlist and a ad block list to dnsmasq's config file
-
python list2dnsmasq.py
-
/ ├── myblocklist.txt // block list, domains ├── mygfwlist.txt // user's gfwlist, same rule as gfwlist ├── ignore.txt // IP or domain will be removed from all list below │ ├── forward_ip_list // config file for openwrt-shadowsocks Forward List ├── gfwlist.conf // dnsmasq config file, domains will be redirected you proxy ├── whitelist.conf // dnsmasq config file, domains will be directed to their server └── blocklist.conf // dnsmasq config file, DNS request will be redirected to 127.0.0.1:2 by default``` `gfwlist's` priority is higher than `whitelist's`
-
see also: https://github.com/shadowsocks/luci-app-shadowsocks/wiki/GfwList-Support
-
Thanks to: