mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Rename Pacf to NetControl
This commit is contained in:
parent
eb9fbd1258
commit
0e213352d7
61 changed files with 498 additions and 498 deletions
|
@ -1,6 +1,6 @@
|
||||||
##! Implementation of catch-and-release functionality for Pacf
|
##! Implementation of catch-and-release functionality for NetControl
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
## Stops all packets involving an IP address from being forwarded. This function
|
## Stops all packets involving an IP address from being forwarded. This function
|
|
@ -1,20 +1,20 @@
|
||||||
@load ./main
|
@load ./main
|
||||||
@load base/frameworks/cluster
|
@load base/frameworks/cluster
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
## This is the event used to transport add_rule calls to the manager.
|
## This is the event used to transport add_rule calls to the manager.
|
||||||
global cluster_pacf_add_rule: event(r: Rule);
|
global cluster_netcontrol_add_rule: event(r: Rule);
|
||||||
|
|
||||||
## This is the event used to transport remove_rule calls to the manager.
|
## This is the event used to transport remove_rule calls to the manager.
|
||||||
global cluster_pacf_remove_rule: event(id: string);
|
global cluster_netcontrol_remove_rule: event(id: string);
|
||||||
}
|
}
|
||||||
|
|
||||||
## Workers need ability to forward commands to manager.
|
## Workers need ability to forward commands to manager.
|
||||||
redef Cluster::worker2manager_events += /Pacf::cluster_pacf_(add|remove)_rule/;
|
redef Cluster::worker2manager_events += /NetControl::cluster_netcontrol_(add|remove)_rule/;
|
||||||
## Workers need to see the result events from the manager.
|
## Workers need to see the result events from the manager.
|
||||||
redef Cluster::manager2worker_events += /Pacf::rule_(added|removed|timeout|error)/;
|
redef Cluster::manager2worker_events += /NetControl::rule_(added|removed|timeout|error)/;
|
||||||
|
|
||||||
|
|
||||||
function activate(p: PluginState, priority: int)
|
function activate(p: PluginState, priority: int)
|
||||||
|
@ -37,7 +37,7 @@ function add_rule(r: Rule) : string
|
||||||
if ( r$id == "" )
|
if ( r$id == "" )
|
||||||
r$id = cat(Cluster::node, ":", ++local_rule_count);
|
r$id = cat(Cluster::node, ":", ++local_rule_count);
|
||||||
|
|
||||||
event Pacf::cluster_pacf_add_rule(r);
|
event NetControl::cluster_netcontrol_add_rule(r);
|
||||||
return r$id;
|
return r$id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,18 +48,18 @@ function remove_rule(id: string) : bool
|
||||||
return remove_rule_impl(id);
|
return remove_rule_impl(id);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
event Pacf::cluster_pacf_remove_rule(id);
|
event NetControl::cluster_netcontrol_remove_rule(id);
|
||||||
return T; # well, we can't know here. So - just hope...
|
return T; # well, we can't know here. So - just hope...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if ( Cluster::local_node_type() == Cluster::MANAGER )
|
@if ( Cluster::local_node_type() == Cluster::MANAGER )
|
||||||
event Pacf::cluster_pacf_add_rule(r: Rule)
|
event NetControl::cluster_netcontrol_add_rule(r: Rule)
|
||||||
{
|
{
|
||||||
add_rule_impl(r);
|
add_rule_impl(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::cluster_pacf_remove_rule(id: string)
|
event NetControl::cluster_netcontrol_remove_rule(id: string)
|
||||||
{
|
{
|
||||||
remove_rule_impl(id);
|
remove_rule_impl(id);
|
||||||
}
|
}
|
|
@ -10,7 +10,7 @@
|
||||||
##! provides convinience functions for a set of common operations. The
|
##! provides convinience functions for a set of common operations. The
|
||||||
##! low-level API provides full flexibility.
|
##! low-level API provides full flexibility.
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ./plugin
|
@load ./plugin
|
||||||
@load ./types
|
@load ./types
|
||||||
|
@ -195,7 +195,7 @@ export {
|
||||||
## ignored and not passed on to any plugin.
|
## ignored and not passed on to any plugin.
|
||||||
##
|
##
|
||||||
## r: The rule to be added
|
## r: The rule to be added
|
||||||
global Pacf::rule_policy: hook(r: Rule);
|
global NetControl::rule_policy: hook(r: Rule);
|
||||||
|
|
||||||
## Type of an entry in the PACF log.
|
## Type of an entry in the PACF log.
|
||||||
type InfoCategory: enum {
|
type InfoCategory: enum {
|
||||||
|
@ -242,9 +242,9 @@ export {
|
||||||
plugin: string &log &optional;
|
plugin: string &log &optional;
|
||||||
};
|
};
|
||||||
|
|
||||||
## Event that can be handled to access the :bro:type:`Pacf::Info`
|
## Event that can be handled to access the :bro:type:`NetControl::Info`
|
||||||
## record as it is sent on to the logging framework.
|
## record as it is sent on to the logging framework.
|
||||||
global log_pacf: event(rec: Info);
|
global log_netcontrol: event(rec: Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
redef record Rule += {
|
redef record Rule += {
|
||||||
|
@ -261,7 +261,7 @@ global id_to_cids: table[string] of set[count]; # id to cid
|
||||||
|
|
||||||
event bro_init() &priority=5
|
event bro_init() &priority=5
|
||||||
{
|
{
|
||||||
Log::create_stream(Pacf::LOG, [$columns=Info, $ev=log_pacf, $path="pacf"]);
|
Log::create_stream(NetControl::LOG, [$columns=Info, $ev=log_netcontrol, $path="netcontrol"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function entity_to_info(info: Info, e: Entity)
|
function entity_to_info(info: Info, e: Entity)
|
||||||
|
@ -394,7 +394,7 @@ function whitelist_subnet(s: subnet, t: interval, location: string &default="")
|
||||||
|
|
||||||
function shunt_flow(f: flow_id, t: interval, location: string &default="") : string
|
function shunt_flow(f: flow_id, t: interval, location: string &default="") : string
|
||||||
{
|
{
|
||||||
local flow = Pacf::Flow(
|
local flow = NetControl::Flow(
|
||||||
$src_h=addr_to_subnet(f$src_h),
|
$src_h=addr_to_subnet(f$src_h),
|
||||||
$src_p=f$src_p,
|
$src_p=f$src_p,
|
||||||
$dst_h=addr_to_subnet(f$dst_h),
|
$dst_h=addr_to_subnet(f$dst_h),
|
||||||
|
@ -408,7 +408,7 @@ function shunt_flow(f: flow_id, t: interval, location: string &default="") : str
|
||||||
|
|
||||||
function redirect_flow(f: flow_id, out_port: count, t: interval, location: string &default="") : string
|
function redirect_flow(f: flow_id, out_port: count, t: interval, location: string &default="") : string
|
||||||
{
|
{
|
||||||
local flow = Pacf::Flow(
|
local flow = NetControl::Flow(
|
||||||
$src_h=addr_to_subnet(f$src_h),
|
$src_h=addr_to_subnet(f$src_h),
|
||||||
$src_p=f$src_p,
|
$src_p=f$src_p,
|
||||||
$dst_h=addr_to_subnet(f$dst_h),
|
$dst_h=addr_to_subnet(f$dst_h),
|
||||||
|
@ -469,7 +469,7 @@ function add_rule_impl(rule: Rule) : string
|
||||||
if ( ! rule?$id || rule$id == "" )
|
if ( ! rule?$id || rule$id == "" )
|
||||||
rule$id = cat(rule$cid);
|
rule$id = cat(rule$cid);
|
||||||
|
|
||||||
if ( ! hook Pacf::rule_policy(rule) )
|
if ( ! hook NetControl::rule_policy(rule) )
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
local accepted = F;
|
local accepted = F;
|
||||||
|
@ -514,7 +514,7 @@ function remove_single_rule(id: string, cid: count) : bool
|
||||||
{
|
{
|
||||||
if ( [id,cid] !in rules )
|
if ( [id,cid] !in rules )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Rule %s -- %d does not exist in Pacf::remove_single_rule", id, cid));
|
Reporter::error(fmt("Rule %s -- %d does not exist in NetControl::remove_single_rule", id, cid));
|
||||||
return F;
|
return F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ function remove_rule_impl(id: string) : bool
|
||||||
{
|
{
|
||||||
if ( id !in id_to_cids )
|
if ( id !in id_to_cids )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Rule %s does not exist in Pacf::remove_rule", id));
|
Reporter::error(fmt("Rule %s does not exist in NetControl::remove_rule", id));
|
||||||
return F;
|
return F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ function remove_rule_impl(id: string) : bool
|
||||||
{
|
{
|
||||||
if ( [id,cid] !in rules )
|
if ( [id,cid] !in rules )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Internal error in pacf::remove_rule - cid %d does not belong to rule %s", cid, id));
|
Reporter::error(fmt("Internal error in netcontrol::remove_rule - cid %d does not belong to rule %s", cid, id));
|
||||||
delete cids[cid];
|
delete cids[cid];
|
||||||
next;
|
next;
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ./main
|
@load ./main
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ./types
|
@load ./types
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Acld plugin for the pacf framework.
|
# Acld plugin for the netcontrol framework.
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ../plugin
|
@load ../plugin
|
||||||
@load base/frameworks/broker
|
@load base/frameworks/broker
|
||||||
|
@ -41,9 +41,9 @@ export {
|
||||||
global acld_rule_error: event(id: count, r: Rule, msg: string);
|
global acld_rule_error: event(id: count, r: Rule, msg: string);
|
||||||
}
|
}
|
||||||
|
|
||||||
global pacf_acld_topics: set[string] = set();
|
global netcontrol_acld_topics: set[string] = set();
|
||||||
global pacf_acld_id: table[count] of PluginState = table();
|
global netcontrol_acld_id: table[count] of PluginState = table();
|
||||||
global pacf_acld_current_id: count = 0;
|
global netcontrol_acld_current_id: count = 0;
|
||||||
|
|
||||||
const acld_add_to_remove: table[string] of string = {
|
const acld_add_to_remove: table[string] of string = {
|
||||||
["drop"] = "restore",
|
["drop"] = "restore",
|
||||||
|
@ -58,43 +58,43 @@ const acld_add_to_remove: table[string] of string = {
|
||||||
["nullzero "] ="nonullzero"
|
["nullzero "] ="nonullzero"
|
||||||
};
|
};
|
||||||
|
|
||||||
event Pacf::acld_rule_added(id: count, r: Rule, msg: string)
|
event NetControl::acld_rule_added(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_acld_id )
|
if ( id !in netcontrol_acld_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf acld plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl acld plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_acld_id[id];
|
local p = netcontrol_acld_id[id];
|
||||||
|
|
||||||
event Pacf::rule_added(r, p, msg);
|
event NetControl::rule_added(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::acld_rule_removed(id: count, r: Rule, msg: string)
|
event NetControl::acld_rule_removed(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_acld_id )
|
if ( id !in netcontrol_acld_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf acld plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl acld plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_acld_id[id];
|
local p = netcontrol_acld_id[id];
|
||||||
|
|
||||||
event Pacf::rule_removed(r, p, msg);
|
event NetControl::rule_removed(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::acld_rule_error(id: count, r: Rule, msg: string)
|
event NetControl::acld_rule_error(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_acld_id )
|
if ( id !in netcontrol_acld_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf acld plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl acld plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_acld_id[id];
|
local p = netcontrol_acld_id[id];
|
||||||
|
|
||||||
event Pacf::rule_error(r, p, msg);
|
event NetControl::rule_error(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function acld_name(p: PluginState) : string
|
function acld_name(p: PluginState) : string
|
||||||
|
@ -215,15 +215,15 @@ global acld_plugin = Plugin(
|
||||||
|
|
||||||
function create_acld(config: AcldConfig) : PluginState
|
function create_acld(config: AcldConfig) : PluginState
|
||||||
{
|
{
|
||||||
if ( config$acld_topic in pacf_acld_topics )
|
if ( config$acld_topic in netcontrol_acld_topics )
|
||||||
Reporter::warning(fmt("Topic %s was added to Pacf acld plugin twice. Possible duplication of commands", config$acld_topic));
|
Reporter::warning(fmt("Topic %s was added to NetControl acld plugin twice. Possible duplication of commands", config$acld_topic));
|
||||||
else
|
else
|
||||||
add pacf_acld_topics[config$acld_topic];
|
add netcontrol_acld_topics[config$acld_topic];
|
||||||
|
|
||||||
local p: PluginState = [$acld_config=config, $plugin=acld_plugin, $acld_id=pacf_acld_current_id];
|
local p: PluginState = [$acld_config=config, $plugin=acld_plugin, $acld_id=netcontrol_acld_current_id];
|
||||||
|
|
||||||
pacf_acld_id[pacf_acld_current_id] = p;
|
netcontrol_acld_id[netcontrol_acld_current_id] = p;
|
||||||
++pacf_acld_current_id;
|
++netcontrol_acld_current_id;
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
# Broker plugin for the pacf framework. Sends the raw data structures
|
# Broker plugin for the netcontrol framework. Sends the raw data structures
|
||||||
# used in pacf on to Broker to allow for easy handling, e.g., of
|
# used in netcontrol on to Broker to allow for easy handling, e.g., of
|
||||||
# command-line scripts.
|
# command-line scripts.
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ../plugin
|
@load ../plugin
|
||||||
@load base/frameworks/broker
|
@load base/frameworks/broker
|
||||||
|
@ -31,60 +31,60 @@ export {
|
||||||
global broker_rule_timeout: event(id: count, r: Rule, i: FlowInfo);
|
global broker_rule_timeout: event(id: count, r: Rule, i: FlowInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
global pacf_broker_topics: set[string] = set();
|
global netcontrol_broker_topics: set[string] = set();
|
||||||
global pacf_broker_id: table[count] of PluginState = table();
|
global netcontrol_broker_id: table[count] of PluginState = table();
|
||||||
global pacf_broker_current_id: count = 0;
|
global netcontrol_broker_current_id: count = 0;
|
||||||
|
|
||||||
event Pacf::broker_rule_added(id: count, r: Rule, msg: string)
|
event NetControl::broker_rule_added(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_broker_id )
|
if ( id !in netcontrol_broker_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf broker plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl broker plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_broker_id[id];
|
local p = netcontrol_broker_id[id];
|
||||||
|
|
||||||
event Pacf::rule_added(r, p, msg);
|
event NetControl::rule_added(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::broker_rule_removed(id: count, r: Rule, msg: string)
|
event NetControl::broker_rule_removed(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_broker_id )
|
if ( id !in netcontrol_broker_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf broker plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl broker plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_broker_id[id];
|
local p = netcontrol_broker_id[id];
|
||||||
|
|
||||||
event Pacf::rule_removed(r, p, msg);
|
event NetControl::rule_removed(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::broker_rule_error(id: count, r: Rule, msg: string)
|
event NetControl::broker_rule_error(id: count, r: Rule, msg: string)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_broker_id )
|
if ( id !in netcontrol_broker_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf broker plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl broker plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_broker_id[id];
|
local p = netcontrol_broker_id[id];
|
||||||
|
|
||||||
event Pacf::rule_error(r, p, msg);
|
event NetControl::rule_error(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::broker_rule_timeout(id: count, r: Rule, i: FlowInfo)
|
event NetControl::broker_rule_timeout(id: count, r: Rule, i: FlowInfo)
|
||||||
{
|
{
|
||||||
if ( id !in pacf_broker_id )
|
if ( id !in netcontrol_broker_id )
|
||||||
{
|
{
|
||||||
Reporter::error(fmt("Pacf broker plugin with id %d not found, aborting", id));
|
Reporter::error(fmt("NetControl broker plugin with id %d not found, aborting", id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
local p = pacf_broker_id[id];
|
local p = netcontrol_broker_id[id];
|
||||||
|
|
||||||
event Pacf::rule_timeout(r, i, p);
|
event NetControl::rule_timeout(r, i, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function broker_name(p: PluginState) : string
|
function broker_name(p: PluginState) : string
|
||||||
|
@ -129,19 +129,19 @@ global broker_plugin_can_expire = Plugin(
|
||||||
|
|
||||||
function create_broker(host: addr, host_port: port, topic: string, can_expire: bool &default=F) : PluginState
|
function create_broker(host: addr, host_port: port, topic: string, can_expire: bool &default=F) : PluginState
|
||||||
{
|
{
|
||||||
if ( topic in pacf_broker_topics )
|
if ( topic in netcontrol_broker_topics )
|
||||||
Reporter::warning(fmt("Topic %s was added to Pacf broker plugin twice. Possible duplication of commands", topic));
|
Reporter::warning(fmt("Topic %s was added to NetControl broker plugin twice. Possible duplication of commands", topic));
|
||||||
else
|
else
|
||||||
add pacf_broker_topics[topic];
|
add netcontrol_broker_topics[topic];
|
||||||
|
|
||||||
local plugin = broker_plugin;
|
local plugin = broker_plugin;
|
||||||
if ( can_expire )
|
if ( can_expire )
|
||||||
plugin = broker_plugin_can_expire;
|
plugin = broker_plugin_can_expire;
|
||||||
|
|
||||||
local p: PluginState = [$broker_host=host, $broker_port=host_port, $plugin=plugin, $broker_topic=topic, $broker_id=pacf_broker_current_id];
|
local p: PluginState = [$broker_host=host, $broker_port=host_port, $plugin=plugin, $broker_topic=topic, $broker_id=netcontrol_broker_current_id];
|
||||||
|
|
||||||
pacf_broker_id[pacf_broker_current_id] = p;
|
netcontrol_broker_id[netcontrol_broker_current_id] = p;
|
||||||
++pacf_broker_current_id;
|
++netcontrol_broker_current_id;
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
@load ../plugin
|
@load ../plugin
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
## Instantiates a debug plugin for the PACF framework. The debug
|
## Instantiates a debug plugin for the PACF framework. The debug
|
||||||
|
@ -24,7 +24,7 @@ function debug_name(p: PluginState) : string
|
||||||
|
|
||||||
function debug_log(p: PluginState, msg: string)
|
function debug_log(p: PluginState, msg: string)
|
||||||
{
|
{
|
||||||
print fmt("pacf debug (%s): %s", debug_name(p), msg);
|
print fmt("netcontrol debug (%s): %s", debug_name(p), msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function debug_init(p: PluginState)
|
function debug_init(p: PluginState)
|
||||||
|
@ -44,7 +44,7 @@ function debug_add_rule(p: PluginState, r: Rule) : bool
|
||||||
|
|
||||||
if ( do_something(p) )
|
if ( do_something(p) )
|
||||||
{
|
{
|
||||||
event Pacf::rule_added(r, p);
|
event NetControl::rule_added(r, p);
|
||||||
return T;
|
return T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ function debug_remove_rule(p: PluginState, r: Rule) : bool
|
||||||
local s = fmt("remove_rule: %s", r);
|
local s = fmt("remove_rule: %s", r);
|
||||||
debug_log(p, s);
|
debug_log(p, s);
|
||||||
|
|
||||||
event Pacf::rule_removed(r, p);
|
event NetControl::rule_removed(r, p);
|
||||||
return T;
|
return T;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@load ../plugin
|
@load ../plugin
|
||||||
@load base/frameworks/openflow
|
@load base/frameworks/openflow
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
type OfConfig: record {
|
type OfConfig: record {
|
||||||
|
@ -9,7 +9,7 @@ export {
|
||||||
forward: bool &default=T;
|
forward: bool &default=T;
|
||||||
idle_timeout: count &default=0;
|
idle_timeout: count &default=0;
|
||||||
table_id: count &optional;
|
table_id: count &optional;
|
||||||
priority_offset: int &default=+0; ##< add this to all rule priorities. Can be useful if you want the openflow priorities be offset from the pacf priorities without having to write a filter function.
|
priority_offset: int &default=+0; ##< add this to all rule priorities. Can be useful if you want the openflow priorities be offset from the netcontrol priorities without having to write a filter function.
|
||||||
|
|
||||||
check_pred: function(p: PluginState, r: Rule): bool &optional &weaken;
|
check_pred: function(p: PluginState, r: Rule): bool &optional &weaken;
|
||||||
match_pred: function(p: PluginState, e: Entity, m: vector of OpenFlow::ofp_match): vector of OpenFlow::ofp_match &optional &weaken;
|
match_pred: function(p: PluginState, e: Entity, m: vector of OpenFlow::ofp_match): vector of OpenFlow::ofp_match &optional &weaken;
|
||||||
|
@ -17,7 +17,7 @@ export {
|
||||||
};
|
};
|
||||||
|
|
||||||
redef record PluginState += {
|
redef record PluginState += {
|
||||||
## OpenFlow controller for Pacf OpenFlow plugin
|
## OpenFlow controller for NetControl OpenFlow plugin
|
||||||
of_controller: OpenFlow::Controller &optional;
|
of_controller: OpenFlow::Controller &optional;
|
||||||
## OpenFlow configuration record that is passed on initialization
|
## OpenFlow configuration record that is passed on initialization
|
||||||
of_config: OfConfig &optional;
|
of_config: OfConfig &optional;
|
||||||
|
@ -54,7 +54,7 @@ global of_messages: table[count, OpenFlow::ofp_flow_mod_command] of OfTable &cre
|
||||||
|
|
||||||
local p = t[rid, command]$p;
|
local p = t[rid, command]$p;
|
||||||
local r = t[rid, command]$r;
|
local r = t[rid, command]$r;
|
||||||
event Pacf::rule_error(r, p, "Timeout during rule insertion/removal");
|
event NetControl::rule_error(r, p, "Timeout during rule insertion/removal");
|
||||||
return 0secs;
|
return 0secs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -341,9 +341,9 @@ event OpenFlow::flow_mod_success(match: OpenFlow::ofp_match, flow_mod: OpenFlow:
|
||||||
of_flows[id] = OfTable($p=p, $r=r);
|
of_flows[id] = OfTable($p=p, $r=r);
|
||||||
|
|
||||||
if ( flow_mod$command == OpenFlow::OFPFC_ADD )
|
if ( flow_mod$command == OpenFlow::OFPFC_ADD )
|
||||||
event Pacf::rule_added(r, p, msg);
|
event NetControl::rule_added(r, p, msg);
|
||||||
else if ( flow_mod$command == OpenFlow::OFPFC_DELETE || flow_mod$command == OpenFlow::OFPFC_DELETE_STRICT )
|
else if ( flow_mod$command == OpenFlow::OFPFC_DELETE || flow_mod$command == OpenFlow::OFPFC_DELETE_STRICT )
|
||||||
event Pacf::rule_removed(r, p, msg);
|
event NetControl::rule_removed(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event OpenFlow::flow_mod_failure(match: OpenFlow::ofp_match, flow_mod: OpenFlow::ofp_flow_mod, msg: string) &priority=3
|
event OpenFlow::flow_mod_failure(match: OpenFlow::ofp_match, flow_mod: OpenFlow::ofp_flow_mod, msg: string) &priority=3
|
||||||
|
@ -356,7 +356,7 @@ event OpenFlow::flow_mod_failure(match: OpenFlow::ofp_match, flow_mod: OpenFlow:
|
||||||
local p = of_messages[id,flow_mod$command]$p;
|
local p = of_messages[id,flow_mod$command]$p;
|
||||||
delete of_messages[id,flow_mod$command];
|
delete of_messages[id,flow_mod$command];
|
||||||
|
|
||||||
event Pacf::rule_error(r, p, msg);
|
event NetControl::rule_error(r, p, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
event OpenFlow::flow_removed(match: OpenFlow::ofp_match, cookie: count, priority: count, reason: count, duration_sec: count, idle_timeout: count, packet_count: count, byte_count: count)
|
event OpenFlow::flow_removed(match: OpenFlow::ofp_match, cookie: count, priority: count, reason: count, duration_sec: count, idle_timeout: count, packet_count: count, byte_count: count)
|
||||||
|
@ -375,12 +375,12 @@ event OpenFlow::flow_removed(match: OpenFlow::ofp_match, cookie: count, priority
|
||||||
if ( of_flows[id]$c < 2 )
|
if ( of_flows[id]$c < 2 )
|
||||||
return; # will do stuff once the second part arrives...
|
return; # will do stuff once the second part arrives...
|
||||||
else
|
else
|
||||||
event Pacf::rule_timeout(r, FlowInfo($duration=double_to_interval((rec$duration_sec+duration_sec)/2), $packet_count=packet_count+rec$packet_count, $byte_count=byte_count+rec$byte_count), p);
|
event NetControl::rule_timeout(r, FlowInfo($duration=double_to_interval((rec$duration_sec+duration_sec)/2), $packet_count=packet_count+rec$packet_count, $byte_count=byte_count+rec$byte_count), p);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_timeout(r, FlowInfo($duration=double_to_interval(duration_sec+0.0), $packet_count=packet_count, $byte_count=byte_count), p);
|
event NetControl::rule_timeout(r, FlowInfo($duration=double_to_interval(duration_sec+0.0), $packet_count=packet_count, $byte_count=byte_count), p);
|
||||||
}
|
}
|
||||||
|
|
||||||
global openflow_plugin = Plugin(
|
global openflow_plugin = Plugin(
|
|
@ -3,7 +3,7 @@
|
||||||
# and can only add/remove filters for addresses, this is quite
|
# and can only add/remove filters for addresses, this is quite
|
||||||
# limited in scope at the moment.
|
# limited in scope at the moment.
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
@load ../plugin
|
@load ../plugin
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
const default_priority: int = +0 &redef;
|
const default_priority: int = +0 &redef;
|
|
@ -38,7 +38,7 @@
|
||||||
@load base/frameworks/sumstats
|
@load base/frameworks/sumstats
|
||||||
@load base/frameworks/tunnels
|
@load base/frameworks/tunnels
|
||||||
@load base/frameworks/openflow
|
@load base/frameworks/openflow
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
@load base/protocols/conn
|
@load base/protocols/conn
|
||||||
@load base/protocols/dhcp
|
@load base/protocols/dhcp
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
BrokerComm::incoming_connection_established
|
||||||
|
add_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [command=blockhosthost, cookie=2, arg=10.10.1.4 74.53.140.153, comment=here]
|
||||||
|
add_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [command=droptcpport, cookie=3, arg=25, comment=here]
|
||||||
|
add_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1], [command=drop, cookie=4, arg=10.10.1.4/32, comment=]
|
||||||
|
remove_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [command=restorehosthost, cookie=2, arg=10.10.1.4 74.53.140.153, comment=here]
|
||||||
|
remove_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [command=restoretcpport, cookie=3, arg=25, comment=here]
|
||||||
|
remove_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1], [command=restore, cookie=4, arg=10.10.1.4/32, comment=]
|
|
@ -0,0 +1,7 @@
|
||||||
|
BrokerComm::outgoing_connection_established, 127.0.0.1, 9999/tcp
|
||||||
|
rule added, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
rule added, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
rule added, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
||||||
|
rule removed, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
rule removed, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
rule removed, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
@ -0,0 +1,32 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path netcontrol
|
||||||
|
#open 2015-07-08-19-33-09
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
1436383989.876677 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
||||||
|
1436383992.255152 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383992.255152 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383992.255152 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383992.255152 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383994.376366 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383994.376366 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383994.376366 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383994.376366 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383991.768500 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383991.768500 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383993.849722 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383993.849722 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436383993.813850 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436383993.813850 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1436384002.162435 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
#close 2015-07-08-19-33-22
|
|
@ -0,0 +1,9 @@
|
||||||
|
netcontrol debug (Debug-All): init
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::WHITELIST, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=5, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::REDIRECT, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=5, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::WHITELIST, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=5, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::REDIRECT, target=NetControl::FORWARD, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=5, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
@ -0,0 +1,26 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path pacf
|
||||||
|
#open 2015-06-01-22-57-07
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
#close 2015-06-01-22-57-07
|
|
@ -0,0 +1,5 @@
|
||||||
|
BrokerComm::incoming_connection_established
|
||||||
|
add_rule, 0, [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
add_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
remove_rule, 0, [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
remove_rule, 0, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
@ -0,0 +1,7 @@
|
||||||
|
BrokerComm::outgoing_connection_established, 127.0.0.1, 9999/tcp
|
||||||
|
rule added, [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
rule added, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
rule timeout, [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [duration=<uninitialized>, packet_count=<uninitialized>, byte_count=<uninitialized>]
|
||||||
|
rule removed, [ty=NetControl::DROP, target=NetControl::MONITOR, entity=[ty=NetControl::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
rule timeout, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [duration=<uninitialized>, packet_count=<uninitialized>, byte_count=<uninitialized>]
|
||||||
|
rule removed, [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
@ -0,0 +1,11 @@
|
||||||
|
netcontrol debug (Debug-All): init
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=10.0 mins, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 hr, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 day, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): add_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=6, cid=6, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=10.0 mins, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 hr, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 day, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=6, cid=6, _plugin_id=1]
|
||||||
|
netcontrol debug (Debug-All): remove_rule: [ty=NetControl::DROP, target=NetControl::FORWARD, entity=[ty=NetControl::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
@ -0,0 +1,30 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path pacf
|
||||||
|
#open 2015-06-02-22-02-42
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
||||||
|
#close 2015-06-02-22-02-42
|
|
@ -0,0 +1,18 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path netcontrol
|
||||||
|
#open 2015-07-08-19-33-47
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
#close 2015-07-08-19-33-48
|
|
@ -0,0 +1,36 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path pacf
|
||||||
|
#open 2015-06-02-19-34-04
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 10 - Debug-All
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 10 - Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::REDIRECT NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
1254722776.690444 NetControl::RULE REMOVE NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
||||||
|
#close 2015-06-02-19-34-04
|
|
@ -0,0 +1,14 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path netcontrol
|
||||||
|
#open 2015-07-08-19-33-52
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::MONITOR NetControl::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
#close 2015-07-08-19-33-52
|
|
@ -0,0 +1,18 @@
|
||||||
|
#separator \x09
|
||||||
|
#set_separator ,
|
||||||
|
#empty_field (empty)
|
||||||
|
#unset_field -
|
||||||
|
#path netcontrol
|
||||||
|
#open 2015-07-08-19-33-55
|
||||||
|
#fields ts category cmd state action target entity_type entity msg location plugin
|
||||||
|
#types time enum string enum string enum string string string string string
|
||||||
|
0.000000 NetControl::MESSAGE - - - - - - activated plugin with priority 0 - Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::DROP NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->*/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::MODIFY NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->8.8.8.8/32/53 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::MODIFY NetControl::FORWARD NetControl::FLOW 8.8.8.8/32/53->10.10.1.4/32/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::REQUESTED NetControl::WHITELIST NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->192.169.18.1/32/80 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::DROP NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->*/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::MODIFY NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->8.8.8.8/32/53 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::MODIFY NetControl::FORWARD NetControl::FLOW 8.8.8.8/32/53->10.10.1.4/32/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
1254722767.875996 NetControl::RULE ADD NetControl::SUCCEEDED NetControl::WHITELIST NetControl::FORWARD NetControl::FLOW 10.10.1.4/32/*->192.169.18.1/32/80 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
||||||
|
#close 2015-07-08-19-33-55
|
|
@ -1,7 +0,0 @@
|
||||||
BrokerComm::incoming_connection_established
|
|
||||||
add_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [command=blockhosthost, cookie=2, arg=10.10.1.4 74.53.140.153, comment=here]
|
|
||||||
add_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [command=droptcpport, cookie=3, arg=25, comment=here]
|
|
||||||
add_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1], [command=drop, cookie=4, arg=10.10.1.4/32, comment=]
|
|
||||||
remove_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [command=restorehosthost, cookie=2, arg=10.10.1.4 74.53.140.153, comment=here]
|
|
||||||
remove_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [command=restoretcpport, cookie=3, arg=25, comment=here]
|
|
||||||
remove_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1], [command=restore, cookie=4, arg=10.10.1.4/32, comment=]
|
|
|
@ -1,7 +0,0 @@
|
||||||
BrokerComm::outgoing_connection_established, 127.0.0.1, 9999/tcp
|
|
||||||
rule added, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
rule added, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
rule added, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
||||||
rule removed, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=<uninitialized>, dst_h=74.53.140.153/32, dst_p=<uninitialized>, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
rule removed, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=<uninitialized>, src_p=<uninitialized>, dst_h=<uninitialized>, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=here, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
rule removed, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
|
@ -1,32 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-05-28-00-59-14
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
1432774754.087659 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
|
||||||
1432774756.519062 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774756.519062 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774756.519062 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774756.519062 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774758.581184 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774758.581184 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774758.581184 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774758.581184 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774756.036263 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774756.036263 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774757.774649 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774757.774649 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774758.070948 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774758.070948 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1432774766.388890 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
#close 2015-05-28-00-59-26
|
|
|
@ -1,9 +0,0 @@
|
||||||
pacf debug (Debug-All): init
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::WHITELIST, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=5, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::REDIRECT, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=5, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::WHITELIST, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=15.0 secs, priority=5, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::REDIRECT, target=Pacf::FORWARD, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=5, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=30.0 secs, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
|
@ -1,26 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-06-01-22-57-07
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
#close 2015-06-01-22-57-07
|
|
|
@ -1,5 +0,0 @@
|
||||||
BrokerComm::incoming_connection_established
|
|
||||||
add_rule, 0, [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
add_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
remove_rule, 0, [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
remove_rule, 0, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
|
@ -1,7 +0,0 @@
|
||||||
BrokerComm::outgoing_connection_established, 127.0.0.1, 9999/tcp
|
|
||||||
rule added, [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
rule added, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
rule timeout, [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1], [duration=<uninitialized>, packet_count=<uninitialized>, byte_count=<uninitialized>]
|
|
||||||
rule removed, [ty=Pacf::DROP, target=Pacf::MONITOR, entity=[ty=Pacf::FLOW, conn=<uninitialized>, flow=[src_h=10.10.1.4/32, src_p=1470/tcp, dst_h=74.53.140.153/32, dst_p=25/tcp, src_m=<uninitialized>, dst_m=<uninitialized>], ip=<uninitialized>, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
rule timeout, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1], [duration=<uninitialized>, packet_count=<uninitialized>, byte_count=<uninitialized>]
|
|
||||||
rule removed, [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=36000.0, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
|
@ -1,11 +0,0 @@
|
||||||
pacf debug (Debug-All): init
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=10.0 mins, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 hr, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 day, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): add_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=6, cid=6, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=10.0 mins, priority=0, location=, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=2, cid=2, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 hr, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=3, cid=3, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=1.0 day, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=4, cid=4, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=6, cid=6, _plugin_id=1]
|
|
||||||
pacf debug (Debug-All): remove_rule: [ty=Pacf::DROP, target=Pacf::FORWARD, entity=[ty=Pacf::ADDRESS, conn=<uninitialized>, flow=<uninitialized>, ip=10.10.1.4/32, mac=<uninitialized>], expire=7.0 days, priority=0, location=Re-drop by catch-and-release, c=<uninitialized>, i=<uninitialized>, d=<uninitialized>, s=<uninitialized>, mod=<uninitialized>, id=5, cid=5, _plugin_id=1]
|
|
|
@ -1,30 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-06-02-22-02-42
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - Re-drop by catch-and-release Debug-All
|
|
||||||
#close 2015-06-02-22-02-42
|
|
|
@ -1,18 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-06-02-21-23-05
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 0.0.0.0/0/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
#close 2015-06-02-21-23-05
|
|
|
@ -1,36 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-06-02-19-34-04
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 10 - Debug-All
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 10 - Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::REDIRECT Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
1254722776.690444 Pacf::RULE REMOVE Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Debug-All
|
|
||||||
#close 2015-06-02-19-34-04
|
|
|
@ -1,14 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-05-15-18-21-40
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::MONITOR Pacf::FLOW 10.10.1.4/32/1470->74.53.140.153/32/25 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::ADDRESS 10.10.1.4/32 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
#close 2015-05-15-18-21-40
|
|
|
@ -1,18 +0,0 @@
|
||||||
#separator \x09
|
|
||||||
#set_separator ,
|
|
||||||
#empty_field (empty)
|
|
||||||
#unset_field -
|
|
||||||
#path pacf
|
|
||||||
#open 2015-06-04-23-18-56
|
|
||||||
#fields ts category cmd state action target entity_type entity msg location plugin
|
|
||||||
#types time enum string enum string enum string string string string string
|
|
||||||
0.000000 Pacf::MESSAGE - - - - - - activated plugin with priority 0 - Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::DROP Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->*/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::MODIFY Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->8.8.8.8/32/53 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::MODIFY Pacf::FORWARD Pacf::FLOW 8.8.8.8/32/53->10.10.1.4/32/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::REQUESTED Pacf::WHITELIST Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->192.169.18.1/32/80 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::DROP Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->*/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::MODIFY Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->8.8.8.8/32/53 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::MODIFY Pacf::FORWARD Pacf::FLOW 8.8.8.8/32/53->10.10.1.4/32/* - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
1254722767.875996 Pacf::RULE ADD Pacf::SUCCEEDED Pacf::WHITELIST Pacf::FORWARD Pacf::FLOW 10.10.1.4/32/*->192.169.18.1/32/80 - (empty) Openflow - OpenFlog Log Plugin - DPID 42
|
|
||||||
#close 2015-06-04-23-18-56
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
@TEST-START-FILE send.bro
|
@TEST-START-FILE send.bro
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
const broker_port: port &redef;
|
const broker_port: port &redef;
|
||||||
redef exit_only_after_terminate = T;
|
redef exit_only_after_terminate = T;
|
||||||
|
@ -17,8 +17,8 @@ redef exit_only_after_terminate = T;
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
suspend_processing();
|
suspend_processing();
|
||||||
local pacf_acld = Pacf::create_acld(Pacf::AcldConfig($acld_host=127.0.0.1, $acld_port=broker_port, $acld_topic="bro/event/pacftest"));
|
local netcontrol_acld = NetControl::create_acld(NetControl::AcldConfig($acld_host=127.0.0.1, $acld_port=broker_port, $acld_topic="bro/event/netcontroltest"));
|
||||||
Pacf::activate(pacf_acld, 0);
|
NetControl::activate(netcontrol_acld, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
event BrokerComm::outgoing_connection_established(peer_address: string,
|
event BrokerComm::outgoing_connection_established(peer_address: string,
|
||||||
|
@ -39,31 +39,31 @@ event connection_established(c: connection)
|
||||||
{
|
{
|
||||||
local id = c$id;
|
local id = c$id;
|
||||||
|
|
||||||
local flow1 = Pacf::Flow(
|
local flow1 = NetControl::Flow(
|
||||||
$src_h=addr_to_subnet(c$id$orig_h),
|
$src_h=addr_to_subnet(c$id$orig_h),
|
||||||
$dst_h=addr_to_subnet(c$id$resp_h)
|
$dst_h=addr_to_subnet(c$id$resp_h)
|
||||||
);
|
);
|
||||||
local e1: Pacf::Entity = [$ty=Pacf::FLOW, $flow=flow1];
|
local e1: NetControl::Entity = [$ty=NetControl::FLOW, $flow=flow1];
|
||||||
local r1: Pacf::Rule = [$ty=Pacf::DROP, $target=Pacf::FORWARD, $entity=e1, $expire=10hrs, $location="here"];
|
local r1: NetControl::Rule = [$ty=NetControl::DROP, $target=NetControl::FORWARD, $entity=e1, $expire=10hrs, $location="here"];
|
||||||
|
|
||||||
local flow2 = Pacf::Flow(
|
local flow2 = NetControl::Flow(
|
||||||
$dst_p=c$id$resp_p
|
$dst_p=c$id$resp_p
|
||||||
);
|
);
|
||||||
local e2: Pacf::Entity = [$ty=Pacf::FLOW, $flow=flow2];
|
local e2: NetControl::Entity = [$ty=NetControl::FLOW, $flow=flow2];
|
||||||
local r2: Pacf::Rule = [$ty=Pacf::DROP, $target=Pacf::FORWARD, $entity=e2, $expire=10hrs, $location="here"];
|
local r2: NetControl::Rule = [$ty=NetControl::DROP, $target=NetControl::FORWARD, $entity=e2, $expire=10hrs, $location="here"];
|
||||||
|
|
||||||
Pacf::add_rule(r1);
|
NetControl::add_rule(r1);
|
||||||
Pacf::add_rule(r2);
|
NetControl::add_rule(r2);
|
||||||
Pacf::drop_address(id$orig_h, 10hrs);
|
NetControl::drop_address(id$orig_h, 10hrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_added(r: Pacf::Rule, p: Pacf::PluginState, msg: string)
|
event NetControl::rule_added(r: NetControl::Rule, p: NetControl::PluginState, msg: string)
|
||||||
{
|
{
|
||||||
print "rule added", r;
|
print "rule added", r;
|
||||||
Pacf::remove_rule(r$id);
|
NetControl::remove_rule(r$id);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_removed(r: Pacf::Rule, p: Pacf::PluginState, msg: string)
|
event NetControl::rule_removed(r: NetControl::Rule, p: NetControl::PluginState, msg: string)
|
||||||
{
|
{
|
||||||
print "rule removed", r;
|
print "rule removed", r;
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ event Pacf::rule_removed(r: Pacf::Rule, p: Pacf::PluginState, msg: string)
|
||||||
|
|
||||||
@TEST-START-FILE recv.bro
|
@TEST-START-FILE recv.bro
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
@load base/frameworks/broker
|
@load base/frameworks/broker
|
||||||
|
|
||||||
const broker_port: port &redef;
|
const broker_port: port &redef;
|
||||||
|
@ -81,7 +81,7 @@ redef exit_only_after_terminate = T;
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
BrokerComm::enable();
|
BrokerComm::enable();
|
||||||
BrokerComm::subscribe_to_events("bro/event/pacftest");
|
BrokerComm::subscribe_to_events("bro/event/netcontroltest");
|
||||||
BrokerComm::listen(broker_port, "127.0.0.1");
|
BrokerComm::listen(broker_port, "127.0.0.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,18 +90,18 @@ event BrokerComm::incoming_connection_established(peer_name: string)
|
||||||
print "BrokerComm::incoming_connection_established";
|
print "BrokerComm::incoming_connection_established";
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::acld_add_rule(id: count, r: Pacf::Rule, ar: Pacf::AclRule)
|
event NetControl::acld_add_rule(id: count, r: NetControl::Rule, ar: NetControl::AclRule)
|
||||||
{
|
{
|
||||||
print "add_rule", id, r, ar;
|
print "add_rule", id, r, ar;
|
||||||
|
|
||||||
BrokerComm::event("bro/event/pacftest", BrokerComm::event_args(Pacf::acld_rule_added, id, r, ar$command));
|
BrokerComm::event("bro/event/netcontroltest", BrokerComm::event_args(NetControl::acld_rule_added, id, r, ar$command));
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::acld_remove_rule(id: count, r: Pacf::Rule, ar: Pacf::AclRule)
|
event NetControl::acld_remove_rule(id: count, r: NetControl::Rule, ar: NetControl::AclRule)
|
||||||
{
|
{
|
||||||
print "remove_rule", id, r, ar;
|
print "remove_rule", id, r, ar;
|
||||||
|
|
||||||
BrokerComm::event("bro/event/pacftest", BrokerComm::event_args(Pacf::acld_rule_removed, id, r, ar$command));
|
BrokerComm::event("bro/event/netcontroltest", BrokerComm::event_args(NetControl::acld_rule_removed, id, r, ar$command));
|
||||||
|
|
||||||
if ( r$cid == 4 )
|
if ( r$cid == 4 )
|
||||||
terminate();
|
terminate();
|
|
@ -6,7 +6,7 @@
|
||||||
# @TEST-EXEC: sleep 1
|
# @TEST-EXEC: sleep 1
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 "cp ../cluster-layout.bro . && CLUSTER_NODE=worker-2 bro --pseudo-realtime -C -r $TRACES/smtp.trace %INPUT"
|
# @TEST-EXEC: btest-bg-run worker-2 "cp ../cluster-layout.bro . && CLUSTER_NODE=worker-2 bro --pseudo-realtime -C -r $TRACES/smtp.trace %INPUT"
|
||||||
# @TEST-EXEC: btest-bg-wait 20
|
# @TEST-EXEC: btest-bg-wait 20
|
||||||
# @TEST-EXEC: btest-diff manager-1/pacf.log
|
# @TEST-EXEC: btest-diff manager-1/netcontrol.log
|
||||||
# @TEST-EXEC: btest-diff worker-1/.stdout
|
# @TEST-EXEC: btest-diff worker-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff worker-2/.stdout
|
# @TEST-EXEC: btest-diff worker-2/.stdout
|
||||||
|
|
||||||
|
@ -21,19 +21,19 @@ redef Cluster::nodes = {
|
||||||
redef Log::default_rotation_interval = 0secs;
|
redef Log::default_rotation_interval = 0secs;
|
||||||
#redef exit_only_after_terminate = T;
|
#redef exit_only_after_terminate = T;
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
local pacf_debug = Pacf::create_debug(T);
|
local netcontrol_debug = NetControl::create_debug(T);
|
||||||
Pacf::activate(pacf_debug, 0);
|
NetControl::activate(netcontrol_debug, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
event connection_established(c: connection)
|
event connection_established(c: connection)
|
||||||
{
|
{
|
||||||
local id = c$id;
|
local id = c$id;
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
||||||
Pacf::drop_address(id$orig_h, 15sec);
|
NetControl::drop_address(id$orig_h, 15sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
event terminate_me() {
|
event terminate_me() {
|
||||||
|
@ -44,7 +44,7 @@ event remote_connection_closed(p: event_peer) {
|
||||||
schedule 1sec { terminate_me() };
|
schedule 1sec { terminate_me() };
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_added(r: Pacf::Rule, p: Pacf::PluginState, msg: string &default="")
|
event NetControl::rule_added(r: NetControl::Rule, p: NetControl::PluginState, msg: string &default="")
|
||||||
{
|
{
|
||||||
print "Rule added", r$id, r$cid;
|
print "Rule added", r$id, r$cid;
|
||||||
}
|
}
|
20
testing/btest/scripts/base/frameworks/netcontrol/basic.bro
Normal file
20
testing/btest/scripts/base/frameworks/netcontrol/basic.bro
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff netcontrol.log
|
||||||
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff .stdout
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
local netcontrol_debug = NetControl::create_debug(T);
|
||||||
|
NetControl::activate(netcontrol_debug, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
local id = c$id;
|
||||||
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
||||||
|
NetControl::drop_address(id$orig_h, 15sec);
|
||||||
|
NetControl::whitelist_address(id$orig_h, 15sec);
|
||||||
|
NetControl::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
||||||
|
}
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
@TEST-START-FILE send.bro
|
@TEST-START-FILE send.bro
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
const broker_port: port &redef;
|
const broker_port: port &redef;
|
||||||
redef exit_only_after_terminate = T;
|
redef exit_only_after_terminate = T;
|
||||||
|
@ -17,8 +17,8 @@ redef exit_only_after_terminate = T;
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
suspend_processing();
|
suspend_processing();
|
||||||
local pacf_broker = Pacf::create_broker(127.0.0.1, broker_port, "bro/event/pacftest", T);
|
local netcontrol_broker = NetControl::create_broker(127.0.0.1, broker_port, "bro/event/netcontroltest", T);
|
||||||
Pacf::activate(pacf_broker, 0);
|
NetControl::activate(netcontrol_broker, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
event BrokerComm::outgoing_connection_established(peer_address: string,
|
event BrokerComm::outgoing_connection_established(peer_address: string,
|
||||||
|
@ -38,22 +38,22 @@ event BrokerComm::outgoing_connection_broken(peer_address: string,
|
||||||
event connection_established(c: connection)
|
event connection_established(c: connection)
|
||||||
{
|
{
|
||||||
local id = c$id;
|
local id = c$id;
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 10hrs);
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 10hrs);
|
||||||
Pacf::drop_address(id$orig_h, 10hrs);
|
NetControl::drop_address(id$orig_h, 10hrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_added(r: Pacf::Rule, p: Pacf::PluginState, msg: string)
|
event NetControl::rule_added(r: NetControl::Rule, p: NetControl::PluginState, msg: string)
|
||||||
{
|
{
|
||||||
print "rule added", r;
|
print "rule added", r;
|
||||||
Pacf::remove_rule(r$id);
|
NetControl::remove_rule(r$id);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_removed(r: Pacf::Rule, p: Pacf::PluginState, msg: string)
|
event NetControl::rule_removed(r: NetControl::Rule, p: NetControl::PluginState, msg: string)
|
||||||
{
|
{
|
||||||
print "rule removed", r;
|
print "rule removed", r;
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::rule_timeout(r: Pacf::Rule, i: Pacf::FlowInfo, p: Pacf::PluginState)
|
event NetControl::rule_timeout(r: NetControl::Rule, i: NetControl::FlowInfo, p: NetControl::PluginState)
|
||||||
{
|
{
|
||||||
print "rule timeout", r, i;
|
print "rule timeout", r, i;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ event Pacf::rule_timeout(r: Pacf::Rule, i: Pacf::FlowInfo, p: Pacf::PluginState)
|
||||||
|
|
||||||
@TEST-START-FILE recv.bro
|
@TEST-START-FILE recv.bro
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
@load base/frameworks/broker
|
@load base/frameworks/broker
|
||||||
|
|
||||||
const broker_port: port &redef;
|
const broker_port: port &redef;
|
||||||
|
@ -71,7 +71,7 @@ redef exit_only_after_terminate = T;
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
BrokerComm::enable();
|
BrokerComm::enable();
|
||||||
BrokerComm::subscribe_to_events("bro/event/pacftest");
|
BrokerComm::subscribe_to_events("bro/event/netcontroltest");
|
||||||
BrokerComm::listen(broker_port, "127.0.0.1");
|
BrokerComm::listen(broker_port, "127.0.0.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,19 +80,19 @@ event BrokerComm::incoming_connection_established(peer_name: string)
|
||||||
print "BrokerComm::incoming_connection_established";
|
print "BrokerComm::incoming_connection_established";
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::broker_add_rule(id: count, r: Pacf::Rule)
|
event NetControl::broker_add_rule(id: count, r: NetControl::Rule)
|
||||||
{
|
{
|
||||||
print "add_rule", id, r;
|
print "add_rule", id, r;
|
||||||
|
|
||||||
BrokerComm::event("bro/event/pacftest", BrokerComm::event_args(Pacf::broker_rule_added, id, r, ""));
|
BrokerComm::event("bro/event/netcontroltest", BrokerComm::event_args(NetControl::broker_rule_added, id, r, ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
event Pacf::broker_remove_rule(id: count, r: Pacf::Rule)
|
event NetControl::broker_remove_rule(id: count, r: NetControl::Rule)
|
||||||
{
|
{
|
||||||
print "remove_rule", id, r;
|
print "remove_rule", id, r;
|
||||||
|
|
||||||
BrokerComm::event("bro/event/pacftest", BrokerComm::event_args(Pacf::broker_rule_timeout, id, r, Pacf::FlowInfo()));
|
BrokerComm::event("bro/event/netcontroltest", BrokerComm::event_args(NetControl::broker_rule_timeout, id, r, NetControl::FlowInfo()));
|
||||||
BrokerComm::event("bro/event/pacftest", BrokerComm::event_args(Pacf::broker_rule_removed, id, r, ""));
|
BrokerComm::event("bro/event/netcontroltest", BrokerComm::event_args(NetControl::broker_rule_removed, id, r, ""));
|
||||||
|
|
||||||
if ( r$cid == 3 )
|
if ( r$cid == 3 )
|
||||||
terminate();
|
terminate();
|
|
@ -1,23 +1,23 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff pacf.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff netcontrol.log
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff .stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff .stdout
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
local pacf_debug = Pacf::create_debug(T);
|
local netcontrol_debug = NetControl::create_debug(T);
|
||||||
Pacf::activate(pacf_debug, 0);
|
NetControl::activate(netcontrol_debug, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
module Pacf;
|
module NetControl;
|
||||||
|
|
||||||
event connection_established(c: connection)
|
event connection_established(c: connection)
|
||||||
{
|
{
|
||||||
local id = c$id;
|
local id = c$id;
|
||||||
Pacf::drop_address_catch_release(id$orig_h);
|
NetControl::drop_address_catch_release(id$orig_h);
|
||||||
# second one should be ignored because duplicate
|
# second one should be ignored because duplicate
|
||||||
Pacf::drop_address_catch_release(id$orig_h);
|
NetControl::drop_address_catch_release(id$orig_h);
|
||||||
|
|
||||||
# mean call directly into framework - simulate new connection
|
# mean call directly into framework - simulate new connection
|
||||||
delete current_blocks[id$orig_h];
|
delete current_blocks[id$orig_h];
|
27
testing/btest/scripts/base/frameworks/netcontrol/hook.bro
Normal file
27
testing/btest/scripts/base/frameworks/netcontrol/hook.bro
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: btest-diff netcontrol.log
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
local netcontrol_debug = NetControl::create_debug(T);
|
||||||
|
NetControl::activate(netcontrol_debug, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
local id = c$id;
|
||||||
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
||||||
|
NetControl::drop_address(id$orig_h, 15sec);
|
||||||
|
NetControl::whitelist_address(id$orig_h, 15sec);
|
||||||
|
NetControl::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
||||||
|
}
|
||||||
|
|
||||||
|
hook NetControl::rule_policy(r: NetControl::Rule)
|
||||||
|
{
|
||||||
|
if ( r$expire == 15sec )
|
||||||
|
break;
|
||||||
|
|
||||||
|
r$entity$flow$src_h = 0.0.0.0/0;
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff netcontrol.log
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
local netcontrol_debug = NetControl::create_debug(T);
|
||||||
|
local netcontrol_debug_2 = NetControl::create_debug(T);
|
||||||
|
local of_controller = OpenFlow::log_new(42);
|
||||||
|
local netcontrol_of = NetControl::create_openflow(of_controller);
|
||||||
|
NetControl::activate(netcontrol_debug, 10);
|
||||||
|
NetControl::activate(netcontrol_of, 10);
|
||||||
|
NetControl::activate(netcontrol_debug_2, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
local id = c$id;
|
||||||
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
||||||
|
NetControl::drop_address(id$orig_h, 15sec);
|
||||||
|
NetControl::whitelist_address(id$orig_h, 15sec);
|
||||||
|
NetControl::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: btest-diff netcontrol.log
|
||||||
|
# @TEST-EXEC: btest-diff openflow.log
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
global of_controller: OpenFlow::Controller;
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
of_controller = OpenFlow::log_new(42);
|
||||||
|
local netcontrol_of = NetControl::create_openflow(of_controller);
|
||||||
|
NetControl::activate(netcontrol_of, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
local id = c$id;
|
||||||
|
NetControl::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
||||||
|
NetControl::drop_address(id$orig_h, 15sec);
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: btest-diff conn.log
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
local netcontrol_packetfilter = NetControl::create_packetfilter();
|
||||||
|
NetControl::activate(netcontrol_packetfilter, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
local e = NetControl::Entity($ty=NetControl::ADDRESS, $ip=addr_to_subnet(c$id$orig_h));
|
||||||
|
local r = NetControl::Rule($ty=NetControl::DROP, $target=NetControl::MONITOR, $entity=e, $expire=10min);
|
||||||
|
|
||||||
|
NetControl::add_rule(r);
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||||
|
# @TEST-EXEC: btest-diff netcontrol.log
|
||||||
|
# @TEST-EXEC: btest-diff openflow.log
|
||||||
|
|
||||||
|
@load base/frameworks/netcontrol
|
||||||
|
|
||||||
|
global of_controller: OpenFlow::Controller;
|
||||||
|
|
||||||
|
event bro_init()
|
||||||
|
{
|
||||||
|
of_controller = OpenFlow::log_new(42);
|
||||||
|
local netcontrol_of = NetControl::create_openflow(of_controller);
|
||||||
|
NetControl::activate(netcontrol_of, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
event connection_established(c: connection)
|
||||||
|
{
|
||||||
|
NetControl::quarantine_host(c$id$orig_h, 8.8.8.8, 192.169.18.1, 10hrs);
|
||||||
|
}
|
|
@ -1,20 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff pacf.log
|
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff .stdout
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
local pacf_debug = Pacf::create_debug(T);
|
|
||||||
Pacf::activate(pacf_debug, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
local id = c$id;
|
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
|
||||||
Pacf::drop_address(id$orig_h, 15sec);
|
|
||||||
Pacf::whitelist_address(id$orig_h, 15sec);
|
|
||||||
Pacf::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: btest-diff pacf.log
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
local pacf_debug = Pacf::create_debug(T);
|
|
||||||
Pacf::activate(pacf_debug, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
local id = c$id;
|
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
|
||||||
Pacf::drop_address(id$orig_h, 15sec);
|
|
||||||
Pacf::whitelist_address(id$orig_h, 15sec);
|
|
||||||
Pacf::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
|
||||||
}
|
|
||||||
|
|
||||||
hook Pacf::rule_policy(r: Pacf::Rule)
|
|
||||||
{
|
|
||||||
if ( r$expire == 15sec )
|
|
||||||
break;
|
|
||||||
|
|
||||||
r$entity$flow$src_h = 0.0.0.0/0;
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER='grep -v ^# | $SCRIPTS/diff-sort' btest-diff pacf.log
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
local pacf_debug = Pacf::create_debug(T);
|
|
||||||
local pacf_debug_2 = Pacf::create_debug(T);
|
|
||||||
local of_controller = OpenFlow::log_new(42);
|
|
||||||
local pacf_of = Pacf::create_openflow(of_controller);
|
|
||||||
Pacf::activate(pacf_debug, 10);
|
|
||||||
Pacf::activate(pacf_of, 10);
|
|
||||||
Pacf::activate(pacf_debug_2, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
local id = c$id;
|
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
|
||||||
Pacf::drop_address(id$orig_h, 15sec);
|
|
||||||
Pacf::whitelist_address(id$orig_h, 15sec);
|
|
||||||
Pacf::redirect_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 5, 30sec);
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: btest-diff pacf.log
|
|
||||||
# @TEST-EXEC: btest-diff openflow.log
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
global of_controller: OpenFlow::Controller;
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
of_controller = OpenFlow::log_new(42);
|
|
||||||
local pacf_of = Pacf::create_openflow(of_controller);
|
|
||||||
Pacf::activate(pacf_of, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
local id = c$id;
|
|
||||||
Pacf::shunt_flow([$src_h=id$orig_h, $src_p=id$orig_p, $dst_h=id$resp_h, $dst_p=id$resp_p], 30sec);
|
|
||||||
Pacf::drop_address(id$orig_h, 15sec);
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: btest-diff conn.log
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
local pacf_packetfilter = Pacf::create_packetfilter();
|
|
||||||
Pacf::activate(pacf_packetfilter, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
local e = Pacf::Entity($ty=Pacf::ADDRESS, $ip=addr_to_subnet(c$id$orig_h));
|
|
||||||
local r = Pacf::Rule($ty=Pacf::DROP, $target=Pacf::MONITOR, $entity=e, $expire=10min);
|
|
||||||
|
|
||||||
Pacf::add_rule(r);
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
|
||||||
# @TEST-EXEC: btest-diff pacf.log
|
|
||||||
# @TEST-EXEC: btest-diff openflow.log
|
|
||||||
|
|
||||||
@load base/frameworks/pacf
|
|
||||||
|
|
||||||
global of_controller: OpenFlow::Controller;
|
|
||||||
|
|
||||||
event bro_init()
|
|
||||||
{
|
|
||||||
of_controller = OpenFlow::log_new(42);
|
|
||||||
local pacf_of = Pacf::create_openflow(of_controller);
|
|
||||||
Pacf::activate(pacf_of, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
event connection_established(c: connection)
|
|
||||||
{
|
|
||||||
Pacf::quarantine_host(c$id$orig_h, 8.8.8.8, 192.169.18.1, 10hrs);
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue