cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1770
Views
0
Helpful
2
Replies

Adding and Updating Celular Firewall rules does not change srcPort or destPort.

cliffwilliams44
Community Member

I am working with the V1 API function Update Network Appliance Firewall Cellular Firewall Rules.

It seems the source and destination ports do not get updated when calling this method.

This is my message body I am sending to the API method:

{
  "rules": [
    {
      "comment": "This is a test 3",
      "policy": "allow",
      "protocol": "any",
      "srcPort": "8080",
      "srcCidr": "192.168.129.0/24",
      "destPort": "80",
      "destCidr": "192.168.128.0/24",
      "syslogEnabled": false
    }
  ]
}

It seems I can update any other property but the srcPort and destPort. I have successfully updated the comment and subnets several times.

Check out my Meraki API PowerShell Module.
Powershell Gallary: https://www.powershellgallery.com/packages?q=Meraki-API-V1
Project Site: https://github.com/Clifra-Jones/Meraki-API-V1
1 Accepted Solution

Accepted Solutions

Ryan_Miles
Meraki Employee All-Star
Meraki Employee All-Star

You're using this endpoint https://developer.cisco.com/meraki/api-v1/update-network-appliance-firewall-cellular-firewall-rules/? Just tested on my MX and it works fine for source and destination port changes.

View solution in original post

2 Replies 2

Ryan_Miles
Meraki Employee All-Star
Meraki Employee All-Star

You're using this endpoint https://developer.cisco.com/meraki/api-v1/update-network-appliance-firewall-cellular-firewall-rules/? Just tested on my MX and it works fine for source and destination port changes.

That’s what I was wondering. I am using the dev sandbox. I can’t test this functionality on my production MXs. All the other methods I’ve tested so far seem to work.

Good to know it works. I can move on to test other methods.

Check out my Meraki API PowerShell Module.
Powershell Gallary: https://www.powershellgallery.com/packages?q=Meraki-API-V1
Project Site: https://github.com/Clifra-Jones/Meraki-API-V1