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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...