Commit 01867a1b authored by Ad Schellevis's avatar Ad Schellevis

(captive portal) exclude "pppoe" address as static ip

parent c831f3c6
...@@ -80,7 +80,7 @@ add 203 skipto 60000 ipv4 from any to 127.0.0.0/8 ...@@ -80,7 +80,7 @@ add 203 skipto 60000 ipv4 from any to 127.0.0.0/8
# Allow traffic to this hosts static ip's # Allow traffic to this hosts static ip's
#====================================================================================== #======================================================================================
{% for intf_key,interface in interfaces.iteritems() %} {% for intf_key,interface in interfaces.iteritems() %}
{% if intf_key != "wan" and interface.ipaddr != "dhcp" and interface.ipaddr|default("") != "" %} {% if intf_key != "wan" and interface.ipaddr != "dhcp" and interface.ipaddr != "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 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 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 add {{loop.index + 1000}} skipto 60000 ip from { 255.255.255.255 or {{interface.ipaddr}} } to any out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment