library/roles/iptables/defaults/main.yml: Use the default interface as the NAT output one. Do not pretend that is always eth0

This commit is contained in:
Andrea Dell'Amico 2018-05-02 18:15:26 +02:00
parent b79034e490
commit ffc72e6f4f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ iptables_default_policy: ACCEPT
iptables_nat_enabled: False iptables_nat_enabled: False
iptables_nat_specify_interfaces: True iptables_nat_specify_interfaces: True
iptables_nat_interfaces: iptables_nat_interfaces:
- eth0 - '{{ ansible_default_ipv4.interface }}'
iptables_input_default_policy: '{{ iptables_default_policy }}' iptables_input_default_policy: '{{ iptables_default_policy }}'
iptables_forward_default_policy: '{{ iptables_default_policy }}' iptables_forward_default_policy: '{{ iptables_default_policy }}'
iptables_banned_default_policy: DROP iptables_banned_default_policy: DROP