pub struct GlobalDefaults {
pub external_network_interfaces: Option<Vec<String>>,
pub default_docker_bridge_to_host_policy: ChainPolicy,
pub custom_tables: Option<Vec<Table>>,
}Expand description
The default configuration section, used by DFW for rule processing.
Fields§
§external_network_interfaces: Option<Vec<String>>This defines the external network interfaces of the host to consider during building the rules. The value can be non-existent, a string, or a sequence of strings.
§Example
external_network_interfaces = "eth0"
external_network_interfaces = ["eth0", "eth1"]default_docker_bridge_to_host_policy: ChainPolicyThis defines whether the default Docker bridge (usually docker0) is allowed to access host
resources.
This field is optional and will be set to “accept” by default.
For non-default Docker bridges this is controlled within the container-to-host section.
custom_tables: Option<Vec<Table>>Provide the custom tables 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.
Trait Implementations§
Source§impl Clone for GlobalDefaults
impl Clone for GlobalDefaults
Source§fn clone(&self) -> GlobalDefaults
fn clone(&self) -> GlobalDefaults
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalDefaults
impl Debug for GlobalDefaults
Source§impl Default for GlobalDefaults
impl Default for GlobalDefaults
Source§fn default() -> GlobalDefaults
fn default() -> GlobalDefaults
Source§impl<'de> Deserialize<'de> for GlobalDefaults
impl<'de> Deserialize<'de> for GlobalDefaults
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 Eq for GlobalDefaults
Source§impl Hash for GlobalDefaults
impl Hash for GlobalDefaults
Source§impl PartialEq for GlobalDefaults
impl PartialEq for GlobalDefaults
Source§impl Process<Iptables> for GlobalDefaults
impl Process<Iptables> for GlobalDefaults
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 GlobalDefaults
impl Process<Nftables> for GlobalDefaults
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 StructuralPartialEq for GlobalDefaults
Auto Trait Implementations§
impl Freeze for GlobalDefaults
impl RefUnwindSafe for GlobalDefaults
impl Send for GlobalDefaults
impl Sync for GlobalDefaults
impl Unpin for GlobalDefaults
impl UnsafeUnpin for GlobalDefaults
impl UnwindSafe for GlobalDefaults
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.