From 4d3268b80b55e227a1a89515842cbaaa8a13d788 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 22 Jan 2022 23:18:36 +0100 Subject: loppermann1 --- roles/configure_iptables/templates/iptables.rules | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roles/configure_iptables/templates/iptables.rules') diff --git a/roles/configure_iptables/templates/iptables.rules b/roles/configure_iptables/templates/iptables.rules index c3d84dc..0a4bfd0 100644 --- a/roles/configure_iptables/templates/iptables.rules +++ b/roles/configure_iptables/templates/iptables.rules @@ -74,7 +74,9 @@ COMMIT :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] +{% if ffrl_ip4 is defined %} {% for peer in ffrl_peers %} -A POSTROUTING ! -s {{ ffrl_ip4 }} -o {{ peer.name }} -j SNAT --to-source {{ ffrl_ip4 }} {% endfor %} +{% endif %} COMMIT -- cgit v1.2.3-54-g00ecf