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
557 B
Plaintext
27 lines
557 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 on current directory
|
|
|
|
|
|
ipnet_cn.txt:
|
|
the ip range file, 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
|
|
|