Introducing IP ACL CIDR Block Support - SIP Interface and Elastic SIP Trunking

December 18, 2018
Written by

acl_icon (1).png

A new control to improve security and save you time.

Today Twilio is announcing an enhanced security control at the edge of the network to give customers a quick and easy way to block communications from rogue hosts.

We are excited to introduce, CIDR Block support for IP Access Control List (ACL) used in SIP Interfaces and Elastic SIP Trunking products.  

This feature allows you to define an IP address range with a network prefix improving security, saving time and making IP ACLs more scalable from both the Console and the API.

Getting started

The following animation shows you how easy it is to start using CIDR Blocks on your Elastic SIP Trunks, simply follow along:

CIDR-Trunk-12-17-2018.gif

As you can see once you enter the IP Address and select the slash notation it will show you the IP Address Range.  If you are looking to add just one IP Address to your Access Control List simply select the / 32 option.  

The following animation shows you how easy it is to start using CIDR Blocks on your SIP Interface, simply follow along:

CIDR-Domain-12-17-2018.gif

To Add a an IP ACL entry using CIDR block via the API:

curl '.../SIP/IpAccessControlLists/AL.../IpAddresses.json' -XPOST -d'IpAddress=54.172.60.0' -d'CidrPrefixLength=30'

or

curl '.../SIP/IpAccessControlLists/AL.../IpAddresses.json' -XPOST -d'IpAddress=54.172.60.0/30'

and the response:

{
 "sid": "IP...",
 "account_sid": "AC...",
 "ip_access_control_list_sid": "AL...",
 "friendly_name": Prod 1,
 "ip_address": "54.172.60.0",
 "cidr_prefix_length": 20,
 "date_created": "Mon, 17 Dec 2018 19:21:10 +0000",
 "date_updated": "Mon, 17 Dec 2018 19:21:10 +0000",
 "uri": "/2010-04-01/Accounts/AC.../SIP/IpAccessControlLists/AL.../IpAddresses/IP....json"
}

To Update an IP ACL entry with CIDR block via the API:

curl '.../SIP/IpAccessControlLists/AL.../IpAddresses/IP....json' -XPOST -d'CidrPrefixLength=32'


and the response:

{
 "sid": "IP...",
 "account_sid": "AC...",
 "ip_access_control_list_sid": "AL...",
 "friendly_name": null,
 "ip_address": "54.172.60.1",
 "cidr_prefix_length": 32,
 "date_created": "Mon, 17 Dec 2018 19:21:10 +0000",
 "date_updated": "Mon, 17 Dec 2018 19:21:10 +0000",
 "uri": "/2010-04-01/Accounts/AC.../SIP/IpAccessControlLists/AL.../IpAddresses/IP....json"
}

And that is all you need to do to start using the new CIDR Blocks support for SIP IP ACLs.

Learn more about how Twilio can save you time and money with Elastic SIP Trunking and/or SIP Interfaces.

We can’t wait to see what you build!