05-26-2015 05:11 PM
Hi, I'm now trying to import domains through CSV files on the Infoblox virtual appliance, right now I can import domains to my predefined blacklist rulesets by using WAPI, however I can not find a way to automatically create a blacklist ruleset using WAPI, anyone can help?
Solved! Go to Solution.
09-14-2015 12:59 PM - edited 09-14-2015 01:00 PM
Hi, you can create the blacklist ruleset itself using CSV imports as well, in a similar manner as you have done for importing the rules.
This is a sample CSV file from the NIOS CSV Import Reference:
header-Ruleset,name*,type*,comment,disabled ruleset,NXD,NXDOMAIN,This is an NXDOMAIN ruleset,FALSE
Also, if you wanted to, in the same CSV file you could first define the ruleset, then add rules to it, as per below:
header-Ruleset,name*,type*,comment,disabled ruleset,BlackListName,NXDOMAIN,This is an NXDOMAIN ruleset,FALSE header-blacklistrule,parent*,domain_name*,action* blacklistrule,BlackListName,foobar.com,REDIRECT
One thing to keep in mind is, a ruleset needs to be defined first in the CSV file before any rules belonging to it (eg in a higher row).
I hope this helps.