From e5de358e2a293417787afdbb0f9dfbf7eb67495c Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sat, 2 Apr 2022 09:06:34 +0200 Subject: [PATCH] Add markers for each section in status --- minifirewall | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/minifirewall b/minifirewall index b7c8d3b..a311a0f 100755 --- a/minifirewall +++ b/minifirewall @@ -843,12 +843,20 @@ stop() { } status() { + printf "#### iptables --list ###############################\n" ${IPT} --list --numeric --verbose --line-numbers - ${IPT} -t nat --list --numeric --verbose --line-numbers - ${IPT} -t mangle --list --numeric --verbose --line-numbers + printf "\n### iptables --table nat --list ####################\n" + ${IPT} --table nat --list --numeric --verbose --line-numbers + printf "\n#### iptables --table mangle --list ################\n" + ${IPT} --table mangle --list --numeric --verbose --line-numbers if is_ipv6_enabled; then + printf "\n#### ip6tables --list ##############################\n" ${IPT6} --list --numeric --verbose --line-numbers - ${IPT6} -t mangle --list --numeric --verbose --line-numbers + printf "\n#### ip6tables --table mangle --list ###############\n" + ${IPT6} --table mangle --list --numeric --verbose --line-numbers + fi +} + fi }