portexclusion both tcp 4000 ::0/0 # exclude any ipv6 for TCP port 4000 in both direction
Note that exclusion has higher priority than inclusion. RNA does not support application/user
-discovery, fingerprint, util_lib_path decoder, enable_banner_grab, etc. The enable_logger config
+discovery, fingerprint, fingerprint reader, enable_banner_grab, etc. The enable_logger config
is to enable/disable sending RNA discovery events to EventManager::call_loggers. Such event logger
or reader is not implemented yet. However, since RNA stores host information into host_cache,
to log the discovered hosts into a file, one can
{ "rna_conf_path", Parameter::PT_STRING, nullptr, nullptr,
"path to rna configuration" },
- { "rna_util_lib_path", Parameter::PT_STRING, nullptr, nullptr,
- "path to library for utilities such as fingerprint decoder" },
-
{ "fingerprint_dir", Parameter::PT_STRING, nullptr, nullptr,
"directory to fingerprint patterns" },
- { "custom_fingerprint_dir", Parameter::PT_STRING, nullptr, nullptr,
- "directory to custom fingerprint patterns" },
-
{ "enable_logger", Parameter::PT_BOOL, nullptr, "true",
"enable or disable writing discovery events into logger" },
{
if (v.is("rna_conf_path"))
mod_conf->rna_conf_path = std::string(v.get_string());
- else if (v.is("rna_util_lib_path"))
- mod_conf->rna_util_lib_path = std::string(v.get_string());
else if (v.is("fingerprint_dir"))
mod_conf->fingerprint_dir = std::string(v.get_string());
- else if (v.is("custom_fingerprint_dir"))
- mod_conf->custom_fingerprint_dir = std::string(v.get_string());
else if (v.is("enable_logger"))
mod_conf->enable_logger = v.get_bool();
else if (v.is("log_when_idle"))
v1.set(Parameter::find(rna_params, "rna_conf_path"));
CHECK(mod.set(nullptr, v1, nullptr) == true);
- Value v2("rna_util.so");
- v2.set(Parameter::find(rna_params, "rna_util_lib_path"));
+ Value v2("/dir/fingerprints");
+ v2.set(Parameter::find(rna_params, "fingerprint_dir"));
CHECK(mod.set(nullptr, v2, nullptr) == true);
- Value v3("/dir/fingerprints");
- v3.set(Parameter::find(rna_params, "fingerprint_dir"));
- CHECK(mod.set(nullptr, v3, nullptr) == true);
-
- Value v4("/dir/custom_fingerprints");
- v4.set(Parameter::find(rna_params, "custom_fingerprint_dir"));
- CHECK(mod.set(nullptr, v4, nullptr) == true);
-
- Value v5("dummy");
- CHECK(mod.set(nullptr, v5, nullptr) == false);
+ Value v3("dummy");
+ CHECK(mod.set(nullptr, v3, nullptr) == false);
CHECK(mod.end("rna", 0, &sc) == true);
RnaModuleConfig* rc = mod.get_config();
CHECK(rc != nullptr);
CHECK(rc->rna_conf_path == "rna.conf");
- CHECK(rc->rna_util_lib_path == "rna_util.so");
CHECK(rc->fingerprint_dir == "/dir/fingerprints");
- CHECK(rc->custom_fingerprint_dir == "/dir/custom_fingerprints");
delete rc;
}