Revision 31afa084
Added by Chris Buechler over 10 years ago
etc/inc/unbound.inc | ||
---|---|---|
592 | 592 |
foreach($active_interfaces as $ubif => $ifdesc) { |
593 | 593 |
$ifip = get_interface_ip($ubif); |
594 | 594 |
if (is_ipaddrv4($ifip)) { |
595 |
$subnet_bits = get_interface_subnet($ubif); |
|
596 |
$subnet_ip = gen_subnet($ifip, $subnet_bits); |
|
597 |
$aclcfg .= "access-control: {$subnet_ip}/{$subnet_bits} allow\n"; |
|
595 |
// IPv4 is handled via NAT networks below |
|
596 |
continue; |
|
598 | 597 |
} |
599 | 598 |
$ifip = get_interface_ipv6($ubif); |
600 | 599 |
if (is_ipaddrv6($ifip)) { |
Also available in: Unified diff
Skip interface subnets for IPv4 here, this is best handled via the NAT networks list. Ticket #4023