aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/network.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/network.yml')
-rw-r--r--tasks/network.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tasks/network.yml b/tasks/network.yml
index 5a59e30..2a4ec23 100644
--- a/tasks/network.yml
+++ b/tasks/network.yml
@@ -40,3 +40,21 @@
- name: Disable syslogd remote listening
shell: sysrc syslogd_flags="-s" && service syslogd restart
+
+- name: Configure pf
+ template:
+ src: etc_pf.conf.j2
+ dest: /etc/pf.conf
+ owner: root
+ group: wheel
+ mode: "0644"
+ backup: yes
+
+- name: Enable and start pf
+ service:
+ name: pf
+ enabled: true
+ state: started
+
+- name: Reload pf rules
+ shell: pfctl -f /etc/pf.conf