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 over 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 #1

Updated by sebastian nielsen almost 10 years ago

Note. The bugtracker did add formatting to my code making it pretty unreadable. Updated code that shouldn't get changed by the bugtracker:

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";

Actions #2

Updated by Chris Buechler almost 10 years ago

  • Status changed from New to Resolved

thanks for the report. Fixed. I matched it on ovpn* rather than only a server interface.

Actions #3

Updated by Greg Toombs over 7 years ago

I filed #7821. Same messages, different version, possibly a different cause.

Actions

Also available in: Atom PDF