Skip to content

Instantly share code, notes, and snippets.

@ravageralpha
Created June 16, 2013 07:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravageralpha/5791260 to your computer and use it in GitHub Desktop.
Save ravageralpha/5791260 to your computer and use it in GitHub Desktop.
generate china ip zone using bestroutetb
#!/bin/sh
# more usable
./generate.sh ./chn.txt \
--net=CN \
--vpn=US,HK,TW,AU,NZ \
--nodefaultgw=1 \
--profile=custom \
--groupgw=1 \
--netgw=wan \
--vpngw=vpn \
--format="%gw%prefix/%length"
sed -e '/vpn.*/d' -e 's/wan//g' -i ./chn.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment