diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2 index 37b51ba..b55e885 100644 --- a/iptables/templates/iptables-rules.v4.j2 +++ b/iptables/templates/iptables-rules.v4.j2 @@ -68,7 +68,7 @@ {% endif %} {% if psql_firewall_enabled %} {% if psql_db_port is defined %} -{% if psql_listen_on_ext_int %} +{% if psql_listen_on_ext_int is defined and psql_listen_on_ext_int %} {% if psql_db_data is defined %} # postgresql clients {% for db in psql_db_data %}