| |
|
- * |
- * |
+ * |
+ * |
* |
= html_safe(sprintf(gettext('%s address'), convert_friendly_interface_to_friendly_descr($lockout_intf))) ?> |
= html_safe(implode(', ', $lockout_prts)) ?> |
* |
|
+ |
+ |
+ |
+ |
=gettext("Anti-Lockout Rule");?> |
@@ -429,14 +469,18 @@ $( document ).ready(function() {
|
- * |
- =gettext("RFC 1918 networks");?> |
- * |
- * |
- * |
- * |
- |
- =gettext("Block private networks");?> |
+ * |
+ =gettext("RFC 1918 networks");?> |
+ * |
+ * |
+ * |
+ * |
+ |
+ |
+ |
+ |
+ |
+ =gettext("Block private networks");?> |
|
@@ -452,13 +496,17 @@ $( document ).ready(function() {
- * |
- =gettext("Reserved/not assigned by IANA");?> |
- * |
- * |
- * |
- * |
- |
+ * |
+ =gettext("Reserved/not assigned by IANA");?> |
+ * |
+ * |
+ * |
+ * |
+ |
+ |
+ |
+ |
+ |
=gettext("Block bogon networks");?> |
@@ -476,9 +524,9 @@ $( document ).ready(function() {
$selected_if == 'FloatingRules'
)
):
- // calculate a hash so we can track these records in the rulset, new style (mvc) code will
+ // calculate a hash so we can track these records in the ruleset, new style (mvc) code will
// automatically provide us with a uuid, this is a workaround to provide some help with tracking issues.
- $filterent['md5'] = md5(json_encode($filterent));
+ $rule_hash = OPNsense\Firewall\Util::calcRuleHash($filterent);
$interface_has_rules = true;
// select icon
@@ -540,7 +588,7 @@ $( document ).ready(function() {
|
-
+ |
=$record_ipprotocol;?>
|
-
+ |
=htmlspecialchars(pprint_address($filterent['source']));?>
@@ -588,7 +636,7 @@ $( document ).ready(function() {
|
-
+ |
=htmlspecialchars(pprint_port($filterent['source']['port'])); ?>
@@ -602,7 +650,7 @@ $( document ).ready(function() {
|
-
+ |
=htmlspecialchars(pprint_address($filterent['destination'])); ?>
@@ -616,7 +664,7 @@ $( document ).ready(function() {
|
-
+ |
=htmlspecialchars(pprint_port($filterent['destination']['port'])); ?>
@@ -630,7 +678,7 @@ $( document ).ready(function() {
|
-
+ |
=isset($config['interfaces'][$filterent['gateway']]['descr']) ? htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']) : htmlspecialchars(pprint_port($filterent['gateway'])); ?>
@@ -639,7 +687,7 @@ $( document ).ready(function() {
*
|
-
+ |
|
+ =!empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['evaluations'] : "";?> |
+ =!empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['packets'] : "";?> |
+ =!empty($all_rule_stats[$rule_hash]) ? format_bytes($all_rule_stats[$rule_hash]['bytes']) : "";?> |
+ =!empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['states'] : "";?> |
=htmlspecialchars($filterent['descr']);?>
- =$filterent['md5'];?>
+ =$rule_hash;?>
|
@@ -727,8 +779,11 @@ $( document ).ready(function() {
|