Skip to main content

Firewall

Trait Firewall 

Source
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§

Source

fn verdict_for_inbound( &self, port: u16, proto: L4Proto, ) -> Result<FirewallVerdict>

Determine the inbound firewall verdict for a given (port, proto) pair.

Source

fn backend(&self) -> FirewallBackend

Return which firewall tool this backend read from.

Implementors§