Wired Intelligent Edge

 View Only
  • 1.  Discontiguous access-list masks

    Posted Dec 13, 2023 03:11 PM

    I am seeing some conflicting messages therefore another message. I wanted to see if I can apply an access-list filter that filters just on a few IP addresses. 

    I created a filter on another platform to filter the IP addresses in the 10.1.1.0/24 subnet the following hosts should be permitted:

    10.1.1.0

    10.1.1.1

    10.1.1.4

    10.1.1.5

    The rule: permit icmp any 10.1.1.0 0.0.0.5 

    Will allow this traffic.

    If I apply the reverse logic to the Aruba CX platform I do not seem to get this to work, I am using the VM version.

    permit icmp any 10.1.1.0/255.255.255.250 

    Am I doing something wrong or is this feature not supported?



  • 2.  RE: Discontiguous access-list masks

    Posted Dec 14, 2023 04:36 AM

    This is a bit a corner case, and it makes your policy quite hard to read (for humans). Also, many network engineers already struggle with 'normal' netmasks and with these more complex binary operations it may be even harder to understand and find an issue, they may even think it's a typing error in the configuration and correct it.

    But you can things very efficient in some cases. Not sure what 'do not seem to get this work' means, but I tested on a 6300 physical switch, and there the command is accepted. It's a bit hard to test if it also works, but if the command is not accepted on the Switch emulator, it may be version/VM related.

    CP1-6300F-03-DynSeg(config-acl-ip)# permit ip 10.1.1.0/255.255.250.0 any
    CP1-6300F-03-DynSeg(config-acl-ip)# show running-config | inc 250
        10 permit any 10.1.1.0/255.255.250.0 any
    CP1-6300F-03-DynSeg(config-acl-ip)# permit ip 10.1.1.0/255.255.250.254 any
    CP1-6300F-03-DynSeg(config-acl-ip)# show running-config | inc 250
        10 permit any 10.1.1.0/255.255.250.0 any
        20 permit any 10.1.1.0/255.255.250.254 any
    CP1-6300F-03-DynSeg(config-acl-ip)# permit ip 10.1.1.0/255.255.250.254 172.16.0.0/255.240.5.23
    CP1-6300F-03-DynSeg(config-acl-ip)# show running-config | inc 250
        10 permit any 10.1.1.0/255.255.250.0 any
        20 permit any 10.1.1.0/255.255.250.254 any
        30 permit any 10.1.1.0/255.255.250.254 172.16.0.0/255.240.5.23


    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: Discontiguous access-list masks

    Posted Dec 14, 2023 08:08 AM

    Hi Herman,

    I have to disagree with you on this one, a discontiguous access-list is something that we often use, maybe not my example but just in general. The command itself is accepted in the virtual AOS-CX is just denies all traffic instead of just denying everything except .0,.1,.4, and .5 in my example. 

    Can I conclude that wildcard masks/discountiguous access-lists are not supported?




  • 4.  RE: Discontiguous access-list masks

    Posted Dec 14, 2023 08:59 AM

    I'm not 100% sure if it is considered to be supported.. given the point that configuration is accepted and the documentation is not fully clear, you may ask Aruba Support for a full confirmation. If it is not supported, I would expect that the command would be rejected.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 5.  RE: Discontiguous access-list masks
    Best Answer

    Posted Dec 18, 2023 03:54 AM
    Edited by mvanoverbeek Dec 18, 2023 02:12 PM

    I received the following through Aruba engineering:

    The masking operation for MAC and IPv4 addresses is performed bitwise, and
    therefore non-contiguous masks such as FFFF.0000.00FF or 255.255.0.255 are
    supported. IPv6 address masks must be contiguous.

    So if your netmasks don't work, please open a TAC case. But please verify on a hardware model switch as the VM is more for lab purposes, and does not support each feature compared to the hardware switches.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 6.  RE: Discontiguous access-list masks

    Posted Dec 16, 2023 12:12 PM

    The two different syntax variants you're using work slightly differently.

    permit icmp any 10.1.1.0 0.0.0.5
    is the standard ACL syntax with the network address and the wildcard pattern. 0.0.0.5 sets bits 0 and 2 to wildcard, matching 0, 1, 4, 5 in the last octet.

    permit icmp any 10.1.1.0/255.255.255.250
    is trying to create the wildcard pattern from the subnet mask 255.255.255.250 - the subnet mask needs to be contiguous though, so it's not accepted. In contrast, 255.255.255.248 would work, creating the wildcard pattern 0.0.0.7 (which isn't what you want though).

    The pattern you're aiming for can only be created by using the former syntax, it's more flexible. Non-contiguous wildcard patterns work entirely fine but need to be designed carefully to avoid unwanted side effects.




  • 7.  RE: Discontiguous access-list masks

    Posted Dec 18, 2023 02:11 PM

    Hi Zac,


    Thanks for your response, from what I read the syntax is not supported on the ArubaCX platform. I only tested on the Labversion (VM), from what I heard potentially the discontiguous ACL is supported on the hardware platform. I will see if I can test this.