Saltstack Official FirewallD Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

53 Zeilen
1.9KB

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