firewalld/main - Manages firewalld configuration, state and cleanup
firewalld BeakerLib library to aid basic and advanced setup workflows.
Below is the list of global variables.
-
fwd_IGNORE_CONFIG
Makes fwdSetup not drop existing config nor assert default configuration state.
-
fwd_VERIFY_RPM
Makes fwdSetup assert integrity of installed files by RPM.
Asserts environment and starts firewalld. Configuration cleanup is attempted and default state is verified.
fwdSetup [-n|--no-start] [--backup PATH]
-
-n|--no-start
Do not start service after setup.
-
--backup PATH
Additional path to save and restore as part of setup and cleanup. Passed to
rlFileBackup
. Can be supplied multiple times.No matter if this option is specified, the following paths are always backed up:
/etc/firewalld/
/etc/sysconfig/firewalld
/etc/sysconfig/network-scripts/
Restores configuration and service state before fwdSetup was called.
Restarts firewalld service.
Resets config to state after fwdSetup was called and drops runtime firewall config.
fwdResetConfig [-n|--no-restart]
-
-n|--no-restart
Do not restart firewalld after reseting permanent config.
Sets firewalld backend to one of `nftables` or `iptables`. Attempt to backend when the option is not available will cause Error and return 1. If backend is not specified, it is set to nftables by default.
fwdSetBackend [nftables|iptables]
Returns name of firewalld backend as one of `nftables` or `iptables`.
fwdGetBackend
- Tomas Dolezal [email protected]