如何使用正则表达式在直连规则中添加内网IP? #2558
Answered
by
SZODC
li-zheng-hao
asked this question in
Q&A
如何使用正则表达式在直连规则中添加内网IP?
#2558
-
|
Beta Was this translation helpful? Give feedback.
Answered by
SZODC
Sep 3, 2022
Replies: 1 comment 1 reply
-
172.10不属于内网IP, 所有并不包含在geoip:private里面。172网段只有172.16属于内网IP. geoip:private的包括范围可以参考 https://github.com/Loyalsoldier/geoip/blob/master/plugin/special/private.go. 你只要在上面IP设置那里设置整个网段,例如172.10.0.0/16, 就包括整个网段的IP不需要以后再次设置了。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
li-zheng-hao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
172.10不属于内网IP, 所有并不包含在geoip:private里面。172网段只有172.16属于内网IP. geoip:private的包括范围可以参考 https://github.com/Loyalsoldier/geoip/blob/master/plugin/special/private.go.
你只要在上面IP设置那里设置整个网段,例如172.10.0.0/16, 就包括整个网段的IP不需要以后再次设置了。