Deployment Architecture

Blacklist IP Ranges in serverclass.conf

trross33
Path Finder

Is it possible to blacklist ip ranges in serverclass.conf? Something like this?

[serverClass:test-type]
machineTypes=windows-intel, linux-i686, linux-x86_64
filterType=whitelist
whitelist.0=*
blacklist.0=192.168.1.130-192.168.1.149

Thanks!

0 Karma

Ayn
Legend

No, ranges or CIDR defined blocks are not supported in the blacklists/whitelists. However the patterns are really PCRE regular expressions, so there's the option of using that, for instance like this (using your example scenario):

[serverClass:test-type]
machineTypes=windows-intel, linux-i686, linux-x86_64
filterType=whitelist
whitelist.0=*
blacklist.0=192.168.1.1[34][0-9]
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...