#[non_exhaustive]pub enum Filtering {
InlineMiddlebox,
StatefulFilter,
PortTrustingAcl,
StatelessFilter,
}Expand description
What the filter in front of a host was shown to be doing.
A conclusion about the path to a host, so separate from NetworkRole. Like a
role, each member is a proven fact, drawn from what a shaped probe demonstrated.
Positive claims only: the absence of a filter cannot be established.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InlineMiddlebox
An inline device answered on the host’s behalf.
Proven by a reply to a probe with a wrong TCP checksum. A conformant host drops such a segment unread, so the reply came from something in the path that did not validate: a firewall, an IPS, a transparent proxy, a load balancer. One reply is proof.
StatefulFilter
A stateful filter: it passes a bare ACK but drops a SYN.
Proven by an ACK probe drawing a RST (PortState::Reachable) from a port a SYN
did not reach: the filter keeps connection state and admits no new connections.
The SYN’s fate is the port state already recorded; only the ACK is sent.
PortTrustingAcl
A filter that trusts a source port.
Proven by a SYN from a port such as 53, 20 or 88 reaching a port a SYN from an
ephemeral port did not: an ACL written to let return traffic in. Compared
against recorded port state, like StatefulFilter.
StatelessFilter
A stateless filter: it matches on the first fragment and passes the rest.
Proven by a fragmented SYN drawing an answer from a port a whole SYN did not
reach: the filter judged only the first fragment, which holds the ports but not
the flags, and does not reassemble. Compared against recorded port state, like
StatefulFilter. Fragmented probes need a self-built
Ethernet frame, so only hosts that path reaches are tested.
Implementations§
Source§impl Filtering
impl Filtering
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every conclusion this build knows, in declaration order, which is the order they are reported in.
Sets are rendered in this order and the exported schema is built from it, so a
conclusion missing here would vanish on the way to the report. A variant without
a wire name in record::wire fails to compile, and that
round trip is driven by this list; model’s test holds the order.
Trait Implementations§
impl Copy for Filtering
impl Eq for Filtering
Source§impl Ord for Filtering
impl Ord for Filtering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Filtering
impl PartialOrd for Filtering
impl StructuralPartialEq for Filtering
Auto Trait Implementations§
impl Freeze for Filtering
impl RefUnwindSafe for Filtering
impl Send for Filtering
impl Sync for Filtering
impl Unpin for Filtering
impl UnsafeUnpin for Filtering
impl UnwindSafe for Filtering
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more