Project

General

Profile

Actions

Bug #4455

closed

Router Advertisment Daemon does not add UnicastOnly for OpenVPN interfaces

Added by sebastian nielsen almost 10 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv6)
Target version:
Start date:
02/21/2015
Due date:
% Done:

0%

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

Description

Found out when enabling RADVD on ovpns1 (a tun virtual interface), that the configuration page does not add UnicastOnly on; to the radvd.conf, resulting in nonworking IPv6 and log spam like this:
radvd: interface ovpns1 does not support broadcast
radvd: do you need to add the UnicastOnly flag?
radvd: interface ovpns1 does not support broadcast
radvd: do you need to add the UnicastOnly flag?
radvd: interface ovpns1 does not support broadcast
radvd: do you need to add the UnicastOnly flag?

Fix:
Add:
if (strstr($realif, "ovpns")) {
$radvdconf .= "\tUnicastOnly on;\n";
}

right after:
$ifcfgipv6 = get_interface_ipv6($dhcpv6if);
if (!is_ipaddrv6($ifcfgipv6))
continue;

$ifcfgsnv6 = get_interface_subnetv6($dhcpv6if);
$subnetv6 = gen_subnetv6($ifcfgipv6, $ifcfgsnv6);
$radvdifs[$realif] = $realif;
$radvdconf .= "# Generated for DHCPv6 Server $dhcpv6if\n";
$radvdconf .= "interface {$realif} {\n";

in /etc/inc/services.inc

Actions

Also available in: Atom PDF