Projet

Général

Profil

« Précédent | Suivant » 

Révision 31377265

Ajouté par Jean Cyr il y a plus de 9 ans

Support IPV6 in unbound.conf

IPv6 addresses are not included in unbound config and access list

Voir les différences:

etc/inc/unbound.inc
132 132
            $intip = get_interface_ip($ubif);
133 133
            if (!is_null($intip))
134 134
                $bindints .= "interface: $intip\n";
135
            $intip = get_interface_ipv6($ubif);
136
            if (!is_null($intip))
137
                $bindints .= "interface: $intip\n";
135 138
        }
136 139
    } else {
137 140
        $bindints .= "interface: 0.0.0.0\n";
......
147 150
            $outip = get_interface_ip($outif);
148 151
            if (!is_null($outip))
149 152
                $outgoingints .= "outgoing-interface: $outip\n";
153
            $outip = get_interface_ipv6($outif);
154
            if (!is_null($outip))
155
                $outgoingints .= "outgoing-interface: $outip\n";
150 156
        }
151 157
    }
152 158

  
......
643 649
            $subnet_ip = gen_subnet($ifip, $subnet_bits);
644 650
            $aclcfg .= "access-control: {$subnet_ip}/{$subnet_bits} allow\n";
645 651
        }
652
        $ifip = get_interface_ipv6($ubif);
653
        if (!is_null($ifip)) {
654
            $subnet_bits = get_interface_subnetv6($ubif);
655
            $subnet_ip = gen_subnetv6($ifip, $subnet_bits);
656
            $aclcfg .= "access-control: {$subnet_ip}/{$subnet_bits} allow\n";
657
        }
646 658
    }
647 659

  
648 660
    // Configure the custom ACLs

Formats disponibles : Unified diff