Project

General

Profile

Actions

Bug #6581

closed

Router Advertisement forces (possibly empty) interface subnet contrary to GUI text, can crash radavd on boot.

Added by Harry Coin over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Category:
DHCP (IPv6)
Target version:
Start date:
07/06/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

On the "Router Advertisements" page in the GUI we have:
RA Subnets: ... If no subnets are specified here, the Router Advertisement (RA) Daemon will advertise to the subnet to which the router's interface is assigned.

The clear message being if there are subnets specified in the list, the interface's subnets will not be plugged in by default.

However in the services.inc file, the array $dhcpv6ifconf['subnets']['item'] is not checked to determine whether it has any elements in it or not. So, the code creates a prefix <addr>/<bitmas> { }; radvd block using the interface v6 info no matter whether the RA Subnets array has or doesn't have any further requirements.

Indeed when the interface in question is an ovpncX, the code emits 'prefix / { ... };' crashing radvd upon boot even if an interface id is specified in the gui, since for a time it is resent to null/null depending on when in the vpn setup cycle the code happens to query the address.

I suggest either (my preference):

1: The text be changed to read: ' Only if there are no subnets specified here, the Router Advertisement (RA) Daemon automatically will advertise to the subnet to which the router's interface is assigned. ' Then add the test for a non empty specification array, and if non empty do NOT automatically add the interface subnet.

2: The text be changed to read: 'The Router Advertisement (RA) Daemon will advertise to the subnet to which the router's interface is assigned, and any further subnets specified here'.

2 is not my preference because is forces the advertisement of the subnet used in the interface whether that subnet is one the application needs advertised or not, and b: depending on the nature of the interface the address may be (correctly) invalid at the time the gui attempts to pull the address in to the radvd config.

Actions

Also available in: Atom PDF