From 900c789f95c946170a3a9937c80f80d3cb2ecd24 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 28 Apr 2022 16:31:28 +0200 Subject: [PATCH] Add colors to statuses --- minifirewall | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/minifirewall b/minifirewall index 879e24b..438c631 100755 --- a/minifirewall +++ b/minifirewall @@ -985,31 +985,31 @@ stop() { } status() { - printf "#### iptables --list ###############################\n" + printf "${BLUE}#### iptables --list ###############################${RESET}\n" ${IPT} --list --numeric --verbose --line-numbers - printf "\n### iptables --table nat --list ####################\n" + printf "\n${BLUE}### iptables --table nat --list ####################${RESET}\n" ${IPT} --table nat --list --numeric --verbose --line-numbers - printf "\n#### iptables --table mangle --list ################\n" + printf "\n${BLUE}#### iptables --table mangle --list ################${RESET}\n" ${IPT} --table mangle --list --numeric --verbose --line-numbers if is_ipv6_enabled; then - printf "\n#### ip6tables --list ##############################\n" + printf "\n${BLUE}#### ip6tables --list ##############################${RESET}\n" ${IPT6} --list --numeric --verbose --line-numbers - printf "\n#### ip6tables --table mangle --list ###############\n" + printf "\n${BLUE}#### ip6tables --table mangle --list ###############${RESET}\n" ${IPT6} --table mangle --list --numeric --verbose --line-numbers fi } status_without_numbers() { - printf "#### iptables --list ###############################\n" + printf "${BLUE}#### iptables --list ###############################${RESET}\n" ${IPT} --list --numeric - printf "\n### iptables --table nat --list ####################\n" + printf "\n${BLUE}### iptables --table nat --list ####################${RESET}\n" ${IPT} --table nat --list --numeric - printf "\n#### iptables --table mangle --list ################\n" + printf "\n${BLUE}#### iptables --table mangle --list ################${RESET}\n" ${IPT} --table mangle --list --numeric if is_ipv6_enabled; then - printf "\n#### ip6tables --list ##############################\n" + printf "\n${BLUE}#### ip6tables --list ##############################${RESET}\n" ${IPT6} --list --numeric - printf "\n#### ip6tables --table mangle --list ###############\n" + printf "\n${BLUE}#### ip6tables --table mangle --list ###############${RESET}\n" ${IPT6} --table mangle --list --numeric fi }