mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
23 lines
1.2 KiB
Markdown
23 lines
1.2 KiB
Markdown
# FirewallD Plugin
|
|
|
|
This plugin adds some aliases and functions for FirewallD using the `firewalld-cmd` command. To use it, add firewalld to your plugins array.
|
|
|
|
```zsh
|
|
plugins=(... firewalld)
|
|
```
|
|
|
|
## Aliases
|
|
|
|
| Alias | Command | Description |
|
|
| :------ | :----------------------------------------- | :--------------------------- |
|
|
| `fw` | `sudo firewall-cmd` | Shorthand |
|
|
| `fwr` | `sudo firewall-cmd --reload` | Reload current configuration |
|
|
| `fwp` | `sudo firewall-cmd --permanent` | Create permanent rule |
|
|
| `fwrp` | `sudo firewall-cmd --runtime-to-permanent` | Save current configuration |
|
|
|
|
## Functions
|
|
|
|
| Function | Description |
|
|
| :--------- | :---------------------------------------------------------------------------------------- |
|
|
| `fwl` | Lists configuration from all active zones and direct rules |
|
|
| `fwbackup` | Saves the current firewall configuration by copying all zone files to `~/firewall-backup` |
|