Skip to main content
An AccessControlList (ACL) is a pair of allow and deny lists of IPv4 networks. You attach it to a Trunk, a Domain, or a Peer by ref.

Fields

Constraints

  • name is required and must be 1 to 60 characters.
  • Each entry must be an IPv4 address or an IPv4 CIDR block. IPv6 is not accepted.
  • Each entry is 7 to 18 characters, and entries in a list must be unique.
  • On create, the API requires at least one entry in both allow and deny. In YAML, a list that is present needs at least one entry.

Referenced by

For a Trunk, Connect accepts a call from the PSTN only when its source address is inside one of the allow entries. The source is the top Via received value, or the Via host when received is absent. Connect does not evaluate the deny list. A call from outside the allow list gets 401 Unauthorized without a challenge.

YAML example

The following ACL allows a single provider network.

rctl equivalent

Run the interactive create command and answer the prompts. Enter networks as a comma-separated list.
See rctl acl for the prompts and the other actions.

SDK equivalent

The following call creates the same ACL through the API.