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

IPv6 subnet format not accepted #103

Open
kroese opened this issue Jul 4, 2023 · 1 comment
Open

IPv6 subnet format not accepted #103

kroese opened this issue Jul 4, 2023 · 1 comment

Comments

@kroese
Copy link

kroese commented Jul 4, 2023

Describe the issue

When I want to allow any IPv6 address I use:

environment:
      - "SMTP_NETWORKS=0.0.0.0/0,[::]/0"

Expected behavior

I expect this to be correct, I also tried it as ::/0 but in both cases I get:

[::]/0 is not in proper IPv4 or IPv6 subnet format. Ignoring.

Other subnets that do not work:

[fe80::]/10 is not in proper IPv4 or IPv6 subnet format. Ignoring.
[fd87::]/10 is not in proper IPv4 or IPv6 subnet format. Ignoring.
[::1]/128 is not in proper IPv4 or IPv6 subnet format. Ignoring.

This has something to do with the regex being performed. Is there any workaround or can this bug be solved?

@Meneldor
Copy link

I've done some testing with regexp101, you should set your IPv6 addresses without [ ].
Short version does not work for :: or ::1, but the long format does.
0000.0000.0000.0000.0000.0000.0000.0000/0 is a match.

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

No branches or pull requests

2 participants