diff options
author | jet tsang zeon-git <zeon-git@jettsang.com> | 2022-06-25 05:17:30 +0800 |
---|---|---|
committer | jet tsang zeon-git <zeon-git@jettsang.com> | 2022-06-25 05:17:30 +0800 |
commit | afa087396d1ee2ab267c8376ddedffa06277e5f1 (patch) | |
tree | 07c9656997486154c3cc13dcc509cd7cc5827afb | |
parent | remove any own world ip (diff) | |
download | network-toolchain-afa087396d1ee2ab267c8376ddedffa06277e5f1.tar.gz network-toolchain-afa087396d1ee2ab267c8376ddedffa06277e5f1.tar.bz2 network-toolchain-afa087396d1ee2ab267c8376ddedffa06277e5f1.zip |
fixed own world rules
Signed-off-by: jet tsang zeon-git <zeon-git@jettsang.com>
-rw-r--r-- | iplist/own_world_rules | 5 | ||||
-rw-r--r-- | iplist/world_rules | 2 | ||||
-rwxr-xr-x | src/lib.sh | 6 |
3 files changed, 10 insertions, 3 deletions
diff --git a/iplist/own_world_rules b/iplist/own_world_rules index 321180d..28bb167 100644 --- a/iplist/own_world_rules +++ b/iplist/own_world_rules @@ -568,7 +568,6 @@ 203.92.192.0/18 203.95.16.0/21 203.95.32.0/27 -203.118.252.0/14 203.205.96.0/27 203.207.0.0/18 208.113.0.0/16 @@ -764,7 +763,6 @@ 162.243.0.0/16 96.231.147.0/24 213.186.33.0/24 -203.104.128.0/21 63.64.0.0/10 80.239.0.0/16 207.200.64.0/17 @@ -863,7 +861,6 @@ 153.254.0.0/16 162.254.0.0/16 89.28.0.0/16 -203.64.0.0/24 203.64.0.0/16 184.168.0.0/16 13.32.0.0/13 @@ -1068,3 +1065,5 @@ 45.79.0.0/16 220.228.0.0/15 103.253.144.0/24 +103.240.182.0/24 +159.65.0.0/16 diff --git a/iplist/world_rules b/iplist/world_rules index cfac4e1..c8207bf 100644 --- a/iplist/world_rules +++ b/iplist/world_rules @@ -227,6 +227,7 @@ 103.36.0.0/14 103.102.0.0/16 103.224.0.0/12 +103.240.182.0/24 103.245.0.0/16 103.248.0.0/14 103.252.192.0/21 @@ -555,6 +556,7 @@ 157.240.0.0/16 158.69.0.0/16 158.130.0.0/16 +159.65.0.0/16 159.106.0.0/16 159.153.0.0/16 159.253.0.0/16 @@ -252,6 +252,12 @@ function nt::add_v6_world_rule(){ ip -6 route add $1 via $2 dev $3 } +function nt::build_world_rule(){ + cat $IPLISTPATH/own_world_rules $IPLISTPATH/world_rules | cidr-merger --batch --cidr > $IPLISTPATH/_world_rules + rm $IPLISTPATH/world_rules + mv $IPLISTPATH/_world_rules $IPLISTPATH/world_rules +} + function nt::install_cider_merger(){ go get github.com/zhanhb/cidr-merger } |