Convert setup_iptables to ansible role + Fix usertwist group don't exist error + Hardened Systemd unit #5

Closed
Mateo wants to merge 10 commits from dev into main
7 changed files with 113 additions and 19 deletions
Showing only changes of commit 61705dd02f - Show all commits

View File

@@ -22,7 +22,16 @@
state: directory
mode: '0755'
- name: Save rules to keep them on reboot
- name: Install iptables-persistent for rules persistence
ansible.builtin.package:
name: iptables-persistent
- name: Save IPv4 rules to keep them on reboot
community.general.iptables_state:
state: saved
path: /etc/iptables/iptables
path: /etc/iptables/rules.v4
- name: Save IPv6 rules to keep them on reboot
community.general.iptables_state:
state: saved
path: /etc/iptables/rules.v6