mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
firewall: capture "nat" traffic like we do for "rdr" #3033
This commit is contained in:
parent
67f4948670
commit
c0bbb4bbcb
@ -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);
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user