<?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: Whitelist IP Ranges in serverclass.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79641#M16353</link>
    <description>&lt;P&gt;notice: with the additional mappings. Meaning, it is a regex, but not PCRE compliant, which means I think you're going to run into unexpected behaviors trying to use PCRE straight up in the conf file.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2012 18:06:58 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2012-06-20T18:06:58Z</dc:date>
    <item>
      <title>Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79637#M16349</link>
      <description>&lt;P&gt;I am attempting to whitelist a range of IP addresses in my serverclass.conf but it doesn't seem to be working.  This is the regex that I came up with to match IP Addresses between 10.0.0.0 and 10.49.255.255.&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;[serverClass:pcforwarders]&lt;BR /&gt;
whitelist.0=10.([0-9]|[0-4][0-9]).[0-9]{1,3}.[0-9]{1,3}&lt;BR /&gt;
blacklist.0=10.255.26.*&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;[serverClass:pcforwarders:app:pcforwardersconfigs]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd=true&lt;/P&gt;

&lt;P&gt;[serverClass:pcforwarders:app:pclogcollection]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd=true&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79637#M16349</guid>
      <dc:creator>rmcdougal</dc:creator>
      <dc:date>2012-06-20T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79638#M16350</link>
      <description>&lt;P&gt;I am not sure what your question is, exactly, but here is a great reference for regular expressions. I've linked to the page with an example for IP addresses.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.regular-expressions.info/examples.html"&gt;http://www.regular-expressions.info/examples.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Specifically, I think the following would match what you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10\.[0-4]?[0-9]\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79638#M16350</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-20T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79639#M16351</link>
      <description>&lt;P&gt;AFAIK, You can't use a regex in a serverclass.conf whitelist. The spec file does not show this as being valid.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Serverclassconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Serverclassconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist.&amp;lt;n&amp;gt; = &amp;lt;clientName&amp;gt; | &amp;lt;ip address&amp;gt; | &amp;lt;hostname&amp;gt;
blacklist.&amp;lt;n&amp;gt; = &amp;lt;clientName&amp;gt; | &amp;lt;ip address&amp;gt; | &amp;lt;hostname&amp;gt;
    * 'n' is a number starting at 0, and increasing by 1. Stop looking at the filter when 'n' breaks.
    * The value of this attribute is matched against several things in order:
         * Any clientName specified by the client in its deploymentclient.conf file
         * The ip address of the connected client
         * The hostname of the connected client as provided by reverse DNS lookup
         * The hostname of the client as provided by the client
    * All of these can be used with wildcards.  * will match any sequence of characters.  For example:
        * Match an network range: 10.1.1.*
        * Match a domain: *.splunk.com
    * These patterns are PCRE regular expressions with the additional mappings:
        * '.' is mapped to '\.'
        * '*' is mapped to '.*'
    * Can be overridden at the serverClass level, and the serverClass:app level.
    * There are no whitelist or blacklist entries by default.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79639#M16351</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-06-20T15:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79640#M16352</link>
      <description>&lt;P&gt;Perhaps I misunderstand what this line means "These patterns are PCRE regular expressions..."&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79640#M16352</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-20T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79641#M16353</link>
      <description>&lt;P&gt;notice: with the additional mappings. Meaning, it is a regex, but not PCRE compliant, which means I think you're going to run into unexpected behaviors trying to use PCRE straight up in the conf file.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79641#M16353</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-06-20T18:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist IP Ranges in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79642#M16354</link>
      <description>&lt;P&gt;I have chatted with some folks who say PCRE is fine - now i just need to go test it!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 19:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-IP-Ranges-in-serverclass-conf/m-p/79642#M16354</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-20T19:41:47Z</dc:date>
    </item>
  </channel>
</rss>

