Browse Source

Fix support of private networks in ferm configuration

Emmanuel Bouthenot 10 years ago
parent
commit
00c4d7f5be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/common/templates/ferm/ferm.conf.j2

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

@@ -27,7 +27,7 @@ table filter {
 {% if firewall_private is defined %}
         # Private networks configuration
 {% 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;
         }
 {% endfor %}