module

Pared::Simulation::PacketMatcher

Instance methods

action_verdict(action : String) : Verdict
Source
cidr_or_host_matches?(pattern : String | Nil, ip : String) : Bool
Source
port_entry_matches?(entry : String, port : Int32, protocol : String) : Bool
Source
port_value_matches?(value : String, port : Int32) : Bool
Source
rich_rule_context_matches?(ast : Pared::Firewalld::RichRuleAST, packet : SyntheticPacket) : Bool

Evaluates everything except the rule element, so callers can tell whether a rule with an un-evaluable element (icmp-type, masquerade) would otherwise apply to the packet.

Source
rich_rule_matches?(ast : Pared::Firewalld::RichRuleAST, packet : SyntheticPacket) : Bool
Source
service_matches?(service : String, port : Int32, protocol : String) : Bool
Source
unevaluable_element?(element : String | Nil) : Bool

Rich-rule elements the tracer cannot decide from a synthetic packet: no ICMP type/code is collected, and masquerade is a NAT directive rather than a filter action.

Source