<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: ACL policy with ICMP types in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41794#M9722</link>
    <description>Whooops:&lt;BR /&gt;
# refresh policy "test" &lt;BR /&gt;
&lt;BR /&gt;
Error:  Was not able to refresh policy test&lt;BR /&gt;
Line 75 : Attribute icmp-type already exists as a match statement in Acl entry Allow_ICMP.&lt;BR /&gt;
Configuration failed on backup MSM, command execution aborted! &lt;BR /&gt;
&lt;BR /&gt;
I guess I have to type out five different entries. At least on 15.5.1.6 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Yup, that worked.&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Dec 2014 00:19:00 GMT</pubDate>
    <dc:creator>Frank</dc:creator>
    <dc:date>2014-12-17T00:19:00Z</dc:date>
    <item>
      <title>ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41787#M9715</link>
      <description>I want/need to create an ACL that only allows certain ICMP types and denies "the rest". Specifically "echo (8)", "echo-reply (0)", "time-exceeded (11)", "traceroute (30, I know. technically deprecated)", and "unreachable (3)" need to be accepted.&lt;BR /&gt;
&lt;BR /&gt;
And "of course" there are a few other rules in that policy file as well, like accepting only HTTP/S traffic etc.&lt;BR /&gt;
&lt;BR /&gt;
My question is, do I need to create five distinct entries in my policy file, each saying&lt;BR /&gt;
&lt;BR /&gt;
if match all {&lt;BR /&gt;
   protocol icmp;&lt;BR /&gt;
   icmp-type 3;&lt;BR /&gt;
} then {&lt;BR /&gt;
   permit;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
or can I simply have one&lt;BR /&gt;
&lt;BR /&gt;
if  {&lt;BR /&gt;
      icmp-type 3;&lt;BR /&gt;
      icmp-type 0;&lt;BR /&gt;
      icmp-type 30;&lt;BR /&gt;
      ...&lt;BR /&gt;
} then {&lt;BR /&gt;
   permit;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
I don't think we have (in 15.3/4/5/6.X) the option of "AND" and "OR", do we? So I guess I can not do&lt;BR /&gt;
&lt;BR /&gt;
if  {&lt;BR /&gt;
      protocol icmp; AND&lt;BR /&gt;
      ( icmp-type 3; OR&lt;BR /&gt;
      icmp-type 0; OR&lt;BR /&gt;
      icmp-type 30; OR&lt;BR /&gt;
      ...)&lt;BR /&gt;
} then {&lt;BR /&gt;
   permit;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
correct?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
     Frank&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 21:15:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41787#M9715</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2014-12-16T21:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41788#M9716</link>
      <description>if  match any {&lt;BR /&gt;
      icmp-type 3;&lt;BR /&gt;
      icmp-type 0;&lt;BR /&gt;
      icmp-type 30;&lt;BR /&gt;
      ...&lt;BR /&gt;
} then {&lt;BR /&gt;
   permit;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
By default, policy matches all the condition. You can use above type of policy.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 21:44:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41788#M9716</guid>
      <dc:creator>Sumit_Tokle</dc:creator>
      <dc:date>2014-12-16T21:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41789#M9717</link>
      <description>Hey Frank the other option you would have is to permit the ones you want and then deny all other ICMP packets.  Not sure which is easier for you.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
P&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 22:39:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41789#M9717</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2014-12-16T22:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41790#M9718</link>
      <description>Yeah, that's what I'm doing - there's a "deny all" at the very end which I omitted.&lt;BR /&gt;
I do wonder about the effectiveness of essentially checking every packet against 5 icmp-types, even tcp/udp packets, but I hope there's internal optimization going on that I don't see (or that it's not that expensive to do) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 23:24:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41790#M9718</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2014-12-16T23:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41791#M9719</link>
      <description>Hey Frank    Going through the AL policy file should not impact performance at all.  We do the check I HW and  we do it in parallel when the packet ingress especially the switch.  That allows us to forward at L2/LA do ACLs and QoS at wire speed.    Does that help?    P</description>
      <pubDate>Tue, 16 Dec 2014 23:27:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41791#M9719</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2014-12-16T23:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41792#M9720</link>
      <description>Sure does - and thank you much!&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 23:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41792#M9720</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2014-12-16T23:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41793#M9721</link>
      <description>OUCH!!!&lt;BR /&gt;
 -&amp;gt; Line 73 : Protocol needs to be set to icmp or icmpv6 , before setting "icmp-type". &lt;BR /&gt;
&lt;BR /&gt;
However, this seems to be sufficient to pass the check command:&lt;BR /&gt;
&lt;BR /&gt;
entry Allow_ICMP {&lt;BR /&gt;
        if match any {&lt;BR /&gt;
                protocol icmp;&lt;BR /&gt;
                icmp-type 0;&lt;BR /&gt;
                icmp-type 3;&lt;BR /&gt;
                icmp-type 8;&lt;BR /&gt;
                icmp-type 11;&lt;BR /&gt;
                icmp-type 30;&lt;BR /&gt;
        } then {&lt;BR /&gt;
                permit;&lt;BR /&gt;
        }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
If I hit another snag, I'll be back posting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2014 23:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41793#M9721</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2014-12-16T23:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41794#M9722</link>
      <description>Whooops:&lt;BR /&gt;
# refresh policy "test" &lt;BR /&gt;
&lt;BR /&gt;
Error:  Was not able to refresh policy test&lt;BR /&gt;
Line 75 : Attribute icmp-type already exists as a match statement in Acl entry Allow_ICMP.&lt;BR /&gt;
Configuration failed on backup MSM, command execution aborted! &lt;BR /&gt;
&lt;BR /&gt;
I guess I have to type out five different entries. At least on 15.5.1.6 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Yup, that worked.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2014 00:19:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41794#M9722</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2014-12-17T00:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: ACL policy with ICMP types</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41795#M9723</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You cannot have several icmp-type in the same match condition. Any packet can only be of one type, not all. That's why you have the error message. You would have the same kind of error if you tried to have on the same condition match both an IPv4 and an IPv6 address. That's not possible.&lt;BR /&gt;
&lt;BR /&gt;
Rgds,&lt;BR /&gt;
Stephane&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2014 04:37:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/acl-policy-with-icmp-types/m-p/41795#M9723</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2014-12-17T04:37:00Z</dc:date>
    </item>
  </channel>
</rss>

