From 4388146cb95e22c20fb09ee8d1133f6cb54d2b65 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 17 Mar 2017 20:41:38 +0100 Subject: [PATCH] (TrafficShaper) exclude ipaddress when using 3g/4g modems --- 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 a0b877e45..80aa3da5e 100644 --- a/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf +++ b/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf @@ -98,7 +98,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 != "pppoe" and interface.ipaddr|default("") != "" %} +{% if intf_key != "wan" and interface.ipaddr not in ["dhcp", "ppp", "pppoe"] 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