From ea948fa3f11e2a395e4b65d0237df86cca3baf94 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 2 Jul 2015 16:34:38 +0200 Subject: [PATCH] (ipfw) add check to ignore empty interface --- src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf b/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf index f14ea661d..6b8bfdd2e 100644 --- a/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf +++ b/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf @@ -75,7 +75,7 @@ add 203 skipto 60000 ipv4 from any to 127.0.0.0/8 # Allow traffic to this hosts static ip's #====================================================================================== {% for intf_key,interface in interfaces.iteritems() %} -{% if intf_key != "wan" and interface.ipaddr != "dhcp" and interface.ipaddr != "" %} +{% if intf_key != "wan" and interface.ipaddr != "dhcp" and interface.ipaddr|default("") != "" %} add {{loop.index + 1000}} skipto 60000 udp from any to {{ interface.ipaddr }} dst-port 53 keep-state add {{loop.index + 1000}} skipto 60000 ip from any to { 255.255.255.255 or {{interface.ipaddr}} } in add {{loop.index + 1000}} skipto 60000 ip from { 255.255.255.255 or {{interface.ipaddr}} } to any out