Add colors to statuses
This commit is contained in:
parent
b25d67bd43
commit
900c789f95
20
minifirewall
20
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue