mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
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:
1 parent
cc025d7da5
commit
9ef01bb403
3 files changed
-6
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user