ohmyzsh/plugins/firewalld
Konstantin Gribov 2b6434e879 Fixed fwl function in firewalld plugin when sources used (#7011)
`firewall-cmd --get-active-zones` returns something like this:

```
dmz
  sources: ipset:dmz-hosts
public
  interfaces: eth0
```

if zone binding is based on source ips, so strings with `sources: ...` should be excluded along with `interfaces: ...` to get zones list.
2018-08-29 11:57:02 -07:00
..
firewalld.plugin.zsh Fixed fwl function in firewalld plugin when sources used (#7011) 2018-08-29 11:57:02 -07:00
readme.md corrected alias documentation 2016-09-08 00:27:46 +01:00

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.

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