Page MenuHomeDevCentral

D4100.id10731.diff
No OneTemporary

D4100.id10731.diff

diff --git a/roles/core/pf/config.sls b/roles/core/pf/config.sls
--- a/roles/core/pf/config.sls
+++ b/roles/core/pf/config.sls
@@ -11,9 +11,10 @@
# Main configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-/etc/pf.conf:
+/etc/pf.conf.d/tables.conf:
file.managed:
- source: salt://roles/core/pf/files/pf.conf
+ - makedirs: True
- template: jinja
- context:
public_ipv4_interface: {{ network["public_ipv4_interface"] }}
diff --git a/roles/core/pf/files/pf.conf b/roles/core/pf/files/pf.conf
--- a/roles/core/pf/files/pf.conf
+++ b/roles/core/pf/files/pf.conf
@@ -18,7 +18,6 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if public_ipv4_interface %}
table <badhosts> persist file "/etc/pf/badhosts"
-block on {{ public_ipv4_interface }} from <badhosts> to any
{%- else %}
# Disabled table: /etc/pf/badhosts - no public IPv4 interface to attach
{%- endif %}

File Metadata

Mime Type
text/plain
Expires
Wed, May 6, 17:24 (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3691434
Default Alt Text
D4100.id10731.diff (952 B)

Event Timeline