Skip to content

ACL

AclBlock pydantic-model

Bases: BindBaseModel

ACL block for BIND configuration.

The acl statement assigns a symbolic name to an address match list. It gets its name from one of the primary uses of address match lists: Access Control Lists (ACLs).

The following ACLs are built-in: - any: Matches all hosts. - none: Matches no hosts. - localhost: Matches the IPv4 and IPv6 addresses of all network interfaces on the system. When addresses are added or removed, the localhost ACL element is updated to reflect the changes. - localnets: Matches any host on an IPv4 or IPv6 network for which the system has an interface. When addresses are added or removed, the localnets ACL element is updated to reflect the changes. Some systems do not provide a way to determine the prefix lengths of local IPv6 addresses; in such cases, localnets only matches the local IPv6 addresses, just like localhost.

Grammar:

acl <string> { <address_match_element>; ... }; // may occur multiple times

Show JSON schema:
{
  "description": "ACL block for BIND configuration.\n\nThe acl statement assigns a symbolic name to an address match list. It gets its name from one of the primary uses of address match lists: Access Control Lists (ACLs).\n\nThe following ACLs are built-in:\n- any: Matches all hosts.\n- none: Matches no hosts.\n- localhost: Matches the IPv4 and IPv6 addresses of all network interfaces on the system.\nWhen addresses are added or removed, the localhost ACL element\nis updated to reflect the changes.\n- localnets: Matches any host on an IPv4 or IPv6 network for which the system\nhas an interface. When addresses are added or removed, the localnets ACL element\nis updated to reflect the changes. Some systems do not provide a way to determine\nthe prefix lengths of local IPv6 addresses; in such cases, localnets only matches\nthe local IPv6 addresses, just like localhost.\n\nGrammar:\n```\nacl <string> { <address_match_element>; ... }; // may occur multiple times\n```",
  "properties": {
    "comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional comment for this block",
      "title": "Comment"
    },
    "name": {
      "description": "ACL name",
      "title": "Name",
      "type": "string"
    },
    "addresses": {
      "description": "List of address match elements",
      "items": {},
      "title": "Addresses",
      "type": "array"
    }
  },
  "required": [
    "name"
  ],
  "title": "AclBlock",
  "type": "object"
}

Fields:

name pydantic-field

name: acl_name_BIND

ACL name

addresses pydantic-field

addresses: address_match_list_BIND

List of address match elements