firewall: capture "nat" traffic like we do for "rdr" #3033

This commit is contained in:
Franco Fichtner 2019-02-14 09:41:46 +01:00
parent 67f4948670
commit c0bbb4bbcb
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ POSSIBILITY OF SUCH DAMAGE.
'use strict';
$( document ).ready(function() {
var field_type_icons = {'pass': 'fa-play', 'block': 'fa-ban', 'in': 'fa-arrow-right', 'out': 'fa-arrow-left', 'rdr': 'fa-exchange' };
var field_type_icons = {'pass': 'fa-play', 'block': 'fa-ban', 'in': 'fa-arrow-right', 'out': 'fa-arrow-left', 'rdr': 'fa-exchange', 'nat': 'fa-exchange' };
var interface_descriptions = {};
let hostnameMap = {};
@ -138,7 +138,7 @@ POSSIBILITY OF SUCH DAMAGE.
log_tr.addClass('fw_pass');
} else if (record['action'] == 'block') {
log_tr.addClass('fw_block');
} else if (record['action'] == 'rdr') {
} else if (record['action'] == 'rdr' || record['action'] == 'nat') {
log_tr.addClass('fw_nat');
}
$("#grid-log > tbody > tr:first").before(log_tr);

View File

@ -79,7 +79,7 @@ $nentriesinterfaces = isset($config['widgets']['filterlogentriesinterfaces']) ?
// needed to display the widget settings menu
$("#log-configure").removeClass("disabled");
// icons
const field_type_icons = {'pass': 'fa-play', 'block': 'fa-ban', 'rdr': 'fa-exchange'};
const field_type_icons = {'pass': 'fa-play', 'block': 'fa-ban', 'rdr': 'fa-exchange', 'nat': 'fa-exchange'};
var interface_descriptions = {};
ajaxGet('/api/diagnostics/interface/getInterfaceNames', {}, function(data, status) {