<?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: Need help in creating a Regex in ACS 5.8 in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3352423#M547197</link>
    <description>&lt;P&gt;Hello Arne,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the regex, It worked like a charm.. Thanks Again...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Harshdeep Singh&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 14:31:11 GMT</pubDate>
    <dc:creator>harshsinghjassal</dc:creator>
    <dc:date>2018-03-21T14:31:11Z</dc:date>
    <item>
      <title>Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221315#M547192</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hello Members,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I need some help in creating a regex in ACS 5.8 to permit all ip address in the command set. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The commands I want to use in the command set&amp;nbsp;are :&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;ip address &amp;lt;x.x.x.x&amp;gt; 255.255.255.252&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;ip mroute vrf mssbdata &amp;lt;x.x.x.x&amp;gt; 255.255.255.255 &amp;lt;x.x.x.x&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;neighbor &amp;lt;x.x.x.x&amp;gt; activate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;X.X.X.X can be any ip address. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(31, 73, 125); font-family: Consolas; font-size: 9pt;"&gt;Please suggest ! &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:40:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221315#M547192</guid>
      <dc:creator>harshsinghjassal</dc:creator>
      <dc:date>2020-02-21T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221326#M547193</link>
      <description>&lt;P&gt;Regular expression syntax doesn't provide a numerical range checking operator, so we have to build it ourselves.&amp;nbsp; My suggestion below is tailored towards valid IPv4 address ranges as much as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;([1-9]|[1-9][0-9]|[12][0-9][0-9])\.([0-9]|[1-9][0-9]|[12][0-9][0-9])\.([0-9]|[1-9][0-9]|[12][0-9][0-9])\.([0-9]|[1-9][0-9]|[12][0-9][0-9])$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without complicating the regex any more, it will allow examples such as&lt;/P&gt;
&lt;P&gt;1.0.0.0 - 299.299.299.299 (but the IOS would flag an error if you entered an illegal IP address&amp;nbsp;- the question is whether you want your regex to guard you from that too?&amp;nbsp; Yes, maybe.&amp;nbsp; Would be nice.&amp;nbsp; But would possibly make the regex look even uglier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am open to other suggestions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test your regex here &lt;A href="https://regex101.com/" target="_blank"&gt;https://regex101.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 23:16:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221326#M547193</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2017-11-22T23:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221339#M547194</link>
      <description>&lt;P&gt;I have made v2.0 that now enforces the legal IPv4 syntax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I told you'd it's gonna get ugly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 23:46:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221339#M547194</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2017-11-22T23:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221792#M547195</link>
      <description>Hello Arme,&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing the regex, I tried using the regex below:&lt;BR /&gt;"^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"&lt;BR /&gt;&lt;BR /&gt;unfortunaty it's too long be added in the command set.&lt;BR /&gt;We don't want to restrict the user to enter any ip address till the time they are using the authorized commands in the command set.&lt;BR /&gt;Example below:&lt;BR /&gt;ip address &lt;X.X.X.X&gt; 255.255.255.252&lt;BR /&gt;&lt;BR /&gt;x.x.x.x can be any Ip address.&lt;BR /&gt;&lt;BR /&gt;Please suggest.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Singh&lt;BR /&gt;&lt;/X.X.X.X&gt;</description>
      <pubDate>Thu, 23 Nov 2017 19:12:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221792#M547195</guid>
      <dc:creator>harshsinghjassal</dc:creator>
      <dc:date>2017-11-23T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221841#M547196</link>
      <description>&lt;P&gt;How about this one?&amp;nbsp; It does some moderate checking to ensure that some 1-3 digit dotted decimal is entered, but no range checking is done in each decimal.&lt;/P&gt;
&lt;P&gt;^([0-9]{1,3}\.){3}[0-9]{1,3}$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 22:02:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3221841#M547196</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2017-11-23T22:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating a Regex in ACS 5.8</title>
      <link>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3352423#M547197</link>
      <description>&lt;P&gt;Hello Arne,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the regex, It worked like a charm.. Thanks Again...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Harshdeep Singh&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:31:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/need-help-in-creating-a-regex-in-acs-5-8/m-p/3352423#M547197</guid>
      <dc:creator>harshsinghjassal</dc:creator>
      <dc:date>2018-03-21T14:31:11Z</dc:date>
    </item>
  </channel>
</rss>

