Cisco ASA - Create or Inbound Access Rule On Interface
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Content Index
This playbook allows blocking/unblocking of IPs in Cisco ASA, using Access Rules which will be created on an interface.
Logic App Connectors
This playbook uses 4 Logic App connectors / built-in actions:
Action parameters (URLs, paths, function IDs)
| Action |
Method |
Endpoint |
Other |
| Entities_-_Get_IPs |
post |
/entities/ip |
— |
| Add_comment_to_incident_(V3) |
post |
/Incidents/Comment |
— |
| Update_incident |
put |
/Incidents |
— |
| Action |
Method |
Endpoint |
Other |
| Fetch_inbound_access_rules_on_an_interface |
get |
/api/access/in/@{encodeURIComponent(variables('Interface ID'))}/rules |
— |
| Create_an_inbound_access_rule_on_an_interface |
post |
/api/access/in/@{encodeURIComponent(variables('Interface ID'))}/rules |
— |
| Remove_an_inbound_access_rule_on_an_interface |
delete |
/api/access/in/@{encodeURIComponent(variables('Interface ID'))}/rules/@{encodeURIComponent(items('For_each_over_ipAddresses')['extendedAceItemObjectId'])} |
— |
Additional Documentation
📄 Source: CiscoASA-CreateInboundAccessRuleOnInterface/readme.md
Cisco ASA - Create or remove access rules on an interface for IP Addresses
Summary
This playbook allows blocking/unblocking of IPs in Cisco ASA, using Access Rules which will be created on an interface.
When a new Sentinel incident is created, this playbook gets triggered and performs below actions
- For the IPs we check if they are already directly blocked by an access rule on the interface
- An adaptive card is sent to a Teams channel with information about the incident and giving the option to ignore an IP, or depdening on it's current status block it by adding an access rule or unblock it by removing an access rule

- Comment is added to Microsoft Sentinel incident.

Inbound access rule is added in Cisco ASA:

Playbook overview:

Prerequisites
- This playbook template is based on Microsoft Sentinel Incident Trigger which is currently in Private Preview (Automation Rules). You can change the trigger to the Sentinel Alert trigger in cases you are not part of the Private Preview.
- Cisco ASA custom connector needs to be deployed prior to the deployment of this playbook, in the same resource group and region. Relevant instructions can be found in the connector doc page.
- Cisco ASA needs to have an interface configured. When enabling the interface you have to give it a name, since that is used by the API calls. To use Cisco ASDM to edit an interface, see Enable the Physical Interface and Configure Ethernet Parameters
Deployment instructions
- Deploy the playbook by clicking on "Depoly to Azure" button. This will take you to deplyoing an ARM Template wizard.
- Fill in the required paramteres:
- Playbook Name: Enter the playbook name here (ex:CiscoASA-CreateInboundAccessRuleOnInterface)
- Cisco ASA Connector name : Enter the name of the Cisco ASA custom connector (default value:CiscoASAConnector)
- Interface ID : The name of the interface you want to create the access rules on.
Post-Deployment instructions
a. Authorize connections
Once deployment is complete, you will need to authorize each connection.
- Click the Microsoft Sentinel connection resource
- Click edit API connection
- Click Authorize
- Sign in
- Click Save
- Repeat steps for other connections such as Teams and Cisco ASA (For authorizing the Cisco ASA API connection, the username and password needs to be provided)
b. Select Teams channel
The Teams channel to which the adaptive card will be posted will need to be configured.
- Click the Azure Logic app resource
- Edit the Logic App
- Find the 'PostToTeams' action
- Select a Team and Channel
- Save the Logic App
c. Configurations in Sentinel
- In Microsoft Sentinel analytical rules should be configured to trigger an incident with IP Entity.
- Configure the automation rules to trigger this playbook
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Playbooks · Back to CiscoASA