ipTables-1.7.0
less than a minute
KOSI Plugin IPTables Version 1.7.0
Required Software
- iptables
Summary
With this plugin you can manage iptables. You can either open/close ports or disable/enable it. Additionally it is possible to gather information about the iptables status.
Keys
Key | Description | |
---|---|---|
action | Mandatory | Similiar to the service Plugin you can enable and disable iptables as well as open and close ports. |
ports | – | 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 | – | set to a variable name in which status of the iptables will be stored. The status will be either: "running" / "not running" |
Example
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/sina/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
{
iptables
(
action="close / open / disable";
ports="['5555/tcp','6666/tcp','8888-9999/udp']";
getFirewallStatus="status"
);
}