pub trait Firewall: Send + Sync {
// Required methods
fn verdict_for_inbound(
&self,
port: u16,
proto: L4Proto,
) -> Result<FirewallVerdict>;
fn backend(&self) -> FirewallBackend;
}Expand description
Firewall posture.
Required Methods§
Sourcefn verdict_for_inbound(
&self,
port: u16,
proto: L4Proto,
) -> Result<FirewallVerdict>
fn verdict_for_inbound( &self, port: u16, proto: L4Proto, ) -> Result<FirewallVerdict>
Determine the inbound firewall verdict for a given (port, proto) pair.
Sourcefn backend(&self) -> FirewallBackend
fn backend(&self) -> FirewallBackend
Return which firewall tool this backend read from.