Project

General

Profile

Bug #4455

Router Advertisment Daemon does not add UnicastOnly for OpenVPN interfaces

Added by sebastian nielsen over 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP6
Target version:
Start date:
02/21/2015
Due date:
% Done:

0%

Estimated time:
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

Associated revisions

Revision e03b6bbc (diff)
Added by Chris Buechler about 4 years ago

Enable UnicastOnly in radvd for ovpn* interfaces. Ticket #4455

Revision 227e2146 (diff)
Added by Chris Buechler about 4 years ago

Enable UnicastOnly in radvd for ovpn* interfaces. Ticket #4455

History

#1 Updated by sebastian nielsen over 4 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";

#2 Updated by Chris Buechler about 4 years ago

  • Status changed from New to Resolved

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

#3 Updated by Greg Toombs over 1 year ago

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

Also available in: Atom PDF