fix: removed the ipv4 mapping ip from the ipv6 list to prevent 0.0.0.0/0 when parsing CIDR

This commit is contained in:
mzz2017 committed 2021-08-14 21:51:28 +08:00
1 parent cc025d7da5
commit 9ef01bb403
3 files changed
-6

No files matched your search

-2
View File
@@ -28,8 +28,6 @@ var jokernet4 = []string{
var intranet6 = []string{
"::/128",
"::1/128",
"::ffff:0:0/96",
"::ffff:0:0:0/96",
"64:ff9b::/96",
"100::/64",
"2001::/32",
-2
View File
@@ -61,8 +61,6 @@ ip6tables -t nat -N V2RAY
ip6tables -w 2 -t nat -A V2RAY -p tcp -m multiport --sports {{TCP_PORTS}} -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d ::/128 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d ::1/128 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d ::ffff:0:0/96 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d ::ffff:0:0:0/96 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d 64:ff9b::/96 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d 100::/64 -j RETURN
ip6tables -w 2 -t nat -A V2RAY -d 2001::/32 -j RETURN
-2
View File
@@ -116,8 +116,6 @@ ip6tables -w 2 -t mangle -A SETMARK -p tcp --dport 53 ! -d ::1/128 -j MARK --set
# 注意,如果要调整位置,记得调整func AddIPWhitelist的插入位置
ip6tables -w 2 -t mangle -A SETMARK -d ::/128 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d ::1/128 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d ::ffff:0:0/96 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d ::ffff:0:0:0/96 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d 64:ff9b::/96 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d 100::/64 -j RETURN
ip6tables -w 2 -t mangle -A SETMARK -d 2001::/32 -j RETURN