OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • [SOLVED] Making radvd.conf more RFC 7772 compliant
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Making radvd.conf more RFC 7772 compliant  (Read 4920 times)

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
[SOLVED] Making radvd.conf more RFC 7772 compliant
« 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://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...
« Last Edit: February 17, 2016, 07:10:06 pm by bartjsmit »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: Making radvd.conf more RFC 7772 compliant
« Reply #1 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
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: [SOLVED] Making radvd.conf more RFC 7772 compliant
« Reply #2 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...
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • [SOLVED] Making radvd.conf more RFC 7772 compliant
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2