pub enum FirewallAction {
Show 13 variants
Status,
List,
Show {
zone: String,
},
Services,
AddService {
service: String,
zone: Option<String>,
timeout: Option<u32>,
},
RemoveService {
service: String,
zone: Option<String>,
},
AddPort {
port: String,
zone: Option<String>,
timeout: Option<u32>,
},
RemovePort {
port: String,
zone: Option<String>,
},
SetDefaultZone {
zone: String,
},
Reload,
Confirm,
Panic {
state: String,
},
Masquerade {
state: String,
zone: Option<String>,
timeout: Option<u32>,
},
}Expand description
Actions under the firewall subcommand.
Variants§
Status
Show firewall state, default zone, panic mode, and pending changes.
List
List zones with a per-zone summary.
Show
Show one zone’s full detail.
Services
List the service catalog firewalld knows about.
AddService
Add a service to a zone (runtime only; confirm to persist).
Fields
RemoveService
Remove a service from a zone (runtime only; confirm to persist).
Fields
AddPort
Add a port to a zone (runtime only; confirm to persist).
Fields
RemovePort
Remove a port from a zone (runtime only; confirm to persist).
Fields
SetDefaultZone
Set the default zone (gated: requires –force).
Reload
Reload permanent config into runtime (discards uncommitted runtime changes).
Confirm
Persist the current runtime config to permanent (runtimeToPermanent).
Panic
Toggle panic mode (drops all traffic when on).
Masquerade
Enable or disable masquerade (SNAT) for a zone (runtime only; confirm to persist).
Trait Implementations§
Source§impl Debug for FirewallAction
impl Debug for FirewallAction
Source§impl FromArgMatches for FirewallAction
impl FromArgMatches for FirewallAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for FirewallAction
impl Subcommand for FirewallAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand