<?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: match any / match all in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26995#M3770</link>
    <description>Create Date: Jun 21 2013  6:06PM&lt;BR /&gt;
&lt;BR /&gt;
I don't think EXOS allows nested IFs, &lt;BR /&gt;
both "if match all" and "if" have the same meaning, they test all the conditions with AND logical operator. The "if match any" tests all conditions with OR logical operator&lt;BR /&gt;
&lt;BR /&gt;
I think you can achieve what you want by doing:&lt;BR /&gt;
&lt;BR /&gt;
entry openports {&lt;BR /&gt;
  if {&lt;BR /&gt;
    protocol tcp; &lt;BR /&gt;
    destination-port 1094-1095,2811-2812,4823,6000-6999,8443,22128,50000-52000,56000-56999,60000-61000;&lt;BR /&gt;
  } then {&lt;BR /&gt;
    permit;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
also don't forget to deny the packets that do not match the entry above:&lt;BR /&gt;
&lt;BR /&gt;
entry DenyAll {&lt;BR /&gt;
  if {&lt;BR /&gt;
  } then {&lt;BR /&gt;
    deny;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
P.S. I don't know if you can use multiple ranges in the "destination-port" condition, you might have to build one entire entry for each range&lt;BR /&gt;
&lt;BR /&gt;
  (from Luis_Coelho)</description>
    <pubDate>Wed, 08 Jan 2014 06:03:00 GMT</pubDate>
    <dc:creator>EtherNation_Use</dc:creator>
    <dc:date>2014-01-08T06:03:00Z</dc:date>
    <item>
      <title>match any / match all</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26994#M3769</link>
      <description>Create Date: Jun 21 2013  1:00PM&lt;BR /&gt;
&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to setup an acl permitting a bunch of open ports. I tried this but failed:&lt;BR /&gt;
&lt;BR /&gt;
entry openports {&lt;BR /&gt;
                if {&lt;BR /&gt;
            protocol tcp ; &lt;BR /&gt;
           if match any {&lt;BR /&gt;
            destination-port 1094 - 1095;&lt;BR /&gt;
        destination-port 2811-2812,4823,6000-6999,8443,22128,50000-52000,56000-56999,60000-61000;&lt;BR /&gt;
        destination-port 4823;&lt;BR /&gt;
        destination-port 6000-6999;&lt;BR /&gt;
            destination-port 8443;&lt;BR /&gt;
            destination-port 22128;&lt;BR /&gt;
            destination-port 50000-52000;&lt;BR /&gt;
            destination-port 56000-56999;&lt;BR /&gt;
            destination-port 60000-61000;&lt;BR /&gt;
                        } &lt;BR /&gt;
                   } then {&lt;BR /&gt;
            permit ;&lt;BR /&gt;
            }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
First of all, I could not find in the documentation any detailed explanation how if match all/any work, though they are present in examples. Google returned only http://dataplumber.wordpress.com/category/exos/. Anyone can provide some pointers please?&lt;BR /&gt;
&lt;BR /&gt;
Secondly, other than specifying separate acl entries for every differet port/port range, is there another way to achieve this? Preferably an one line syntax where I can just put all my ports/port ranges.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,  (from dzila)</description>
      <pubDate>Wed, 08 Jan 2014 06:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26994#M3769</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T06:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: match any / match all</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26995#M3770</link>
      <description>Create Date: Jun 21 2013  6:06PM&lt;BR /&gt;
&lt;BR /&gt;
I don't think EXOS allows nested IFs, &lt;BR /&gt;
both "if match all" and "if" have the same meaning, they test all the conditions with AND logical operator. The "if match any" tests all conditions with OR logical operator&lt;BR /&gt;
&lt;BR /&gt;
I think you can achieve what you want by doing:&lt;BR /&gt;
&lt;BR /&gt;
entry openports {&lt;BR /&gt;
  if {&lt;BR /&gt;
    protocol tcp; &lt;BR /&gt;
    destination-port 1094-1095,2811-2812,4823,6000-6999,8443,22128,50000-52000,56000-56999,60000-61000;&lt;BR /&gt;
  } then {&lt;BR /&gt;
    permit;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
also don't forget to deny the packets that do not match the entry above:&lt;BR /&gt;
&lt;BR /&gt;
entry DenyAll {&lt;BR /&gt;
  if {&lt;BR /&gt;
  } then {&lt;BR /&gt;
    deny;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
P.S. I don't know if you can use multiple ranges in the "destination-port" condition, you might have to build one entire entry for each range&lt;BR /&gt;
&lt;BR /&gt;
  (from Luis_Coelho)</description>
      <pubDate>Wed, 08 Jan 2014 06:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26995#M3770</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T06:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: match any / match all</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26996#M3771</link>
      <description>Create Date: Jun 22 2013 12:36PM&lt;BR /&gt;
&lt;BR /&gt;
i can't get multiple ports or multiple ranges to work on one line.&lt;BR /&gt;
&lt;BR /&gt;
hence i ended up writing this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://conradjonesit.wordpress.com/2013/06/05/extremexos-policy-maker-version-2/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://conradjonesit.wordpress.com/2...&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I can't help thinking i missing something obvious though and this should be easier?&lt;BR /&gt;
&lt;BR /&gt;
(btw if you want to use the program, my local version is problem newer with less bugs, i'll upload it at somepoint)  (from Conrad_Jones)</description>
      <pubDate>Wed, 08 Jan 2014 06:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26996#M3771</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T06:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: match any / match all</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26997#M3772</link>
      <description>Create Date: Jun 25 2013 12:59PM&lt;BR /&gt;
&lt;BR /&gt;
Thank you all for your replies. Using separate entries for every port/range is the way to go.  (from dzila)</description>
      <pubDate>Wed, 08 Jan 2014 06:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/match-any-match-all/m-p/26997#M3772</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T06:03:00Z</dc:date>
    </item>
  </channel>
</rss>

