Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F27592656
D4100.id10731.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
952 B
Referenced Files
None
Subscribers
None
D4100.id10731.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4100: Move PF tables to /etc/pf.conf.d/tables.conf
Attached
Detach File
Event Timeline
Log In to Comment