(Captive portal) fix typo

This commit is contained in:
Ad Schellevis 2016-09-23 21:13:27 +02:00
parent e52b51f572
commit 98ed70d8ea
3 changed files with 11 additions and 11 deletions

View File

@ -74,17 +74,17 @@
<advanced>true</advanced>
</field>
<field>
<id>zone.transparantHTTPProxy</id>
<id>zone.transparentHTTPProxy</id>
<label>Transparant proxy (http)</label>
<type>checkbox</type>
<help><![CDATA[Forward http traffic to transparant proxy]]></help>
<help><![CDATA[Forward http traffic to transparent proxy]]></help>
<allownew>true</allownew>
</field>
<field>
<id>zone.transparantHTTPSProxy</id>
<id>zone.transparentHTTPSProxy</id>
<label>Transparant proxy (https)</label>
<type>checkbox</type>
<help><![CDATA[Forward https traffic to transparant proxy]]></help>
<help><![CDATA[Forward https traffic to transparent proxy]]></help>
<allownew>true</allownew>
</field>
<field>

View File

@ -68,14 +68,14 @@
<mask>/^((([0-9a-fA-F]{2}:){5}([0-9a-fA-F]{2})([,]){0,1}))*/u</mask>
<ValidationMessage>Please enter valid mac addresses</ValidationMessage>
</allowedMACAddresses>
<transparantHTTPProxy type="BooleanField">
<transparentHTTPProxy type="BooleanField">
<default>0</default>
<Required>Y</Required>
</transparantHTTPProxy>
<transparantHTTPSProxy type="BooleanField">
</transparentHTTPProxy>
<transparentHTTPSProxy type="BooleanField">
<default>0</default>
<Required>Y</Required>
</transparantHTTPSProxy>
</transparentHTTPSProxy>
<template type="ModelRelationField">
<Model>
<template>

View File

@ -1,13 +1,13 @@
{#
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 %}
{% if cp_zone.obj.transparantHTTPProxy|default('0') == '1' %}
{% if cp_zone.obj.transparentHTTPProxy|default('0') == '1' %}
# 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 }}
{% endif %}
{% if cp_zone.obj.transparantHTTPSProxy|default('0') == '1' %}
{% if cp_zone.obj.transparentHTTPSProxy|default('0') == '1' %}
# 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 }}
{% endif %}