<?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: regex blocking all sites in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366417#M308873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius, it still allows access to ebay.com, and myspace.com, I had typos at first but I carefully followed your instructions and the commnands worked but was still allowing access to the 2 sites I wanted to block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here' the current policy entries;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA Version 9.1(2)8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "\ebay\.com"&lt;BR /&gt;regex myspace "\myspace\.com"&lt;/P&gt;&lt;P&gt;object network obj-LAN&lt;BR /&gt;subnet 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;BR /&gt;match regex ebay&lt;BR /&gt;match regex myspace&lt;BR /&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;BR /&gt;match not request uri regex class domain-list&lt;BR /&gt;class-map inspection_default&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;policy-map type inspect dns preset_dns_map&lt;BR /&gt;parameters&lt;BR /&gt;&amp;nbsp; message-length maximum client auto&lt;BR /&gt;&amp;nbsp; message-length maximum 512&lt;BR /&gt;policy-map type inspect http URL&lt;BR /&gt;parameters&lt;BR /&gt;class ALLOWED_URL_CLASS_MAP&lt;BR /&gt;&amp;nbsp; drop-connection&lt;BR /&gt;policy-map global_policy&lt;BR /&gt;class inspection_default&lt;BR /&gt;&amp;nbsp; inspect dns preset_dns_map&lt;BR /&gt;&amp;nbsp; inspect ftp&lt;BR /&gt;&amp;nbsp; inspect h323 h225&lt;BR /&gt;&amp;nbsp; inspect h323 ras&lt;BR /&gt;&amp;nbsp; inspect rsh&lt;BR /&gt;&amp;nbsp; inspect rtsp&lt;BR /&gt;&amp;nbsp; inspect esmtp&lt;BR /&gt;&amp;nbsp; inspect sqlnet&lt;BR /&gt;&amp;nbsp; inspect skinny&lt;BR /&gt;&amp;nbsp; inspect sunrpc&lt;BR /&gt;&amp;nbsp; inspect xdmcp&lt;BR /&gt;&amp;nbsp; inspect sip&lt;BR /&gt;&amp;nbsp; inspect netbios&lt;BR /&gt;&amp;nbsp; inspect tftp&lt;BR /&gt;&amp;nbsp; inspect ip-options&lt;BR /&gt;!&lt;BR /&gt;service-policy global_policy global&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: CARLO DOMINGUEZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2013 20:36:54 GMT</pubDate>
    <dc:creator>Carlomd</dc:creator>
    <dc:date>2013-11-16T20:36:54Z</dc:date>
    <item>
      <title>regex and grouping questions</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366414#M308863</link>
      <description>&lt;P&gt;Hi all, I have a 5510 in route mode, when I add a regex to block 2 sites, it somehow blocks all sites, when I remove it it's back to normal, here's the regex code along with my other nat setting that gives inside users outside access. Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(regex entry to block sites)&lt;/P&gt;&lt;P&gt;regex domain1 "\.yahoo\.com"&lt;/P&gt;&lt;P&gt;regex domain2 "\.google\.com"&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;/P&gt;&lt;P&gt;match regex domain1&lt;/P&gt;&lt;P&gt;match regex domain2&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;class-map web&lt;/P&gt;&lt;P&gt;match port tcp eq www&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;policy-map type inspect http URL&lt;/P&gt;&lt;P&gt;parameters&lt;/P&gt;&lt;P&gt;match not request header host regex class domain-list&lt;/P&gt;&lt;P&gt;drop-connection&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;policy-map global_policy&lt;/P&gt;&lt;P&gt;class web&lt;/P&gt;&lt;P&gt;inspect http URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(nat outside access)&lt;/P&gt;&lt;P&gt;object network obj-LAN&lt;/P&gt;&lt;P&gt;subnet 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network obj-LAN&lt;/P&gt;&lt;P&gt;nat (inside,outside) dynamic interface&lt;/P&gt;&lt;P&gt;route outside 0.0.0.0 0.0.0.0 12.54.x.x 1&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 03:05:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366414#M308863</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2019-03-12T03:05:37Z</dc:date>
    </item>
    <item>
      <title>regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366415#M308867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the match not keywords under the class map and then call that class map in the policy map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;regex domain1 "\.yahoo\.com"&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;regex domain2 "\.google\.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;class-map type regex match-any domain-list&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;match regex domain1&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;match regex domain2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt;match not request uri regex class domain-list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map type inspect http URL&lt;/P&gt;&lt;P&gt;class &lt;SPAN style="font-size: 10pt;"&gt;ALLOWED_URL_CLASS_MAP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;drop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:19:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366415#M308867</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-15T19:19:10Z</dc:date>
    </item>
    <item>
      <title>regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366416#M308870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply Marius, I'll give this a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 20:55:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366416#M308870</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-15T20:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366417#M308873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius, it still allows access to ebay.com, and myspace.com, I had typos at first but I carefully followed your instructions and the commnands worked but was still allowing access to the 2 sites I wanted to block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here' the current policy entries;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA Version 9.1(2)8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "\ebay\.com"&lt;BR /&gt;regex myspace "\myspace\.com"&lt;/P&gt;&lt;P&gt;object network obj-LAN&lt;BR /&gt;subnet 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;BR /&gt;match regex ebay&lt;BR /&gt;match regex myspace&lt;BR /&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;BR /&gt;match not request uri regex class domain-list&lt;BR /&gt;class-map inspection_default&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;policy-map type inspect dns preset_dns_map&lt;BR /&gt;parameters&lt;BR /&gt;&amp;nbsp; message-length maximum client auto&lt;BR /&gt;&amp;nbsp; message-length maximum 512&lt;BR /&gt;policy-map type inspect http URL&lt;BR /&gt;parameters&lt;BR /&gt;class ALLOWED_URL_CLASS_MAP&lt;BR /&gt;&amp;nbsp; drop-connection&lt;BR /&gt;policy-map global_policy&lt;BR /&gt;class inspection_default&lt;BR /&gt;&amp;nbsp; inspect dns preset_dns_map&lt;BR /&gt;&amp;nbsp; inspect ftp&lt;BR /&gt;&amp;nbsp; inspect h323 h225&lt;BR /&gt;&amp;nbsp; inspect h323 ras&lt;BR /&gt;&amp;nbsp; inspect rsh&lt;BR /&gt;&amp;nbsp; inspect rtsp&lt;BR /&gt;&amp;nbsp; inspect esmtp&lt;BR /&gt;&amp;nbsp; inspect sqlnet&lt;BR /&gt;&amp;nbsp; inspect skinny&lt;BR /&gt;&amp;nbsp; inspect sunrpc&lt;BR /&gt;&amp;nbsp; inspect xdmcp&lt;BR /&gt;&amp;nbsp; inspect sip&lt;BR /&gt;&amp;nbsp; inspect netbios&lt;BR /&gt;&amp;nbsp; inspect tftp&lt;BR /&gt;&amp;nbsp; inspect ip-options&lt;BR /&gt;!&lt;BR /&gt;service-policy global_policy global&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: CARLO DOMINGUEZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 20:36:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366417#M308873</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-16T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366418#M308876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to not use the match not in this case.&amp;nbsp; The match not means that it will allow access to ebay and myspace but will drop all others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I was a bit fast in my copy past and did not change the policy map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "\ebay\.com"&lt;/P&gt;&lt;P&gt;regex myspace "\myspace\.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;/P&gt;&lt;P&gt;match regex ebay&lt;/P&gt;&lt;P&gt;match regex myspace&lt;/P&gt;&lt;P&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt;match request uri regex class domain-list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map global_policy&lt;/P&gt;&lt;P&gt;class &lt;SPAN style="font-size: 10pt;"&gt;ALLOWED_URL_CLASS_MAP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;drop-connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By placing the class map under the global policy this will be applied to all interfaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please rate any helpful posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 21:13:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366418#M308876</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-16T21:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366419#M308878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Marius, I see so the match not command means to only allow what's on the domain-list, and then vice versa. And looks like it needs to also be put in the global policy group for it to take effect to all interfaces. I wasn't putting it in the global policy that's probably why I was having some issues when I first tried it, thanks I'll give it another try at the end of the day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:20:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366419#M308878</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-18T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366420#M308880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Marius, I get this error when I add the class under the global policy, any ideas, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;crxasa(config)# policy-map global_policy&lt;/P&gt;&lt;P&gt;crxasa(config-pmap)# class ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt;ERROR: Specified class type is different from the policy-map type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 01:26:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366420#M308880</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-19T01:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366421#M308883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to add another policy map in the mix.&amp;nbsp; The below configuration should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "\ebay\.com"&lt;/P&gt;&lt;P&gt;regex myspace "\myspace\.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;/P&gt;&lt;P&gt; match regex ebay&lt;/P&gt;&lt;P&gt; match regex myspace&lt;/P&gt;&lt;P&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt; match request uri regex class domain-list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map type inspect http HTTP_BLOCK_POLICY&lt;/P&gt;&lt;P&gt; parameters&lt;/P&gt;&lt;P&gt; class ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop-connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map global_policy&lt;/P&gt;&lt;P&gt; class inspection_default&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect http HTTP_BLOCK_POLICY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:58:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366421#M308883</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-19T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366422#M308884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Marius, thanks for the reply, but somehow it won't work, it still allows ebay and myspace, here's my config of the policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "\ebay\.com"&lt;/P&gt;&lt;P&gt;regex myspace "\myspace\.com"&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;class-map type regex match-any domain-list&lt;/P&gt;&lt;P&gt; match regex ebay&lt;/P&gt;&lt;P&gt; match regex myspace&lt;/P&gt;&lt;P&gt;class-map type inspect http match-all ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt; match request uri regex class domain-list&lt;/P&gt;&lt;P&gt;class-map inspection_default&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;policy-map type inspect dns preset_dns_map&lt;/P&gt;&lt;P&gt; parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp; message-length maximum client auto&lt;/P&gt;&lt;P&gt;&amp;nbsp; message-length maximum 512&lt;/P&gt;&lt;P&gt;policy-map type inspect http HTTP_BLOCK_POLICY&lt;/P&gt;&lt;P&gt; parameters&lt;/P&gt;&lt;P&gt; class ALLOWED_URL_CLASS_MAP&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop-connection&lt;/P&gt;&lt;P&gt;policy-map global_policy&lt;/P&gt;&lt;P&gt; class inspection_default&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect dns preset_dns_map&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect ftp&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect h323 h225&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect h323 ras&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect rsh&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect rtsp&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect esmtp&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect sqlnet&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect skinny&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect sunrpc&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect xdmcp&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect sip&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect netbios&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect tftp&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect ip-options&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect http HTTP_BLOCK_POLICY&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;service-policy global_policy global&lt;SPAN id="mce_marker"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 00:55:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366422#M308884</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T00:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366423#M308885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex url1 "[e|E][b|B][a|A][y|Y]"&lt;/P&gt;&lt;P&gt;regex url2 "[g|G][o|O][o|O][g|G][l|L][e|E]"&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;class-map type inspect dns match-all web_url_policy&lt;/P&gt;&lt;P&gt; match domain-name regex url1&lt;/P&gt;&lt;P&gt; match domain-name regex url2&lt;/P&gt;&lt;P&gt; !&lt;/P&gt;&lt;P&gt;policy-map type inspect dns web_policy&lt;/P&gt;&lt;P&gt; class web_url_policy&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;policy-map global_policy&lt;/P&gt;&lt;P&gt; class inspection_default&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect dns web_policy &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;service-policy global_policy global&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please rate replies and mark question as "answered" if applicable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 01:39:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366423#M308885</guid>
      <dc:creator>Rejohn Cuares</dc:creator>
      <dc:date>2013-11-20T01:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366424#M308886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;edit the regex entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "*\.ebay\.com"&lt;/P&gt;&lt;P&gt;regex myspace "\.myspace\.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't match, then try using the * infront of the domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex ebay "*ebay\.com"&lt;/P&gt;&lt;P&gt;regex myspace "*myspace\.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Configuration looks correct, we just need to find the correct match parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Please rate all helpful posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 07:35:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366424#M308886</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-20T07:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366425#M308887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply rr, I'll try this if the other ones don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 16:48:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366425#M308887</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T16:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366426#M308888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; I have another question on another command I seem to have trouble with, this is my first time hands on with ASA btw, so I'm just getting into the meat and potatoes of the asa just about over a month now.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I read that you can group together udp and tcp, so I did that with grouping smtp, http. https. and domain to a set of host objects, but email won't go through, I think http worked though but somehow smtp won't unless I seperate it on one line. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 17:13:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366426#M308888</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366427#M308889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the group objects in question as well as the access list you are using them in.&amp;nbsp; The following would is an example of how you would configure it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group service SERVICES tcp&lt;/P&gt;&lt;P&gt;port-object eq http&lt;/P&gt;&lt;P&gt;port-object eq https&lt;/P&gt;&lt;P&gt;port-object smtp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list MYACL extended permit tcp host 10.10.10.1 any object-group SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Please rate all helpful posts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:11:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366427#M308889</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-20T18:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366428#M308890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Marius, thanks for the reply, I'm using the command service-object instead of port-object, I got it from my asa 2nd ed book off a sample. I'll try port-object and see what happens, it'll save me some time having to type seperate lines of command for each host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group service server-services&lt;/P&gt;&lt;P&gt;service-object tcp destination eq www&lt;/P&gt;&lt;P&gt;service-object tcp destination eq https&lt;/P&gt;&lt;P&gt;service-object tcp destination eq smtp&lt;/P&gt;&lt;P&gt;access-list ACL_OUT_IN extended permit object-group server-services host 208.x.x.12 any&lt;SPAN id="mce_marker"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 11pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: #1f497d; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:37:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366428#M308890</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366429#M308891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your configuration is setting www, https and smtp as the protocol...not the ports.&amp;nbsp; Change it to the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list ACL_OUT_IN extended permit tcp host 208.x.x.12 any object-group server-services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remember that most PCs will send traffic using a random high port as the source port, so you almost always want to match the ports to the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is 208.x.x.12 the actual IP of the server or the NATed IP?&amp;nbsp; Also keep in mind that if you want your users to be able to access https, www and smtp form the internet, these ports need to be opened on the outside interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 19:05:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366429#M308891</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-20T19:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366430#M308892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The server is nat'ed to an outside ip, I have it set that way already for the access-list syntax, it didn't work. Test email didnt go through. Seems to only like single line entries for each host and service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 20:50:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366430#M308892</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T20:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366431#M308893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, please explaine what you are trying to do more.&amp;nbsp; Is the 208.x.x.12 server inside your network or is it a server on the internet that you want to open for traffic coming in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the configuration that I posted earlier?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group service SERVICES tcp&lt;/P&gt;&lt;P&gt;port-object eq http&lt;/P&gt;&lt;P&gt;port-object eq https&lt;/P&gt;&lt;P&gt;port-object smtp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list MYACL extended permit tcp host 10.10.10.1 any object-group SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Please rate all helpful posts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 21:23:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366431#M308893</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2013-11-20T21:23:51Z</dc:date>
    </item>
    <item>
      <title>regex and grouping questions</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366432#M308894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, 208.x.x.12 is inside, it's an Exchange server that also has IIS running for OWA, so I need to have smtp, http, and https access incoming, I also have a terminal server, and others but that will have to wait.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm just trying to get the basics running like web and email and blocking sites, It worked by using the command below but seems to have issues with grouping, the TAC engineer I was talking to said to use single entries but he wouldn't say why grouping won't work.&lt;/P&gt;&lt;PRE style="background: white;"&gt;&lt;BR /&gt; access-list ACL_OUT_IN line 1 permit tcp any host 208.x.x.12 eq www&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 21:45:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366432#M308894</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T21:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: regex blocking all sites</title>
      <link>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366433#M308895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You know what I think I just need reading glasses&lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon" src="https://community.cisco.com/4.5.4/images/tiny_mce3/plugins/jiveemoticons/images/spacer.gif"&gt;&lt;/SPAN&gt;, I missed the dot before ebay, I only had a dot on .com, let me try again this time with "\.ebay\.com\"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 21:55:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-and-grouping-questions/m-p/2366433#M308895</guid>
      <dc:creator>Carlomd</dc:creator>
      <dc:date>2013-11-20T21:55:59Z</dc:date>
    </item>
  </channel>
</rss>

