Commit 724e7d4d authored by Franco Fichtner's avatar Franco Fichtner

openvpn: annotate IPv4 where appropriate

Suggested by: SimonB via Pootle

(cherry picked from commit db356ac9)
parent eac9ba5f
...@@ -719,7 +719,7 @@ ...@@ -719,7 +719,7 @@
<type>input</type> <type>input</type>
<size>20</size> <size>20</size>
<bindstofield>ovpnserver->step10->tunnelnet</bindstofield> <bindstofield>ovpnserver->step10->tunnelnet</bindstofield>
<description>This is the virtual network used for private communications between this server and client hosts expressed using CIDR notation (eg. 10.0.8.0/24). The first network address will be assigned to the server virtual interface. The remaining network addresses can optionally be assigned to connecting clients. (see Address Pool)</description> <description>This is the IPv4 virtual network used for private communications between this server and client hosts expressed using CIDR notation (eg. 10.0.8.0/24). The first network address will be assigned to the server virtual interface. The remaining network addresses can optionally be assigned to connecting clients. (see Address Pool)</description>
</field> </field>
<field> <field>
<displayname>Redirect Gateway</displayname> <displayname>Redirect Gateway</displayname>
......
...@@ -884,7 +884,7 @@ $( document ).ready(function() { ...@@ -884,7 +884,7 @@ $( document ).ready(function() {
<td width="78%"> <td width="78%">
<input name="tunnel_network" type="text" class="form-control unknown" size="20" value="<?=$pconfig['tunnel_network'];?>" /> <input name="tunnel_network" type="text" class="form-control unknown" size="20" value="<?=$pconfig['tunnel_network'];?>" />
<div class="hidden" for="help_for_tunnel_network"> <div class="hidden" for="help_for_tunnel_network">
<?=gettext("This is the virtual network used for private " . <?=gettext("This is the IPv4 virtual network used for private " .
"communications between this client and the " . "communications between this client and the " .
"server expressed using CIDR (eg. 10.0.8.0/24). " . "server expressed using CIDR (eg. 10.0.8.0/24). " .
"The first network address is assumed to be the " . "The first network address is assumed to be the " .
......
...@@ -128,7 +128,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -128,7 +128,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
exit; exit;
} else { } else {
/* perform validations */ /* perform validations */
if ($result = openvpn_validate_cidr($pconfig['tunnel_network'], 'Tunnel network')) { if ($result = openvpn_validate_cidr($pconfig['tunnel_network'], 'IPv4 Tunnel Network')) {
$input_errors[] = $result; $input_errors[] = $result;
} }
if ($result = openvpn_validate_cidr($pconfig['local_network'], 'IPv4 Local Network', true, "ipv4")) { if ($result = openvpn_validate_cidr($pconfig['local_network'], 'IPv4 Local Network', true, "ipv4")) {
...@@ -452,11 +452,11 @@ if ($act!="new" && $act!="edit") { ...@@ -452,11 +452,11 @@ if ($act!="new" && $act!="edit") {
<td colspan="2" ><?=gettext("Tunnel Settings"); ?></td> <td colspan="2" ><?=gettext("Tunnel Settings"); ?></td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_tunnel_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Tunnel Network"); ?></td> <td><a id="help_for_tunnel_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv4 Tunnel Network"); ?></td>
<td> <td>
<input name="tunnel_network" type="text" size="20" value="<?=$pconfig['tunnel_network'];?>" /> <input name="tunnel_network" type="text" size="20" value="<?=$pconfig['tunnel_network'];?>" />
<div class="hidden" for="help_for_tunnel_network"> <div class="hidden" for="help_for_tunnel_network">
<?=gettext("This is the virtual network used for private " . <?=gettext("This is the IPv4 virtual network used for private " .
"communications between this client and the " . "communications between this client and the " .
"server expressed using CIDR (eg. 10.0.8.0/24). " . "server expressed using CIDR (eg. 10.0.8.0/24). " .
"The first network address is assumed to be the " . "The first network address is assumed to be the " .
...@@ -467,7 +467,7 @@ if ($act!="new" && $act!="edit") { ...@@ -467,7 +467,7 @@ if ($act!="new" && $act!="edit") {
</td> </td>
</tr> </tr>
<tr id="local_optsv4"> <tr id="local_optsv4">
<td><a id="help_for_local_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv4 Local Network/s"); ?></td> <td><a id="help_for_local_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv4 Local Network"); ?></td>
<td> <td>
<input name="local_network" type="text" size="40" value="<?=$pconfig['local_network'];?>" /> <input name="local_network" type="text" size="40" value="<?=$pconfig['local_network'];?>" />
<div class="hidden" for="help_for_local_network"> <div class="hidden" for="help_for_local_network">
...@@ -479,7 +479,7 @@ if ($act!="new" && $act!="edit") { ...@@ -479,7 +479,7 @@ if ($act!="new" && $act!="edit") {
</td> </td>
</tr> </tr>
<tr id="local_optsv6"> <tr id="local_optsv6">
<td><a id="help_for_local_networkv6" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv6 Local Network/s"); ?></td> <td><a id="help_for_local_networkv6" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv6 Local Network"); ?></td>
<td> <td>
<input name="local_networkv6" type="text" size="40" value="<?=$pconfig['local_networkv6'];?>" /> <input name="local_networkv6" type="text" size="40" value="<?=$pconfig['local_networkv6'];?>" />
<div class="hidden" for="help_for_local_networkv6"> <div class="hidden" for="help_for_local_networkv6">
......
...@@ -1155,7 +1155,7 @@ endif; ?> ...@@ -1155,7 +1155,7 @@ endif; ?>
</td> </td>
</tr> </tr>
<tr class="opt_mode opt_mode_p2p_tls opt_mode_server_tls opt_mode_server_user opt_mode_server_tls_user opt_gwredir"> <tr class="opt_mode opt_mode_p2p_tls opt_mode_server_tls opt_mode_server_user opt_mode_server_tls_user opt_gwredir">
<td width="22%" ><a id="help_local_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv4 Local Network/s"); ?></td> <td width="22%" ><a id="help_local_network" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IPv4 Local Network"); ?></td>
<td> <td>
<input name="local_network" type="text" class="form-control unknown" size="40" value="<?=$pconfig['local_network'];?>" /> <input name="local_network" type="text" class="form-control unknown" size="40" value="<?=$pconfig['local_network'];?>" />
<div class="hidden" for="help_local_network"> <div class="hidden" for="help_local_network">
...@@ -1169,7 +1169,7 @@ endif; ?> ...@@ -1169,7 +1169,7 @@ endif; ?>
</td> </td>
</tr> </tr>
<tr class="opt_mode opt_mode_p2p_tls opt_mode_server_tls opt_mode_server_user opt_mode_server_tls_user opt_gwredir"> <tr class="opt_mode opt_mode_p2p_tls opt_mode_server_tls opt_mode_server_user opt_mode_server_tls_user opt_gwredir">
<td width="22%" ><a id="help_for_local_networkv6" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a><?=gettext("IPv6 Local Network/s"); ?></td> <td width="22%" ><a id="help_for_local_networkv6" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a><?=gettext("IPv6 Local Network"); ?></td>
<td> <td>
<input name="local_networkv6" type="text" class="form-control unknown" size="40" value="<?=$pconfig['local_networkv6'];?>" /> <input name="local_networkv6" type="text" class="form-control unknown" size="40" value="<?=$pconfig['local_networkv6'];?>" />
<div class="hidden" for="help_for_local_networkv6"> <div class="hidden" for="help_for_local_networkv6">
......
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