Commit 98ed70d8 authored by Ad Schellevis's avatar Ad Schellevis

(Captive portal) fix typo

parent e52b51f5
...@@ -74,17 +74,17 @@ ...@@ -74,17 +74,17 @@
<advanced>true</advanced> <advanced>true</advanced>
</field> </field>
<field> <field>
<id>zone.transparantHTTPProxy</id> <id>zone.transparentHTTPProxy</id>
<label>Transparant proxy (http)</label> <label>Transparant proxy (http)</label>
<type>checkbox</type> <type>checkbox</type>
<help><![CDATA[Forward http traffic to transparant proxy]]></help> <help><![CDATA[Forward http traffic to transparent proxy]]></help>
<allownew>true</allownew> <allownew>true</allownew>
</field> </field>
<field> <field>
<id>zone.transparantHTTPSProxy</id> <id>zone.transparentHTTPSProxy</id>
<label>Transparant proxy (https)</label> <label>Transparant proxy (https)</label>
<type>checkbox</type> <type>checkbox</type>
<help><![CDATA[Forward https traffic to transparant proxy]]></help> <help><![CDATA[Forward https traffic to transparent proxy]]></help>
<allownew>true</allownew> <allownew>true</allownew>
</field> </field>
<field> <field>
......
...@@ -68,14 +68,14 @@ ...@@ -68,14 +68,14 @@
<mask>/^((([0-9a-fA-F]{2}:){5}([0-9a-fA-F]{2})([,]){0,1}))*/u</mask> <mask>/^((([0-9a-fA-F]{2}:){5}([0-9a-fA-F]{2})([,]){0,1}))*/u</mask>
<ValidationMessage>Please enter valid mac addresses</ValidationMessage> <ValidationMessage>Please enter valid mac addresses</ValidationMessage>
</allowedMACAddresses> </allowedMACAddresses>
<transparantHTTPProxy type="BooleanField"> <transparentHTTPProxy type="BooleanField">
<default>0</default> <default>0</default>
<Required>Y</Required> <Required>Y</Required>
</transparantHTTPProxy> </transparentHTTPProxy>
<transparantHTTPSProxy type="BooleanField"> <transparentHTTPSProxy type="BooleanField">
<default>0</default> <default>0</default>
<Required>Y</Required> <Required>Y</Required>
</transparantHTTPSProxy> </transparentHTTPSProxy>
<template type="ModelRelationField"> <template type="ModelRelationField">
<Model> <Model>
<template> <template>
......
{# {#
parse all active captive portal zones and create redirect rules where transparant mode is enabled parse all active captive portal zones and create redirect rules where transparent mode is enabled
#} #}
{% for cp_zone in cp_interface_list %} {% for cp_zone in cp_interface_list %}
{% if cp_zone.obj.transparantHTTPProxy|default('0') == '1' %} {% if cp_zone.obj.transparentHTTPProxy|default('0') == '1' %}
# HTTP redirect {{ cp_zone.zone }} # HTTP redirect {{ cp_zone.zone }}
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.port }} tcp from any to any dst-port 80 via {{ cp_zone.if }} add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.port }} tcp from any to any dst-port 80 via {{ cp_zone.if }}
{% endif %} {% endif %}
{% if cp_zone.obj.transparantHTTPSProxy|default('0') == '1' %} {% if cp_zone.obj.transparentHTTPSProxy|default('0') == '1' %}
# HTTPS redirect {{ cp_zone.zone }} # HTTPS redirect {{ cp_zone.zone }}
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.sslbumpport }} tcp from any to any dst-port 443 via {{ cp_zone.if }} add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.sslbumpport }} tcp from any to any dst-port 443 via {{ cp_zone.if }}
{% endif %} {% endif %}
......
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