From 38511df4b376f8ec5eee9af55df92f96cab0a0cf Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Wed, 18 Sep 2024 14:07:24 +0000 Subject: T6723: firewall: extend op-mode commands and a in order to match all chains/priorities --- op-mode-definitions/show-log.xml.in | 125 ++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) mode change 100644 => 100755 op-mode-definitions/show-log.xml.in (limited to 'op-mode-definitions/show-log.xml.in') diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in old mode 100644 new mode 100755 index f0fad63d2..c2504686d --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -172,6 +172,81 @@ + + + Show Bridge input firewall log + + journalctl --no-hostname --boot -k | grep bri-INP + + + + Show Bridge firewall input filter + + journalctl --no-hostname --boot -k | grep bri-INP-filter + + + + Show log for a rule in the specified firewall + + firewall bridge input filter rule + + + journalctl --no-hostname --boot -k | egrep "\[bri-INP-filter-$8-[ADRJC]\]" + + + + + + + + Show Bridge output firewall log + + journalctl --no-hostname --boot -k | grep bri-OUT + + + + Show Bridge firewall output filter + + journalctl --no-hostname --boot -k | grep bri-OUT-filter + + + + Show log for a rule in the specified firewall + + firewall bridge output filter rule + + + journalctl --no-hostname --boot -k | egrep "\[bri-OUT-filter-$8-[ADRJC]\]" + + + + + + + + Show Bridge prerouting firewall log + + journalctl --no-hostname --boot -k | grep bri-PRE + + + + Show Bridge firewall prerouting filter + + journalctl --no-hostname --boot -k | grep bri-PRE-filter + + + + Show log for a rule in the specified firewall + + firewall bridge prerouting filter rule + + + journalctl --no-hostname --boot -k | egrep "\[bri-PRE-filter-$8-[ADRJC]\]" + + + + + Show custom Bridge firewall log @@ -295,6 +370,31 @@ + + + Show firewall IPv4 prerouting log + + journalctl --no-hostname --boot -k | grep ipv4-PRE + + + + Show firewall IPv4 prerouting raw log + + journalctl --no-hostname --boot -k | grep ipv4-PRE-raw + + + + Show log for a rule in the specified firewall + + firewall ipv4 prerouting raw rule + + + journalctl --no-hostname --boot -k | egrep "\[ipv4-PRE-raw-$8-[ADRJC]\]" + + + + + @@ -398,6 +498,31 @@ + + + Show firewall IPv6 prerouting log + + journalctl --no-hostname --boot -k | grep ipv6-PRE + + + + Show firewall IPv6 prerouting raw log + + journalctl --no-hostname --boot -k | grep ipv6-PRE-raw + + + + Show log for a rule in the specified firewall + + firewall ipv6 prerouting raw rule + + + journalctl --no-hostname --boot -k | egrep "\[ipv6-PRE-raw-$8-[ADRJC]\]" + + + + + -- cgit v1.2.3