fix problem with zoreide iptables
This commit is contained in:
parent
73708d5bdc
commit
8630677457
1 changed files with 8 additions and 11 deletions
|
@ -84,18 +84,15 @@
|
||||||
|
|
||||||
- name: Configure iptables
|
- name: Configure iptables
|
||||||
when:
|
when:
|
||||||
- "zoreide_enabled is true"
|
- 'zoreide_enabled is true'
|
||||||
- "ansible_facts.services['iptables.service'] is defined"
|
- "ansible_facts.services['iptables.service'] is defined"
|
||||||
block:
|
ansible.builtin.iptables:
|
||||||
- name: Allow related and established connections
|
chain: INPUT
|
||||||
ansible.builtin.iptables:
|
protocol: udp
|
||||||
chain: INPUT
|
destination_port: "{{ zoreide_ha_port }}"
|
||||||
protocol: udp
|
ctstate: NEW
|
||||||
destination_port: "{{ zoreide_ha_port }}"
|
jump: ACCEPT
|
||||||
ctstate: NEW
|
comment: Zoreide HA Port
|
||||||
syn: match
|
|
||||||
jump: ACCEPT
|
|
||||||
comment: Zoreide HA Port
|
|
||||||
|
|
||||||
- name: Save rules with iptables-persistent v6
|
- name: Save rules with iptables-persistent v6
|
||||||
ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4
|
ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4
|
||||||
|
|
Loading…
Reference in a new issue