<?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: Blacklisting IPv4 Ranges on Inputs.conf WinNetMon in Security</title>
    <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589986#M16000</link>
    <description>&lt;P&gt;It will have small high performance impact depending on the network traffic and how much is internal and how much is external.&lt;/P&gt;&lt;P&gt;This will happen at input stage.&lt;/P&gt;&lt;P&gt;So each host will run regex for the current host. Host which has more networking usually has more resources to handle this. So shouldn't be a problem.&lt;/P&gt;&lt;P&gt;I would say you can start with this configuration and monitor the performance impact on the servers which has lot of network traffic.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 11:28:18 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-03-21T11:28:18Z</dc:date>
    <item>
      <title>Blacklisting IPv4 Ranges on Inputs.conf WinNetMon</title>
      <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589841#M15996</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to consider my question. I'm currently working on a solution that would report all outbound IPv4 connections from Windows workstations, but in order to reduce the volume of these logs I'd like to blacklist (or in another sense whitelist) some of the normal (internal) sites that users will be visiting often, so as not to kill our entire license.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I have been closely reading the&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Admin/Inputsconf" target="_self"&gt;inputs.conf Splunk documentation&lt;/A&gt; where&amp;nbsp;it's clear that this functionality is possible using regex, but for some reason mine isn't working.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I am using &lt;A href="https://www.analyticsmarket.com/freetools/ipregex/" target="_self"&gt;analytics markets' IP range regular expression builder&lt;/A&gt;&amp;nbsp;to find the correct syntax, and testing it using the very well known and common tool &lt;A href="https://regex101.com/" target="_self"&gt;regex101&lt;/A&gt;.&lt;/P&gt;&lt;P data-unlink="true"&gt;My inputs.conf (subtracting other configs out of scope of this topic) is as follows:&lt;/P&gt;&lt;P data-unlink="true"&gt;[WinNetMon://OutboundMon]&lt;BR /&gt;disabled=0&lt;BR /&gt;addressFamily=ipv4;ipv6&lt;BR /&gt;direction=outbound&lt;BR /&gt;index=winnetmon&lt;BR /&gt;sourcetype=WinEventLog&lt;BR /&gt;packetType=connect;accept&lt;BR /&gt;protocol=tcp;udp&lt;BR /&gt;blacklist1 = ^10\.(([1-9]?\d|[12]\d\d)\.){2}([1-9]?\d|[12]\d\d)$&lt;BR /&gt;blacklist2 = ^192\.168\.([1-9]|[1-9]\d|[12]\d\d)\.([1-9]?\d|[12]\d\d)$&lt;/P&gt;&lt;P data-unlink="true"&gt;Essentially, just as a test, I am just trying to see if I can eliminate traffic logs from all internal (private) IP ranges, in this case the test ranges being 10.0.0.0/8 and 192.168.0.0/16.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;If I put these in regex101 and enter addresses within each of those ranges they are highlighted, but when I test internal connections and expect no logs to show up, sure enough they still populate for destination addresses within those ranges, so what gives?&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Many thanks in advance&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 15:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589841#M15996</guid>
      <dc:creator>elaborateGecko</dc:creator>
      <dc:date>2022-03-20T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting IPv4 Ranges on Inputs.conf WinNetMon</title>
      <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589847#M15997</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242620"&gt;@elaborateGecko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf spec doesn't say any parameter blacklist is present. So we have to use a different parameter called&amp;nbsp;remoteAddress.&lt;/P&gt;&lt;P&gt;Here is the stanza you can use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[WinNetMon://OutboundMon]
disabled=0
addressFamily=ipv4
direction=outbound
index=winnetmon
sourcetype=WinEventLog
packetType=connect;accept
protocol=tcp;udp
remoteAddress = ^([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(?&amp;lt;!172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31))(?&amp;lt;!127)(?&amp;lt;!^10)(?&amp;lt;!^0)\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(?&amp;lt;!192\.168)(?&amp;lt;!172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31))\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that you want to capture all outbound traffic but only for public internal and not the internal traffic. (Reference where I copy my regex from, so you can confirm whether you need that or something else - &lt;A href="https://stackoverflow.com/questions/33453057/regex-to-only-match-public-ipv4-address" target="_blank"&gt;https://stackoverflow.com/questions/33453057/regex-to-only-match-public-ipv4-address&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Consider accepting the answer if it solves your problem.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 16:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589847#M15997</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-03-20T16:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting IPv4 Ranges on Inputs.conf WinNetMon</title>
      <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589848#M15998</link>
      <description>&lt;P&gt;The blacklist[1-9] settings only apply to WinEventLog stanzas.&amp;nbsp; As I read the inputs.conf.spec file, there are no allow/deny list settings for WinNetMon.&lt;/P&gt;&lt;P&gt;If blacklist1 did apply to WinNetMon then the setting would have to be in the format &lt;FONT face="courier new,courier"&gt;key=regex&lt;/FONT&gt; (which is not true of the example).&amp;nbsp; The list of valid keys does not include an IP address.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 16:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589848#M15998</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-20T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting IPv4 Ranges on Inputs.conf WinNetMon</title>
      <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589860#M15999</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/66729"&gt;@vats&lt;/a&gt;&amp;nbsp;thank you very much for providing such a brilliant workaround. I have since accepted your answer as the solution, and my only other question is do you know of the potential performance impacts from filtering aggressively using regex?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have implemented the config you provided at a large scale than I imagine it has a small overhead, but I just want to know in advance if you've had any trouble with that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 19:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589860#M15999</guid>
      <dc:creator>elaborateGecko</dc:creator>
      <dc:date>2022-03-20T19:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting IPv4 Ranges on Inputs.conf WinNetMon</title>
      <link>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589986#M16000</link>
      <description>&lt;P&gt;It will have small high performance impact depending on the network traffic and how much is internal and how much is external.&lt;/P&gt;&lt;P&gt;This will happen at input stage.&lt;/P&gt;&lt;P&gt;So each host will run regex for the current host. Host which has more networking usually has more resources to handle this. So shouldn't be a problem.&lt;/P&gt;&lt;P&gt;I would say you can start with this configuration and monitor the performance impact on the servers which has lot of network traffic.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 11:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Blacklisting-IPv4-Ranges-on-Inputs-conf-WinNetMon/m-p/589986#M16000</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-03-21T11:28:18Z</dc:date>
    </item>
  </channel>
</rss>

