firewallD-1.6.0
less than a minute
KOSI Plugin FirewallD Version 1.6.0
Required Plugins
- firewallD
Summary
With the firewall Plugin you can manage your firewall. You can either open/close ports or disable/enable the firewall. Additionally it is possible to gather information about the current firewall status. Currently 2 types of firewall are supported:
Documentation of Plugin firewallD
Documentation of Plugin IPTables
Keys
Key | Description | |
---|---|---|
action | Mandatory | Similiar to the service Plugin you can enable and disable the specified firewall as well open and close ports. |
ports | Mandatory | If you want to open or close any ports the key ports which requires a list ("ports" or "ports-range"/protocol ) is mandatory. Any ports like in the schema above are valid. |
getFirewallStatus | Mandatory | The status of the the firewall will be stored in the value of this key. There are two status possible: "running" / "not running" |
If firewalld and iptables are running, firewalld will be chosen
Example
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input="template.yaml";
}
containers =
{
example=["docker.io", "nginx", "latest"];
}
install
{
firewalld(action="close / open / disable";ports="["5555/tcp","6666/tcp","8888-9999/udp"]";getFirewallStatus="status");
}