[−][src]Struct dfw::nftables::types::Defaults
The defaults/configuration for the nftables backend.
Fields
custom_tables: Option<Vec<Table>>
Specify the names of custom nft-tables that should be partially managed.
Explanation
If you want to use or already use an existing nftables table to manage rules independently from DFW, it is important that two conditions are met:
- The priority-values of the chains are lower than the priority-values used by DFW.
- The default-policy of the any input or forward chains in the table are set to
accept
.
While DFW cannot ensure that the first condition is met (since changing the priority of a
chain is not possible without recreating the chain), it can set the policies of your input
and output chains to accept
for you.
Example
custom_tables = { name = "filter", chains = ["input", "forward"] } custom_tables = [ { name = "filter", chains = ["input", "forward"] }, { name = "custom", chains = ["input", "forward"] } ]
initialization: Option<Initialization>
The optional initialization section.
Example
[initialization] rules = [ "add table inet custom", "flush table inet custom", ]
Trait Implementations
impl Clone for Defaults
[src]
impl Debug for Defaults
[src]
impl Default for Defaults
[src]
impl<'de> Deserialize<'de> for Defaults
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Defaults
[src]
impl PartialEq<Defaults> for Defaults
[src]
impl StructuralEq for Defaults
[src]
impl StructuralPartialEq for Defaults
[src]
Auto Trait Implementations
impl RefUnwindSafe for Defaults
impl Send for Defaults
impl Sync for Defaults
impl Unpin for Defaults
impl UnwindSafe for Defaults
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,