fix iptables rule

This commit is contained in:
Robert Kaussow 2018-08-13 23:18:10 +02:00
parent c5c60c674b
commit bfc490b82f

View File

@ -23,7 +23,7 @@
iptables_raw:
name: allow_unifi_nginx_proxy
state: present
rules: '-A OUTPUT -p tcp -d {{ unifi_server_ip }} -m --dport {{ unifi_server_port }} -j ACCEPT'
rules: '-A OUTPUT -m state --state NEW -p tcp -d {{ unifi_server_ip }} --dport {{ unifi_server_port }} -j ACCEPT'
when: unifi_nginx_iptables_enabled
delegate_to: "{{ unifi_nginx_server }}"
become: True