mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
15
roles/mailman/tasks/iptables.yml
Normal file
15
roles/mailman/tasks/iptables.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Handle mailman web port in the firewall
|
||||
iptables_raw:
|
||||
name: mailman_web_port
|
||||
state: "{{ (mailman_web_src_ip | length > 0) | ternary('present','absent') }}"
|
||||
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ mailman_web_port }} -s {{ mailman_web_src_ip | join(',') }} -j ACCEPT"
|
||||
tags: firewall,mailman
|
||||
|
||||
- name: Handle mailman LMTP port in the firewall
|
||||
iptables_raw:
|
||||
name: mailman_lmtp_port
|
||||
state: "{{ (mailman_lmtp_src_ip | length > 0) | ternary('present','absent') }}"
|
||||
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ mailman_lmtp_port }} -s {{ mailman_lmtp_src_ip | join(',') }} -j ACCEPT"
|
||||
tags: firewall,mailman
|
Reference in New Issue
Block a user