diff --git a/roles/exit-ip/templates/rules.v4.j2 b/roles/exit-ip/templates/rules.v4.j2 index 50a09d6..87b9150 100644 --- a/roles/exit-ip/templates/rules.v4.j2 +++ b/roles/exit-ip/templates/rules.v4.j2 @@ -4,7 +4,7 @@ :INPUT ACCEPT [1:136] :OUTPUT ACCEPT [2:472] :POSTROUTING ACCEPT [0:0] --A POSTROUTING -o eth0 -j MASQUERADE +-A POSTROUTING -o {{ ansible_default_ipv4.interface }} -j MASQUERADE COMMIT *filter :INPUT ACCEPT [1124:131621]