readme.md 963 Bytes
Newer Older
Rob Ede's avatar
Rob Ede committed
1
2
3
4
# 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.

Rob Ede's avatar
Rob Ede committed
5
```zsh
Rob Ede's avatar
Rob Ede committed
6
7
8
9
10
plugins=(... firewalld)
```

## Aliases

Rob Ede's avatar
Rob Ede committed
11
12
13
14
15
16
| 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   |
Rob Ede's avatar
Rob Ede committed
17
18
19
20
21
22

## Functions

| Function | Description                                                |
| :------- | :--------------------------------------------------------- |
| fwl      | Lists configuration from all active zones and direct rules |