Saltstack Official FirewallD Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1KB

  1. {% set firewalld = pillar.get('firewalld', {}) -%}
  2. #
  3. # This file is managed/generated by salt.
  4. # Do not edit this file manually, it will be overwritten!
  5. # Modify the salt pillar for firewalld instead
  6. #
  7. # firewalld config file
  8. # default zone
  9. # The default zone used if an empty zone string is used.
  10. # Default: public
  11. DefaultZone={{ firewalld.default_zone|default('public') }}
  12. # Minimal mark
  13. # Marks up to this minimum are free for use for example in the direct
  14. # interface. If more free marks are needed, increase the minimum
  15. # Default: 100
  16. MinimalMark={{ firewalld.minimal_mark|default('100') }}
  17. # Clean up on exit
  18. # If set to no or false the firewall configuration will not get cleaned up
  19. # on exit or stop of firewalld
  20. # Default: yes
  21. CleanupOnExit={{ firewalld.cleanup_on_exit|default('yes') }}
  22. # Lockdown
  23. # If set to enabled, firewall changes with the D-Bus interface will be limited
  24. # to applications that are listed in the lockdown whitelist.
  25. # The lockdown whitelist file is lockdown-whitelist.xml
  26. # Default: no
  27. Lockdown={{ firewalld.lockdown|default('no') }}
  28. # IPv6_rpfilter
  29. # Performs a reverse path filter test on a packet for IPv6. If a reply to the
  30. # packet would be sent via the same interface that the packet arrived on, the
  31. # packet will match and be accepted, otherwise dropped.
  32. # The rp_filter for IPv4 is controlled using sysctl.
  33. # Default: yes
  34. IPv6_rpfilter={{ firewalld.IPv6_rpfilter|default('yes') }}
  35. {%- if firewalld.get('IndividualCalls', False) %}
  36. # IndividualCalls
  37. # Do not use combined -restore calls, but individual calls. This increases the
  38. # time that is needed to apply changes and to start the daemon, but is good for
  39. # debugging.
  40. # Default: no
  41. IndividualCalls={{ firewalld.IndividualCalls|default('no') }}
  42. {%- endif %}
  43. {%- if firewalld.get('LogDenied', False) %}
  44. # LogDenied
  45. # Add logging rules right before reject and drop rules in the INPUT, FORWARD
  46. # and OUTPUT chains for the default rules and also final reject and drop rules
  47. # in zones. Possible values are: all, unicast, broadcast, multicast and off.
  48. # Default: off
  49. LogDenied={{ firewalld.LogDenied|default('off') }}
  50. {%- endif %}