<?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: Block External to internal when not using FQDN in Custom Signatures</title>
    <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68310#M10</link>
    <description>&lt;P&gt;Here is a signature that works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: http-method&lt;/P&gt;
&lt;P&gt;Value:&amp;nbsp;GET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have been using it for awhile. &amp;nbsp;We set the action as reset-both. &amp;nbsp;Can always use an exception response of block-IP if you are getting too many of them or if the originator has bad intentions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phil&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 00:08:39 GMT</pubDate>
    <dc:creator>HITSSEC</dc:creator>
    <dc:date>2015-11-18T00:08:39Z</dc:date>
    <item>
      <title>Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68276#M8</link>
      <description>&lt;P&gt;I have tried to create a Custom threat a number of times that blocks people from accessing our site via IP address as the url. I have tried setting it up as so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: req-hdr-type&lt;/P&gt;
&lt;P&gt;Value: HOST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.\d+[:](80|443)&lt;/P&gt;
&lt;P&gt;Qualifer: req-hdr-type&lt;/P&gt;
&lt;P&gt;Value: HOST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: rhttp-method&lt;/P&gt;
&lt;P&gt;Value: HOST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was going to try the following next:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-uri-path&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: http-method&lt;/P&gt;
&lt;P&gt;Value: Get&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any example or advice on this would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 16:00:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68276#M8</guid>
      <dc:creator>murphyj</dc:creator>
      <dc:date>2015-11-17T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68292#M9</link>
      <description>&lt;P&gt;Hello, murphyj!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would expect your first example to satisfy this requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: req-hdr-type&lt;/P&gt;
&lt;P&gt;Value: HOST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in testing in my lab, I see that my expectations are not met, and as you said, it does not function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've whittled the issue down to being something to do with the req-hdr-type qualifier you have specified. If you remove the qualifier, and simply do the below, it should function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to why the qualifier doesn't work, great question! I'll address that on our backend and see if I can find something. I do find it odd that you can add a qualifier for req-hdr-type as "HOST" even when the context is already set to "http-req-host-header," since the breadth of that entire context is simply just the Host value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for participating! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:09:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68292#M9</guid>
      <dc:creator>rcole</dc:creator>
      <dc:date>2015-11-17T19:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68310#M10</link>
      <description>&lt;P&gt;Here is a signature that works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Operator: Pattern-Match&lt;/P&gt;
&lt;P&gt;Context: http-req-host-header&lt;/P&gt;
&lt;P&gt;Pattern: 111\.2\.3\.4&lt;/P&gt;
&lt;P&gt;Qualifer: http-method&lt;/P&gt;
&lt;P&gt;Value:&amp;nbsp;GET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have been using it for awhile. &amp;nbsp;We set the action as reset-both. &amp;nbsp;Can always use an exception response of block-IP if you are getting too many of them or if the originator has bad intentions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phil&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 00:08:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68310#M10</guid>
      <dc:creator>HITSSEC</dc:creator>
      <dc:date>2015-11-18T00:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68339#M11</link>
      <description>&lt;P&gt;When I tried it with the Get it still did not work. There might be something with the version I'm running. I just test it on 6.1.3, when you have your setup is it for 1 ip address or a range? If its for a range how are you handling the last octet? &lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:33:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68339#M11</guid>
      <dc:creator>murphyj</dc:creator>
      <dc:date>2015-11-18T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68340#M12</link>
      <description>&lt;P&gt;That did work for me. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:31:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68340#M12</guid>
      <dc:creator>murphyj</dc:creator>
      <dc:date>2015-11-18T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68346#M13</link>
      <description>&lt;P&gt;If you want the entire class C address space you could have a three patterns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;111\.2\.3\.. &amp;nbsp; covers&amp;nbsp;0-9&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;111\.2\.3\... &amp;nbsp; covers 10-99&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;111\.2\.3\.... &amp;nbsp;covers 100-255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;the trailing period is a wildcard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Alternatively you can have a pattern for each IP address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:49:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68346#M13</guid>
      <dc:creator>HITSSEC</dc:creator>
      <dc:date>2015-11-18T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Block External to internal when not using FQDN</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68349#M14</link>
      <description>Thank you. Before I got to try that someone I work with recommended 111\.2\.3\.[0-9]+ and that got it all in one statement. I does seem to cover everything, So I will be rolling with that for a bit but if I get false positives I will be using what you recommended.</description>
      <pubDate>Wed, 18 Nov 2015 17:19:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/block-external-to-internal-when-not-using-fqdn/m-p/68349#M14</guid>
      <dc:creator>murphyj</dc:creator>
      <dc:date>2015-11-18T17:19:45Z</dc:date>
    </item>
  </channel>
</rss>

