pub struct DFW<B>{
pub global_defaults: GlobalDefaults,
pub backend_defaults: Option<B::Defaults>,
pub initialization: Option<Initialization>,
pub container_to_container: Option<ContainerToContainer>,
pub container_to_wider_world: Option<ContainerToWiderWorld>,
pub container_to_host: Option<ContainerToHost>,
pub wider_world_to_container: Option<WiderWorldToContainer>,
pub container_dnat: Option<ContainerDNAT>,
}Expand description
DFW is the parent type defining the complete configuration used by DFW to build up the
firewall rules.
Every section is optional.
Fields§
§global_defaults: GlobalDefaultsThe defaults configuration section.
You can leave this section unspecified.
backend_defaults: Option<B::Defaults>The backend_defaults configuration section
initialization: Option<Initialization>Provide the initialization in the nftables backend-defaults section instead. This field will be removed with release 2.0.0.
§This field is DEPRECATED!
Provide the custom tables in the nftables backend-defaults section instead. (This field will be removed with release 2.0.0.)
Please consult the firewall-backend documentation if you want to know how to use this field.
container_to_container: Option<ContainerToContainer>The container_to_container configuration section
container_to_wider_world: Option<ContainerToWiderWorld>The container_to_wider_world configuration section
container_to_host: Option<ContainerToHost>The container_to_host configuration section
wider_world_to_container: Option<WiderWorldToContainer>The wider_world_to_container configuration section
container_dnat: Option<ContainerDNAT>The container_dnat configuration section
Trait Implementations§
Source§impl<'de, B> Deserialize<'de> for DFW<B>
impl<'de, B> Deserialize<'de> for DFW<B>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<B> Eq for DFW<B>
Source§impl Process<Iptables> for DFW<Iptables>
impl Process<Iptables> for DFW<Iptables>
Source§fn process(
&self,
ctx: &ProcessContext<'_, Iptables>,
) -> Result<Option<Vec<IptablesRule>>>
fn process( &self, ctx: &ProcessContext<'_, Iptables>, ) -> Result<Option<Vec<IptablesRule>>>
ProcessContext, returning zero or more rules
to apply with nft.Source§impl Process<Nftables> for DFW<Nftables>
impl Process<Nftables> for DFW<Nftables>
Source§fn process(
&self,
ctx: &ProcessContext<'_, Nftables>,
) -> Result<Option<Vec<String>>>
fn process( &self, ctx: &ProcessContext<'_, Nftables>, ) -> Result<Option<Vec<String>>>
ProcessContext, returning zero or more rules
to apply with nft.impl<B> StructuralPartialEq for DFW<B>
Auto Trait Implementations§
impl<B> Freeze for DFW<B>
impl<B> RefUnwindSafe for DFW<B>
impl<B> Send for DFW<B>
impl<B> Sync for DFW<B>
impl<B> Unpin for DFW<B>
impl<B> UnsafeUnpin for DFW<B>
impl<B> UnwindSafe for DFW<B>
Blanket Implementations§
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.