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

interfaces: VIPs sometimes reorder, taking higher priority as "real" interfaces IPs #2189

Closed
gizahNL opened this issue Feb 11, 2018 · 9 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@gizahNL
Copy link

gizahNL commented Feb 11, 2018

Perhaps it was the order in which things have been configured on my machine but I ran into a bug where the interface displays one subnet while in reality another is being stored into config.
I took the following steps:
->configure public IPv6 adress on interface
->enable RA
->create virtual IP for interface with ULA adress
->try to enable DHCPv6 for interface, see that it defaults to public subnet and allows no choice for ULA subnet (perhaps in this step enable and leave enabled DHCPv6 server)
->switch public and ULA adresses (ULA becomes interface adress, public one becomes virtual adress)
-> enable DHCPv6 server
-> configure ULA range and get confronted with message that range is outside of subnet, while it is displayed above as available range.

I've commented out the subnet checking bits to see what was happening, and I noticed that instead of my private subnet being written to file my public one was being written to file. So for some reason the public subnet overrides everywhere but in the interface.

Repeatedly fidling switching and deleting interfaces has allowed me to get a correct config written out, however I'm now unsure whether it will remain there after reboots.

@marjohn56
Copy link
Member

@gizahNL

I have created a static global address on my LAN, then created a virtual interface ( VLAN ), on that VLAN I created a ULA address and dhcp6 server using the range as posted in your forum message, It's all working perfectly, I cannot reproduce your issue, perhaps someone else can?

image

@gizahNL
Copy link
Author

gizahNL commented Feb 13, 2018

@marjohn56 the issue is not with VLAN afaik but with virtual IP (the OPNSense lingua for FreeBSD alias, Firewall->Virtual IP's), which allows multiple IP adresses to be configured on the same device.
My guess would be that by setting a ipv6 adress on the device, going to the dhcpv6 server and enabling it it stores already that subnet in a config.
Then I guess changing the main interface subnet to a different one, but at the same time configuring configuring the old subnet on a virtual ip and then modifying the dhcpv6 settings will not result in the stored subnet getting changed, as it is still associated with the device.
While at the same time the dhcpv6 configuration page pulls it's info from the configured main subnet.

Hope it all makes sense ;)

@fichtner fichtner added the support Community support label May 3, 2018
@fichtner
Copy link
Member

@gizahNL still an issue?

@draggeta
Copy link

@fichtner I'm having this issue as well. I've posted it on the pfSense issue tracker as well. Hopefully you guys can take a better look at it then they do.

Basically the current workaround seems to be this:

  • change the order of the IP's on the interfaces so the ULA is below the tracked IP
  • update the radvd.conf file
  • restart radvd

As I said in their issue tracker, I don't really know how to do step 2 from the CLI. It seems to have to do wit the services.inc file and the first function.

@fichtner
Copy link
Member

fichtner commented Sep 4, 2018

@draggeta The IPv6 side of things has given us trouble in that area before, the sense of a "primary" address on the interface is already trashed by the concept of link-local addresses, but that's a bit of a side story. Since dhcp6 kicks in later we get an address too late and the alias is already pushed to the interface... the only solution that seems doable is make IPv6 aliases "second class" addresses and flush + reapply them on new IPv6 address delegations. How does that sound?

@draggeta
Copy link

draggeta commented Sep 5, 2018

@fichtner That is a completely reasonable implementation. In those cases you may notice a small hiccup when using the ULAs for communication, but it's better miles better than having the connection to the internet be unavailable after a reboot/PD change.

I'll be happy to help with this issue, but I'm not sure I could contribute code directly.

@fichtner
Copy link
Member

fichtner commented Sep 6, 2018

@draggeta no worries. Testing is appreciated as well... hopefully can look at it next week in more detail.

@fichtner fichtner added feature Adding new functionality and removed support Community support labels Sep 22, 2018
@fichtner fichtner self-assigned this Sep 22, 2018
@fichtner fichtner added this to the 19.1 milestone Sep 22, 2018
@fichtner fichtner changed the title DHCPv6 Server: Virtual IP sometimes overrides ipv6 adress and subnet interfaces: VIPs sometimes reorder, taking higher priority as real interfaces IPs Oct 24, 2018
@fichtner fichtner added bug Production bug and removed feature Adding new functionality labels Oct 24, 2018
@fichtner fichtner changed the title interfaces: VIPs sometimes reorder, taking higher priority as real interfaces IPs interfaces: VIPs sometimes reorder, taking higher priority as "real" interfaces IPs Oct 24, 2018
@perryflynn
Copy link

The problem I described in #2821 ist gone since 18.7.6. All service bind since then on the primary interface address.

@fichtner fichtner modified the milestones: 19.1, 19.7 Dec 30, 2018
@fichtner
Copy link
Member

I'm unable to see an issue at the moment. No new data since Dec 2018.

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

No branches or pull requests

5 participants