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

Support ::1/::FF for ip_cidr and source_ip_cidr? #2204

Closed
4 of 5 tasks
blip opened this issue Oct 20, 2024 · 2 comments · May be fixed by #2209
Closed
4 of 5 tasks

Support ::1/::FF for ip_cidr and source_ip_cidr? #2204

blip opened this issue Oct 20, 2024 · 2 comments · May be fixed by #2209

Comments

@blip
Copy link

blip commented Oct 20, 2024

Operating system

Linux

System version

5

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

Version

No response

Description

When matching an IPv6 address, OpenWRT supports syntax like ::1/::ff, which matches the interface id part only. This is not only useful but imperative for networks where PD is dynamic (e.g., most home users), so you don't have a stable LAN IPv6.

Reproduction

N/A

Logs

No response

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@dyhkwong
Copy link
Contributor

Golang net/netip does not allow this.

@dyhkwong dyhkwong closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
@blip
Copy link
Author

blip commented Oct 21, 2024

You can directly AND the two IPs’ byte slices. I can send a PR if you welcome this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants