Introducing IP ACL CIDR Block Support - SIP Interface and Elastic SIP Trunking
Time to read: 1 minute
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:
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:
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!
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.