Update to 2023-03-24 18:00

This commit is contained in:
Daniel Berteaud
2023-03-24 18:00:15 +01:00
parent a2db0ea9e7
commit b3bea91965
14 changed files with 338 additions and 249 deletions

View File

@@ -0,0 +1,8 @@
---
- name: Handle ports
iptables_raw:
name: wapt_ports
state: "{{ (wapt_src_ip is defined and wapt_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp -m multiport --dports {{ wapt_ports | join(',') }} -s {{ wapt_src_ip | join(',') }} -j ACCEPT"
tags: wapt