Эх сурвалжийг харах

Fix support of private networks in ferm configuration

Emmanuel Bouthenot 10 жил өмнө
parent
commit
00c4d7f5be

+ 1 - 1
roles/common/templates/ferm/ferm.conf.j2

@@ -27,7 +27,7 @@ table filter {
 {% if firewall_private is defined %}
 {% if firewall_private is defined %}
         # Private networks configuration
         # Private networks configuration
 {% for fwconf in firewall_private %}
 {% for fwconf in firewall_private %}
-        interface {{ fwconf.interface }}{% if fwconf.network is defined %} saddr {{ fwconf.network }}{% endif %} {
+        interface {{ fwconf.interface }}{% if fwconf.networks is defined %} saddr ({{ fwconf.networks | join(' ') }}){% endif %} {
             proto (udp tcp) dport ({{ fwconf.ports | join(' ') }}) ACCEPT;
             proto (udp tcp) dport ({{ fwconf.ports | join(' ') }}) ACCEPT;
         }
         }
 {% endfor %}
 {% endfor %}