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

radvd exits on too many addresses in RDNSS section #182

Open
wcbonner opened this issue Aug 6, 2022 · 12 comments
Open

radvd exits on too many addresses in RDNSS section #182

wcbonner opened this issue Aug 6, 2022 · 12 comments

Comments

@wcbonner
Copy link

wcbonner commented Aug 6, 2022

radvd exits silently when there are too many addresses in the RDNSS section. This is being used in ddwrt, which builds the radvd.conf file based on advertisments it gets from my upstream router and adds the DNS records I specify to what comes from upstream.

It would be nice if radvd either accepts an unlimited number of RDNSS entries or ignores any that are more than it deals with.

DD-WRT v3.0-r49626 std (c) 2022 NewMedia-NET GmbH
Release: 08/03/22
Board: Netgear R7000

root@Netgear-R7000:~# cat /tmp/radvd.conf
interface br0
{
 IgnoreIfMissing on;
 AdvSendAdvert on;
 MinRtrAdvInterval 3;
 MaxRtrAdvInterval 10;
 AdvHomeAgentFlag off;
 AdvManagedFlag off;
 AdvOtherConfigFlag on;
 AdvLinkMTU 1452;
 prefix 2604:4080:1304:8010::/64
 {
  AdvOnLink on;
  AdvAutonomous on;
  AdvValidLifetime 30;
  AdvPreferredLifetime 20;
 };
 RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 2607:f060:2::1 2607:f060:2:1::1{};
};

root@Netgear-R7000:~# radvd --debug=5 -C /tmp/radvd.conf
[Aug 05 08:00:06] radvd (19543): too many addresses in RDNSS section
[Aug 05 08:00:06] radvd (19543): exiting, failed to read config file
root@Netgear-R7000:~# radvd --version
Version: 2.19

Compiled in settings:
  default config file           "/etc/radvd.conf"
  default pidfile               "/var/run/radvd.pid"
  default logfile               "/var/log/radvd.log"
  default syslog facility       24
Please send bug reports or suggestions to Reuben Hawkins <[email protected]>.
@the-j0k3r
Copy link

@BrainSlayer

@robbat2
Copy link
Member

robbat2 commented Sep 6, 2022

Patch welcome to change rdnss->AdvRDNSSAddr[123] into an array or linked list instead of three addresses only.

The three addresses comes from earlier RFCs that have been superseded now.

@WenChao1Hou
Copy link

WenChao1Hou commented Oct 30, 2022

@robbat2
RFC 6106 recommended that the number of RDNSS addresses thatshould be learned and maintained through the RDNSS RA option should be limited to three. RFC 8106 removes that recommendation

The current number of radvd RDNSS ipv6 addresses is limited to 3

This MR(#193 ) fix it

@the-j0k3r
Copy link

@wcbonner just a heads up https://svn.dd-wrt.com/changeset/50755 on a revert related to your report.

Im sure when there is a proper solution here things will change downstream. Sadly cannot contribute here for that myself.

@BrainSlayer
Copy link
Contributor

@the-j0k3r i had to revert it. the patch was broken and not compilable

@Neustradamus
Copy link
Member

@the-j0k3r, @BrainSlayer: @wcbonner has updated the PR.

Please comment on the PR...

@the-j0k3r
Copy link

@wcbonner patch is merged downstream, next public build please test.

@Neustradamus will have feedback once hes done that.

@wcbonner
Copy link
Author

wcbonner commented Nov 1, 2022

@wcbonner patch is merged downstream, next public build please test.

@Neustradamus will have feedback once hes done that.

@the-j0k3r I installed the build from 10/31/2022 yesterday. I'll look for another upgrade in the next day.

@the-j0k3r
Copy link

It will by post r50786 yesterday wont have it

@Mile-Lile
Copy link

@wcbonner
as a workaround you can use/advertise (RA) global address of the machine running radvd (wan ipv6 of the router)...

just copy your ipv6 from the ddwrt GUI and paste it to Static ipv6 dns on IPV6.asp... this will add RDNSS entries in radvd.conf
on Services.asp in Additional dnsmasq opstions add directives e.g.:

no-resolv bogus-priv strict-order server=2a07:a9b1:: server=45.90.30.0 server=2a07:a9b0:: server=45.90.28.0
and put as many servers as you want ipv4 or ipv6

@the-j0k3r
Copy link

@Mile-Lile use the dd-wrt topic on the issue to suggest workarounds in future.

@Mile-Lile
Copy link

Mile-Lile commented Nov 7, 2022

Previous text has was an insult.

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

No branches or pull requests

7 participants