Minor fix to exposed host

This commit is contained in:
Martin Schröder 2015-05-28 21:09:19 +02:00 committed by Martin Schröder
parent 2275454efa
commit c785edac75

View file

@ -1,30 +1,28 @@
<luci-layout-with-sidebar>
<div ng-controller="InternetExHostPageCtrl">
<luci-config>
<luci-config-heading>{{'Exposed Host'|translate}}</luci-config-heading>
<luci-config-section >
<luci-config-info>{{'internet.exposed_host.info'|translate}}</luci-config-info>
<luci-config-lines>
<luci-config-line title="{{'Exposed Host Function'|translate}}">
<switch id="enabled" name="enabled" ng-model="firewall.dmz.enabled.value" class="green"></switch>
</luci-config-line>
</luci-config-lines>
</luci-config-section>
<luci-config-section ng-show="firewall.dmz.enabled.value">
<div class="alert alert-danger">
<p translate><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> Warning: By using the exposed host function you bypass the firewall of your {{config.friendly_name}}. Please make sure that your computer is protected against attacks from Internet. The following ports will not be forwarded: {{ nonforwardedPorts || 'None'}}.</p>
</div>
<p translate>Choose the local IP address that should be exposed to Internet. Additionally you should configure this IP address as static DHCP address for your device (see Settings/Network).</p>
<luci-config-lines>
<luci-config-line title="{{'Public IP Address'|translate}}">
<strong>{{wan.ip}}</strong>
</luci-config-line>
<luci-config-line title="{{'Local IP Address'|translate}}">
<input type="text" class="form-control" placeholder="{{'ip.address.label'|translate}}" ng-model="firewall.dmz.host.value"/>
</luci-config-line>
</luci-config-lines>
<luci-config-apply></luci-config-apply>
</luci-config-section>
</luci-config>
<luci-config-heading>{{'Exposed Host'|translate}}</luci-config-heading>
<luci-config-section >
<luci-config-info>{{'internet.exposed_host.info'|translate}}</luci-config-info>
<luci-config-lines>
<luci-config-line title="{{'Exposed Host Function'|translate}}">
<switch id="enabled" name="enabled" ng-model="firewall.dmz.enabled.value" class="green"></switch>
</luci-config-line>
</luci-config-lines>
</luci-config-section>
<luci-config-section ng-show="firewall.dmz.enabled.value">
<div class="alert alert-danger">
<p translate><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> Warning: By using the exposed host function you bypass the firewall of your {{config.friendly_name}}. Please make sure that your computer is protected against attacks from Internet. The following ports will not be forwarded: {{ nonforwardedPorts || 'None'}}.</p>
</div>
<p translate>Choose the local IP address that should be exposed to Internet. Additionally you should configure this IP address as static DHCP address for your device (see Settings/Network).</p>
<luci-config-lines>
<luci-config-line title="{{'Public IP Address'|translate}}">
<strong>{{wan.ip}}</strong>
</luci-config-line>
<luci-config-line title="{{'Local IP Address'|translate}}">
<input type="text" class="form-control" placeholder="{{'ip.address.label'|translate}}" ng-model="firewall.dmz.host.value"/>
</luci-config-line>
</luci-config-lines>
</luci-config-section>
<luci-config-apply></luci-config-apply>
</div>
</luci-layout-with-sidebar>