Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于是否将 100.64.0.0/10 用于私有地址 #1318

Closed
2 tasks done
soxft opened this issue Nov 12, 2024 · 2 comments
Closed
2 tasks done

关于是否将 100.64.0.0/10 用于私有地址 #1318

soxft opened this issue Nov 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@soxft
Copy link

soxft commented Nov 12, 2024

Description

100.64.0.0/10 虽不属于 ABC类私有地址,但也在部分场景被用作私网地址,如 tailscale 分配的组网设备IP
100.64.0.0/10 并未在公网上路由,在部分场景下也用于内部通信

目前在

ddns-go/util/net.go

Lines 25 to 28 in 52f0e67

if ip := net.ParseIP(remoteAddr); ip != nil {
return ip.IsLoopback() || // 127/8, ::1
ip.IsPrivate() || // 10/8, 172.16/12, 192.168/16, fc00::/7
ip.IsLinkLocalUnicast() // 169.254/16, fe80::/10

"100.0.0.1": false,

似乎将 100.64.0.0/10 判断为 非内网地址

Problem

在 tailscale 下,通过 该网段无法访问,httpcode 403

Other Description

也许是否可以考虑提供一个配置文件,供用户设置允许或禁止的ip段

Checklist

  • I am using the latest version and have confirmed that the feature is not yet implemented in the latest version
  • I have searched for similar feature requests before submitting this one
@soxft soxft added the enhancement New feature or request label Nov 12, 2024
@jeessy2
Copy link
Owner

jeessy2 commented Nov 12, 2024

#1256
增加一个配置,感觉更加复杂了。
Tailscale 支持Subnet,这个更加方便,就可以通过你实际的内网ip访问

@soxft
Copy link
Author

soxft commented Nov 12, 2024

#1256 增加一个配置,感觉更加复杂了。 Tailscale 支持Subnet,这个更加方便,就可以通过你实际的内网ip访问

感谢回复,我研究一下 subnet 配置

@soxft soxft closed this as completed Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants