diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
index edb03b572..941f853fe 100644
--- a/src/etc/inc/util.inc
+++ b/src/etc/inc/util.inc
@@ -1004,6 +1004,28 @@ function alias_expand($name) {
}
}
+/* get description of alias */
+function get_alias_description($name)
+{
+ global $config;
+
+ if (is_alias($name))
+ {
+ if (isset($config['aliases']['alias']))
+ {
+ foreach ($config['aliases']['alias'] as $alias)
+ {
+ if ($alias['name'] == $name)
+ {
+ return (isset($alias['descr'])) ? $alias['descr'] : "";
+ }
+ }
+
+ return null;
+ }
+ }
+}
+
function subnet_size($subnet) {
if (is_subnetv4($subnet)) {
list ($ip, $bits) = explode("/", $subnet);
diff --git a/src/www/firewall_nat.php b/src/www/firewall_nat.php
index f6b18ca12..1c3877f08 100644
--- a/src/www/firewall_nat.php
+++ b/src/www/firewall_nat.php
@@ -323,36 +323,70 @@ $( document ).ready(function() {
=strtoupper($natent['protocol']);?>
|
+
- =htmlspecialchars(pprint_address($natent['source']));?>
-
+
+ =htmlspecialchars(pprint_address($natent['source'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($natent['source'])); ?>
|
+
- =htmlspecialchars(pprint_port($natent['source']['port']));?>
-
-
+
+
+ =htmlspecialchars(pprint_port($natent['source']['port'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_port(isset($natent['source']['port']) ? $natent['source']['port'] : null)); ?>
|
+
- =htmlspecialchars(pprint_address($natent['destination']));?>
-
+
+ =htmlspecialchars(pprint_address($natent['destination'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($natent['destination'])); ?>
|
+
- =htmlspecialchars(pprint_port($natent['destination']['port']));?>
-
-
+
+
+ =htmlspecialchars(pprint_port($natent['destination']['port'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_port(isset($natent['destination']['port']) ? $natent['destination']['port'] : null)); ?>
|
+
=$natent['target'];?>
|
+
- =htmlspecialchars(pprint_port($localport));?>
-
-
+
+
+ =htmlspecialchars(pprint_port($localport));?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_port($localport));?>
|
+
=$natent['descr'];?>
|
@@ -388,6 +430,7 @@ $( document ).ready(function() {
+
|
|
diff --git a/src/www/firewall_nat_1to1.php b/src/www/firewall_nat_1to1.php
index 58d83a8e1..1794b76f6 100644
--- a/src/www/firewall_nat_1to1.php
+++ b/src/www/firewall_nat_1to1.php
@@ -231,15 +231,29 @@ $main_buttons = array(
|
- =pprint_address($natent['source']);?>
-
+
+ =htmlspecialchars(pprint_address($natent['source']));?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($natent['source']));?>
|
- =pprint_address($natent['destination']);?>
-
+
+ =htmlspecialchars(pprint_address($natent['destination']));?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($natent['destination']));?>
|
diff --git a/src/www/firewall_nat_out.php b/src/www/firewall_nat_out.php
index 0693e6e16..93da93217 100644
--- a/src/www/firewall_nat_out.php
+++ b/src/www/firewall_nat_out.php
@@ -363,10 +363,17 @@ include("head.inc");
=htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface'])); ?>
|
- = $natent['source']['network'] == "(self)" ? "This Firewall" : $natent['source']['network']; ?>
-
-
-
+
+
+ =htmlspecialchars($natent['source']['network']);?>
+
+ " data-toggle="tooltip">
+
+
+
+ =$natent['source']['network'] == "(self)" ? gettext("This Firewall") : htmlspecialchars($natent['source']['network']); ?>
+
|
=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?>
@@ -374,10 +381,17 @@ include("head.inc");
|
=isset($natent['destination']['not']) ? "! " :"";?>
- =isset($natent['destination']['any']) ? "*" : $natent['destination']['address'] ;?>
-
-
-
+
+
+ =htmlspecialchars($natent['destination']['address']);?>
+
+ " data-toggle="tooltip">
+
+
+
+ =isset($natent['destination']['any']) ? "*" : htmlspecialchars($natent['destination']['address']);?>
+
|
=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?>
@@ -395,10 +409,17 @@ include("head.inc");
else
$nat_address = $natent['target'];
?>
- =htmlspecialchars($nat_address);?>
-
-
-
+
+
+ =htmlspecialchars($nat_address);?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars($nat_address);?>
+
|
=empty($natent['natport']) ? "*" : htmlspecialchars($natent['natport']);?>
diff --git a/src/www/firewall_rules.php b/src/www/firewall_rules.php
index abe9291ec..c83ffa6ae 100644
--- a/src/www/firewall_rules.php
+++ b/src/www/firewall_rules.php
@@ -446,6 +446,7 @@ $( document ).ready(function() {
">
|
+
=$record_ipprotocol;?>
|
+
- =htmlspecialchars(pprint_address($filterent['source']));?>
-
+
+ =htmlspecialchars(pprint_address($filterent['source']));?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($filterent['source']));?>
|
+
- =htmlspecialchars(pprint_port(isset($filterent['source']['port']) ? $filterent['source']['port'] : null)); ?>
-
-
-
+
+
+ =htmlspecialchars(pprint_port($filterent['source']['port'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_port(isset($filterent['source']['port']) ? $filterent['source']['port'] : null)); ?>
+
|
+
- =htmlspecialchars(pprint_address($filterent['destination'])); ?>
-
+
+ =htmlspecialchars(pprint_address($filterent['destination'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_address($filterent['destination'])); ?>
|
+
- =htmlspecialchars(pprint_port(isset($filterent['destination']['port']) ? $filterent['destination']['port'] : null)); ?>
-
+
+ =htmlspecialchars(pprint_port($filterent['destination']['port'])); ?>
+
+ " data-toggle="tooltip">
+
+
+
+ =htmlspecialchars(pprint_port(isset($filterent['destination']['port']) ? $filterent['destination']['port'] : null)); ?>
|
+
|