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 Prefix ID under LAN Track Interface #2622

Closed
darkain opened this issue Aug 10, 2018 · 9 comments
Closed

IPv6 Prefix ID under LAN Track Interface #2622

darkain opened this issue Aug 10, 2018 · 9 comments
Assignees
Labels
cleanup Low impact changes
Milestone

Comments

@darkain
Copy link

darkain commented Aug 10, 2018

The UI has the following text:

The value in this field is the (Delegated) IPv6 prefix id. This determines the configurable network ID based on the dynamic IPv6 connection
Enter a hexadecimal value between 0 and 0 here, default value is 0.

First, the valid range is much larger than just 0 to 0. Secondly, at least on my setup and someone else who contacted me for help, 0 isn't even a valid value (in both of our cases, we're running CenturyLink 6RD). Prefix 0 is used on the WAN side, and LAN needs a value of 1 or larger to function properly.

image

@fichtner
Copy link
Member

That's only partly true, you don't have to pull a prefix on WAN so you're free to use all of the prefixes in a /64 which is 1 which is ID 0. Question is why does it think your WAN is /64? What did you set there?

@fichtner fichtner added the support Community support label Aug 10, 2018
@darkain
Copy link
Author

darkain commented Aug 10, 2018

For whatever reason, setting the Prefix ID to 0 doesn't function with my 6RD configuration. Setting it to any other value within the accepted range works just fine. Also, the UI states that only 0 is the accepted range value, when in fact it is much larger (my ISP provides me a /56)

Re-thinking about it now, yes, ID 0 SHOULD work, but for whatever reason isn't with OPNsense. This could be a bug with the new 6RD code.

@thomasjsn
Copy link
Contributor

I have /62, and the Prefix ID correctly show allowed values from 0 to 3, but as @darkain the 6rd stops workings completely if 0 is used for any interface.

@darkain
Copy link
Author

darkain commented Aug 15, 2018

For the UI displaying "0 to 0", AFTER saving the config, it then shows properly. The reason:

calculate_ipv6_delegation_length($pconfig['track6-interface'])

$pconfig['track6-interface'] is an empty string until after the configuration is saved, so calculate_ipv6_delegation_length() returns 0 the first time the UI is loaded.

This, however, still doesn't address the issue of prefix 0 not even functioning properly though.

@fichtner
Copy link
Member

Tracking this via
#2663

@darkain
Copy link
Author

darkain commented Aug 24, 2018

There is still the secondary issue here of the UI showing the wrong information. I think this issue should be re-opened and focused on that instead, while the routing issue is handled on the other ticket.

@fichtner
Copy link
Member

fichtner commented Aug 25, 2018 via email

@darkain
Copy link
Author

darkain commented Aug 25, 2018

Why couldn't you just set it up to do something like "if empty string, assume 'WAN'" for that particular field? Seems like a super quick/simple fix to me.

@fichtner
Copy link
Member

fichtner commented Aug 25, 2018 via email

@fichtner fichtner reopened this Aug 26, 2018
@fichtner fichtner self-assigned this Aug 26, 2018
@fichtner fichtner added cleanup Low impact changes and removed support Community support labels Aug 26, 2018
@fichtner fichtner added this to the 19.1 milestone Aug 26, 2018
fichtner added a commit that referenced this issue Sep 4, 2018
We still have the validation on save which is correct.  While
here improve the help text.

(cherry picked from commit 91ecc98)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Low impact changes
Development

No branches or pull requests

3 participants