Skip to content

AllowTrafficZone

Bases: ControlTraffic

Action that enables Blue agents to unblock access between two subnets in the network. This functionality mimics reversing firewall rules.

Attributes:

Name Type Description
from_subnet str

name of subnet that the traffic should be unblocked from

to_subnet str

name of subnet that the traffic should be unblocked from going to

Functions

__init__

__init__(session: int, agent: str, from_subnet: str, to_subnet: IPv4Network)

Parameters:

Name Type Description Default
session int

session identifier

required
agent str

name of agent performing action

required
from_subnet str

name of subnet that the traffic should be unblocked from

required
to_subnet IPv4Network

name of subnet that the traffic should be unblocked from going to

required

execute_control_traffic

execute_control_traffic(state: State) -> Observation

Checks for specific pre-existing block, and removes it.

Parameters:

Name Type Description Default
state State

the current state of the environment

required

Returns:

Type Description
Observation

the observation space for this action, holding a true or false success value