OPNsense Forum

English Forums => General Discussion => Topic started by: bartjsmit on February 17, 2016, 09:07:29 am

Title: [SOLVED] Making radvd.conf more RFC 7772 compliant
Post by: bartjsmit on February 17, 2016, 09:07:29 am
There has been some recent media coverage on IPv6 RA  frequency: http://www.theregister.co.uk/2016/02/16/ietf_rfc_7772/ (http://www.theregister.co.uk/2016/02/16/ietf_rfc_7772/) http://hardware.slashdot.org/story/16/02/16/1547239/ietfs-tips-for-network-admins-on-how-to-avoid-draining-smartphone-batteries (http://hardware.slashdot.org/story/16/02/16/1547239/ietfs-tips-for-network-admins-on-how-to-avoid-draining-smartphone-batteries)

I changed the minimum/maximum advertisements intervals in /var/etc/radvd.conf from 5 and 20 seconds to 225 and 300 seconds respectively. Unfortunately these values are reset to 5 and 20 when the RA daemon starts. This was confirmed by radvdump, which shows multicast every 15 seconds.

Is there a way to change this behaviour? If only because a lower frequency would benefit the environment.

Thanks,

Bart...
Title: Re: Making radvd.conf more RFC 7772 compliant
Post by: franco on February 17, 2016, 09:19:16 am
Hi Bart,

I'll read through the links you provided. If these numbers are sane defaults we can pick them up for 16.1.4 for everybody.

In the meantime you can edit /usr/local/etc/inc/services.inc to change to these values so they are not clobbered on restart:

https://github.com/opnsense/core/blob/master/src/etc/inc/services.inc#L310-L311

Note that these will be overwritten as soon as you upgrade the firmware (like 16.1.3 today).


Cheers,
Franco
Title: Re: [SOLVED] Making radvd.conf more RFC 7772 compliant
Post by: bartjsmit on February 17, 2016, 05:28:00 pm
Thanks Franco,

That worked a treat - Wireshark shows router advertisements about every ten minutes after the change to services.inc and a stop/start of radvd.

Great to have a little bit more battery life out of the mobile devices  :)

Bart...