<?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: Log filter for RANGE of IP's or Ports in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/152018#M50298</link>
    <description>&lt;P&gt;for port ranges, you can combine the geq (greater than or equal to) and leq (less than or equal to) with an AND operator, e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; (port.dst geq 53) and (port.dst leq 442)&lt;/PRE&gt;&lt;P&gt;will show DNS and HTTP but not HTTPS or SSH requests&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for IP, I believe your only option is to use CIDR notation, but you can get as specific as you need to with the subnet mask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;( addr.src in 10.0.0.0/29 )&lt;/PRE&gt;&lt;P&gt;will show IPs in the range of 10.0.0.0 - 10.0.0.7 (though .0 is the network and .7 is the broadcast in this case, so those 2 shouldn't show up in results)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 18:01:00 GMT</pubDate>
    <dc:creator>bradk14</dc:creator>
    <dc:date>2017-04-10T18:01:00Z</dc:date>
    <item>
      <title>Log filter for RANGE of IP's or Ports</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/151996#M50294</link>
      <description>&lt;P&gt;Does anyone know the syntax used to create filters for port or IP ranges?&lt;/P&gt;&lt;P&gt;For example, I want to filter on IP's 10.0.0.1-10.0.0.5 9same for port ranges).&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:47:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/151996#M50294</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2017-04-10T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Log filter for RANGE of IP's or Ports</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/152018#M50298</link>
      <description>&lt;P&gt;for port ranges, you can combine the geq (greater than or equal to) and leq (less than or equal to) with an AND operator, e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; (port.dst geq 53) and (port.dst leq 442)&lt;/PRE&gt;&lt;P&gt;will show DNS and HTTP but not HTTPS or SSH requests&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for IP, I believe your only option is to use CIDR notation, but you can get as specific as you need to with the subnet mask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;( addr.src in 10.0.0.0/29 )&lt;/PRE&gt;&lt;P&gt;will show IPs in the range of 10.0.0.0 - 10.0.0.7 (though .0 is the network and .7 is the broadcast in this case, so those 2 shouldn't show up in results)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 18:01:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/152018#M50298</guid>
      <dc:creator>bradk14</dc:creator>
      <dc:date>2017-04-10T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Log filter for RANGE of IP's or Ports</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/152019#M50299</link>
      <description>&lt;P&gt;*edit* Woops,&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/58582"&gt;@bradk14&lt;/a&gt;&amp;nbsp;beat me to it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're referring to one of the tabs/pages that has access to the filter builder then I'd do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( addr.src in 192.168.1.0/24 ) and ((port.dst geq 60) and (port.dst leq 450))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just an example that does both functions but you could easily break that up. &amp;nbsp;This basically searches for everything between 192.168.1.0-192.168.1.255 that goes to a destination port between and including 60 through 450.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the ports you just use geq and leq ("greater than or equal to" and "less than or equal to" respectively).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the IP I don't think you can use those same operators... it looks just just be a "in" or "not in" and it won't accept a range (&lt;SPAN&gt;192.168.1.0-192.168.1.255) so you do it as a subnet instead (192.168.1.0/24).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 18:05:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-filter-for-range-of-ip-s-or-ports/m-p/152019#M50299</guid>
      <dc:creator>jsalmans</dc:creator>
      <dc:date>2017-04-10T18:05:01Z</dc:date>
    </item>
  </channel>
</rss>

