ipfw.fw.conf 609 Bytes
Newer Older
1 2

{#
3
  parse all active captive portal zones and create redirect rules where transparent mode is enabled
4 5
#}
{% for cp_zone in cp_interface_list %}
6
{% if cp_zone.obj.transparentHTTPProxy|default('0') == '1' %}
7
# HTTP redirect {{ cp_zone.zone }}
Ad Schellevis's avatar
Ad Schellevis committed
8
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.port }} tcp from any to any dst-port 80 via {{ cp_zone.if }}
9
{% endif %}
10
{% if cp_zone.obj.transparentHTTPSProxy|default('0') == '1' %}
11
# HTTPS redirect {{ cp_zone.zone }}
Ad Schellevis's avatar
Ad Schellevis committed
12
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.sslbumpport }} tcp from any to any dst-port 443 via {{ cp_zone.if }}
13 14
{% endif %}
{% endfor %}