summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2014-02-19 08:54:43 +0100
committerErmal Luçi <eri@pfsense.org>2014-02-19 08:54:43 +0100
commit63fd5773076cb1995ac9405de566dd0fd74eb54a (patch)
tree1f97d90a41f6cf2a4950a6f42b322b067dadba62
parent18e5723b3753a6eef8d0f48ba677cb149e1f2686 (diff)
parentc1d59c7a4f559efeebc629bce7f1f1f1f3f78d5a (diff)
downloadpfsense-63fd5773076cb1995ac9405de566dd0fd74eb54a.zip
pfsense-63fd5773076cb1995ac9405de566dd0fd74eb54a.tar.gz
Merge pull request #903 from phildd/RELENG_2_1
Releng 2 1 Enhance interface gateway data entry descriptions
-rwxr-xr-xetc/rc.initial.setlanip4
-rwxr-xr-xusr/local/www/interfaces.php12
-rw-r--r--usr/local/www/wizards/setup_wizard.xml4
3 files changed, 11 insertions, 9 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 13a9bdc..8b3a820 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -306,8 +306,8 @@ function console_configure_ip_address($version) {
$subnet = gen_subnet($intip, $intbits);
}
do {
- echo "\n" . sprintf(gettext("Enter the new %s %s gateway address. Press <ENTER> for none:"),
- $upperifname, $label_IPvX) . "\n> ";
+ echo "\n" . sprintf(gettext("For a WAN, enter the new %s %s upstream gateway address."), $upperifname, $label_IPvX) . "\n" .
+ gettext("For a LAN, press <ENTER> for none:") . "\n> ";
$gwip = chop(fgets($fp));
$is_ipaddr = ($version === 6) ? is_ipaddrv6($gwip) : is_ipaddrv4($gwip);
$is_in_subnet = $is_ipaddr && ip_in_subnet($gwip, $subnet . "/" . $intbits);
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 7e2fc73..bb1854b 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -4,7 +4,7 @@
interfaces.php
Copyright (C) 2004-2008 Scott Ullrich
Copyright (C) 2006 Daniel S. Haischt.
- Copyright (C) 2008-2010 Ermal Lu�i
+ Copyright (C) 2008-2010 Ermal Luci
All rights reserved.
originally part of m0n0wall (http://m0n0.ch/wall)
@@ -1546,7 +1546,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell"><?=gettext("Gateway"); ?></td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Upstream Gateway"); ?></td>
<td width="78%" class="vtable">
<select name="gateway" class="formselect" id="gateway">
<option value="none" selected="selected"><?=gettext("None"); ?></option>
@@ -1567,7 +1567,8 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
- or <strong><a onclick="show_add_gateway();" href="#gatewaysection"><?=gettext("add a new one."); ?></a></strong>
<br/>
<div id='addgwbox'>
- <?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add one using the link above"); ?>
+ <?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the link above."); ?><br/>
+ <?=gettext("On local LANs the upstream gateway should be \"none\"."); ?>
</div>
<div id='notebox'>
</div>
@@ -1651,7 +1652,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell"><?=gettext("Gateway IPv6"); ?></td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Upstream Gateway"); ?></td>
<td width="78%" class="vtable">
<select name="gatewayv6" class="formselect" id="gatewayv6">
<option value="none" selected="selected"><?=gettext("None"); ?></option>
@@ -1672,7 +1673,8 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
- or <strong><a onclick="show_add_gateway_v6();" href="#gatewayv6section"><?=gettext("add a new one."); ?></a></strong>
<br/>
<div id='addgwboxv6'>
- <?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the link above"); ?>
+ <?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the link above."); ?><br/>
+ <?=gettext("On local LANs the upstream gateway should be \"none\"."); ?>
</div>
<div id='noteboxv6'>
</div>
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index daf32dd..b7d9e6c 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -193,7 +193,7 @@
<option>
<name>Static</name>
<value>Static</value>
- <enablefields>ipaddress,subnetmask,gateway</enablefields>
+ <enablefields>ipaddress,subnetmask,upstreamgateway</enablefields>
</option>
<option>
<name>DHCP</name>
@@ -262,7 +262,7 @@
<type>subnet_select</type>
</field>
<field>
- <name>Gateway</name>
+ <name>Upstream Gateway</name>
<bindstofield>wizardtemp->wangateway</bindstofield>
<type>input</type>
<validate>^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$</validate>
OpenPOWER on IntegriCloud