Struct suricata_ipc::config::Config[][src]

pub struct Config {
    pub runmode: Runmode,
    pub outputs: Vec<Box<dyn Output + Send + Sync>>,
    pub enable_community_id: bool,
    pub materialize_config_to: PathBuf,
    pub exe_path: PathBuf,
    pub rule_path: PathBuf,
    pub suricata_config_path: PathBuf,
    pub internal_ips: InternalIps,
    pub max_pending_packets: u16,
    pub buffer_size: Option<usize>,
    pub default_log_dir: PathBuf,
    pub close_grace_period: Option<Duration>,
    pub ipc_plugin: IpcPluginConfig,
    pub plugins: Vec<Box<dyn Plugin + Send + Sync>>,
    pub detect_profile: DetectProfile,
    pub async_oneside: bool,
    pub filestore: Filestore,
    pub additional_configs: Vec<AdditionalConfig>,
}

Configuration options for suricata

Fields

runmode: Runmode

Runmode to use

outputs: Vec<Box<dyn Output + Send + Sync>>

Outputs to connect to suricata

enable_community_id: bool

Whether community id should be enabled, defaults to true

materialize_config_to: PathBuf

Path where config will be materialized to

exe_path: PathBuf

Path where the suricata executable lives, defaults to /usr/bin/suricata, can be overridden with environment variable SURICATA_EXE

rule_path: PathBuf

Path where the rules reside at

suricata_config_path: PathBuf

Path where suricata config resides at (e.g. threshold config), defaults to /etc/suricata, can be overridden with environment variable SURICATA_CONFIG_DIR

internal_ips: InternalIps

Internal ips to use for HOME_NET

max_pending_packets: u16

Max pending packets before suricata will block on incoming packets

buffer_size: Option<usize>

Adjust uds buffer size

default_log_dir: PathBuf

Directory to use for suricata logging

close_grace_period: Option<Duration>

Allowed duration before killing suricata process (defaults to None preserve previous behavior)

ipc_plugin: IpcPluginConfig

IPC plugin

plugins: Vec<Box<dyn Plugin + Send + Sync>>

Plugins to attempt to load

detect_profile: DetectProfile

Detect profile

async_oneside: bool

async-oneside flow handling

filestore: Filestore

filestore configuration

additional_configs: Vec<AdditionalConfig>

Additional configs, allow raw string or include to be appended to the suricata.yaml

Implementations

impl Config[src]

pub fn materialize(&self, ipc_plugin: IpcPlugin) -> Result<(), Error>[src]

Trait Implementations

impl Default for Config[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,