struct

Pared::Safety::ServiceExposure

Inherits Struct < Value < Object

One actionable row per port/protocol: what listens on it, what the firewall does with it, and the rule removals that change that.

Constants

STATE_ORDER = {ExposureState::GhostOpening => 0, ExposureState::ShadowBlock => 1, ExposureState::Exposed => 2, ExposureState::LocalOnly => 3, ExposureState::Unknown => 4}

Constructors

new(state : ExposureState, port : Int32, protocol : String, service_name : String | Nil = nil, zones : Array(String) = [] of String, bind_ip : String | Nil = nil, exposures : Array(ExposedPort) = [] of ExposedPort, source_spec : String | Nil = nil, message : String | Nil = nil)
Source

Class methods

compile(exposed_ports : Array(ExposedPort), listening_sockets : Array(ListeningSocket), anomalies : Array(SocketAnomaly)) : Array(ServiceExposure)
Source

Instance methods

bind_ip
Source
exposures
Source
message
Source
port
Source
protocol
Source
service_name
Source
source_spec
Source
state
Source
zones
Source