salt.modules.csf

Support for Config Server Firewall (CSF)

maintainer:Mostafa Hussein <mostafa.hussein91@gmail.com>
maturity:new
platform:Linux
salt.modules.csf.allow(ip=None, port=None)

Add an rule to csf allowed hosts 1- Add an IP: CLI Example: .. code-block:: bash

salt '*' csf.allow 127.0.0.1
salt.modules.csf.disable()

Disable csf permanently CLI Example: .. code-block:: bash

salt '*' csf.disable
salt.modules.csf.enable()

Activate csf if not running CLI Example: .. code-block:: bash

salt '*' csf.enable
salt.modules.csf.reload()

Restart csf CLI Example: .. code-block:: bash

salt '*' csf.reload
salt.modules.csf.running()

Check csf status CLI Example: .. code-block:: bash

salt '*' csf.running