-
Notifications
You must be signed in to change notification settings - Fork 159
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
rtsold: specific cases maybe not send signals to dhcp6c #215
Comments
Thanks for the ticket! Some initial digging in the manual page:
So the Now if this is a dead end the other possibility is to look into default router and SLAAC advertisements. If your ISP sends a router advertisement of zero lifetime rtsold could consider this an invitation to reset and try again? The information could be extracted from the kernel and handled separately but I have the feeling another daemon to do this wouldn't make much sense either. Cheers, |
I could try changing the -m option to confirm if there is an improvement, but I don't think it's a good idea to wait for a polling check.
I think it's possible.
This document suggests that broadcasting the prefix lifetime to 0 is a standard action, and upstream ISPs are likely to have done the same thing.
The manual for rtsold has the -O parameter written in it.
This parameter will handle the Other Configuration flag. |
Well, it is a workaround for "mobile" connections after all.
You're conflating SLAAC with DHCPv6 maybe because your ISP handles it this way. While you need SLAAC for DHCPv6 to work (DHCPv6 doesn't provide routers!) the two should operate independently from each other after a lease has been successfully acquired. Much of where this fails is when the ISP restarts their DHCP servers and leases are "lost" on the server side but still used by the client. Contrary to SLAAC/RA, DHCPv6 doesn't have a mechanism to revoke a valid lease. Fun stuff. :) That being said I still agree with you that a prefix deprecation should be considered a link event because of its impact on the overall connectivity. My best guess is that IPSs try to avoid zero lifetime advertisements in the average cases which would allow us to get away with a change in behaviour from rtsold, maybe coupled with a new option. The code to read the DHCP options presented by the router is already inside
The -A parameter supersedes this for convoluted reasons. Cheers, |
I don't have contact with ISPs in other countries, so I don't know if lifetime to 0 is a special operation, which may require more data reporting or experience. Please contact me if you need to do any testing.And thank you for your help. |
It's just a guess based on the fact that the SLAAC prefixes should be/could be rather static in the average case, but I'm willing to bet on it. I'll give this code a try and report back. Your packet captures are a great resource by the way. Thanks! :) Cheers, |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
When the ISP forcibly updates the IPV6 prefix,
rtsold
does not seem to notify dhcp6c to handle it.My ISP seems to force a new IPV6 prefix to be released every so often, and the ISP doesn't seem to be keeping to its time agreement with its customers.
When a new prefix is released, all machines on the LAN are disconnected. Normally, we would think that
rtsold
would send aSIGHUP
todhcp6c
, and thatdhcp6c
would receive the notification and resend a DHCPv6 request to update the prefix.However, this does not seem to be the case in my case. This eventually causes all devices to disconnect from the network for a period of time (about 10 minutes in my case).
The results and system logs of capturing packets when a problem is sent can be found in the: opnsense/dhcp6c#37 (comment) and opnsense/dhcp6c#37 (comment)
Since
rtsold
gives limited debug information, if there is a way to get more useful information please let me know and I will try to get more information.And if there are any other suggestions to help diagnose the problem, I'd be more than happy to try them.
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce
Waiting for ISPs to issue new IPV6 prefixes
Expected behavior
rtsold
should notifydhcp6c
within a few seconds so that the disconnection should only take a few seconds.Describe alternatives you considered
None.
Screenshots
None.
Relevant log files
None.
Additional context
Add any other context about the problem here.
Environment
OPNsense 24.7.1-amd64
Dell Optiplex 3070 MFF
Intel(R) Core(TM) i3-8100T CPU @ 3.10GHz (4 cores, 4 threads)
Network card:
Intel I210 (WAN)
Realtek NIC (LAN)
The text was updated successfully, but these errors were encountered: