You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
531 B
Plaintext
27 lines
531 B
Plaintext
chnroutes-go
|
|
|
|
a tool to fetch china ip range from
|
|
APNIC(http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest)
|
|
|
|
usage
|
|
|
|
go get github.com/fangdingjun/chnroutes-go
|
|
|
|
$GOPATH/bin/chnroutes-go
|
|
|
|
|
|
after finished, there are 3 files generated
|
|
|
|
|
|
ipnet_cn.txt:
|
|
the ip range, per line look like this
|
|
192.168.1.0/24
|
|
|
|
routes_add.sh:
|
|
a shell script to help to add route on Linux
|
|
use `ip route -batch` command
|
|
|
|
routes_del.sh
|
|
a shell script to help to delete route add by routes_add.sh
|
|
|