Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmyhuco/gfwlist2x
A tool convert gfwlist.txt to x
https://github.com/jimmyhuco/gfwlist2x
Last synced: 26 days ago
JSON representation
A tool convert gfwlist.txt to x
- Host: GitHub
- URL: https://github.com/jimmyhuco/gfwlist2x
- Owner: jimmyhuco
- License: bsd-3-clause
- Created: 2017-08-24T16:34:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-24T03:08:13.000Z (about 7 years ago)
- Last Synced: 2024-10-06T10:43:11.889Z (3 months ago)
- Language: Haskell
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A tool convert gfwlist.txt to x
## Current support converters:
* dnsmasq
### Install:
```shell
git clone https://github.com/jimmyhuco/gfwlist2x.git
cd gfwlist2x
stack setup
stack build
```Wait a moment.
You can add your own rules in file `.extraRules.gfw`.
### dnsmasq usage:
`stack exec gfwlist2x -- -d 8.8.8.8#53 -i gfwlist -p dnsmasq_list.conf`
It will generate `dnsmasq_list.conf` in your current directory.
BTW: public dns servers are not safe enough.
### NOTES:
I write it for learning Haskell. Although I can use simple regular expression, but I try to use `parsec` to write my gfwlist parser.
Of course, it's absolute free.