Bug #4455
closedRouter Advertisment Daemon does not add UnicastOnly for OpenVPN interfaces
0%
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
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";
Updated by Chris Buechler over 9 years ago
- Status changed from New to Resolved
thanks for the report. Fixed. I matched it on ovpn* rather than only a server interface.
Updated by Greg Toombs about 7 years ago
I filed #7821. Same messages, different version, possibly a different cause.