NetControl
¶This file defines the types that are used by the NetControl framework.
The most important type defined in this file is NetControl::Rule
,
which is used to describe all rules that can be expressed by the NetControl framework.
Namespace: | NetControl |
---|---|
Source File: | /scripts/base/frameworks/netcontrol/types.bro |
NetControl::default_priority : int &redef |
The default priority that is used when creating rules. |
NetControl::whitelist_priority : int &redef |
The default priority that is used when using the high-level functions to
push whitelist entries to the backends (NetControl::whitelist_address and
NetControl::whitelist_subnet ). |
NetControl::Entity : record |
Type defining the entity a rule is operating on. |
NetControl::EntityType : enum |
Type defining the entity that a rule applies to. |
NetControl::Flow : record |
Flow is used in NetControl::Entity together with NetControl::FLOW to specify
a uni-directional flow that a rule applies to. |
NetControl::FlowInfo : record |
Information of a flow that can be provided by switches when the flow times out. |
NetControl::FlowMod : record |
Type for defining a flow modification action. |
NetControl::Rule : record |
A rule for the framework to put in place. |
NetControl::RuleType : enum |
Type of rules that the framework supports. |
NetControl::TargetType : enum |
Type defining the target of a rule. |
NetControl::whitelist_priority
¶Type: | int |
---|---|
Attributes: | &redef |
Default: | 5 |
The default priority that is used when using the high-level functions to
push whitelist entries to the backends (NetControl::whitelist_address
and
NetControl::whitelist_subnet
).
Note that this priority is not automatically used when manually creating rules
that have a NetControl::RuleType
of NetControl::WHITELIST
.
NetControl::Entity
¶Type: |
|
---|
Type defining the entity a rule is operating on.
NetControl::EntityType
¶Type: |
|
---|
Type defining the entity that a rule applies to.
NetControl::Flow
¶Type: |
|
---|
Flow is used in NetControl::Entity
together with NetControl::FLOW
to specify
a uni-directional flow that a rule applies to.
If optional fields are not set, they are interpreted as wildcarded.
NetControl::FlowInfo
¶Type: |
---|
Information of a flow that can be provided by switches when the flow times out. Currently this is heavily influenced by the data that OpenFlow returns by default. That being said - their design makes sense and this is probably the data one can expect to be available.
NetControl::FlowMod
¶Type: |
---|
Type for defining a flow modification action.
NetControl::Rule
¶Type: |
|
---|
A rule for the framework to put in place. Of all rules currently in place, the first match will be taken, sorted by priority. All further rules will be ignored.
NetControl::RuleType
¶Type: |
|
---|
Type of rules that the framework supports. Each type lists the extra
NetControl::Rule
fields it uses, if any.
Plugins may extend this type to define their own.
NetControl::TargetType
¶Type: |
|
---|
Type defining the target of a rule.
Rules can either be applied to the forward path, affecting all network traffic, or on the monitor path, only affecting the traffic that is sent to Bro. The second is mostly used for shunting, which allows Bro to tell the networking hardware that it wants to no longer see traffic that it identified as benign.