Add colors to statuses
This commit is contained in:
parent
b25d67bd43
commit
900c789f95
20
minifirewall
20
minifirewall
|
@ -985,31 +985,31 @@ stop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
printf "#### iptables --list ###############################\n"
|
printf "${BLUE}#### iptables --list ###############################${RESET}\n"
|
||||||
${IPT} --list --numeric --verbose --line-numbers
|
${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
|
${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
|
${IPT} --table mangle --list --numeric --verbose --line-numbers
|
||||||
if is_ipv6_enabled; then
|
if is_ipv6_enabled; then
|
||||||
printf "\n#### ip6tables --list ##############################\n"
|
printf "\n${BLUE}#### ip6tables --list ##############################${RESET}\n"
|
||||||
${IPT6} --list --numeric --verbose --line-numbers
|
${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
|
${IPT6} --table mangle --list --numeric --verbose --line-numbers
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
status_without_numbers() {
|
status_without_numbers() {
|
||||||
printf "#### iptables --list ###############################\n"
|
printf "${BLUE}#### iptables --list ###############################${RESET}\n"
|
||||||
${IPT} --list --numeric
|
${IPT} --list --numeric
|
||||||
printf "\n### iptables --table nat --list ####################\n"
|
printf "\n${BLUE}### iptables --table nat --list ####################${RESET}\n"
|
||||||
${IPT} --table nat --list --numeric
|
${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
|
${IPT} --table mangle --list --numeric
|
||||||
if is_ipv6_enabled; then
|
if is_ipv6_enabled; then
|
||||||
printf "\n#### ip6tables --list ##############################\n"
|
printf "\n${BLUE}#### ip6tables --list ##############################${RESET}\n"
|
||||||
${IPT6} --list --numeric
|
${IPT6} --list --numeric
|
||||||
printf "\n#### ip6tables --table mangle --list ###############\n"
|
printf "\n${BLUE}#### ip6tables --table mangle --list ###############${RESET}\n"
|
||||||
${IPT6} --table mangle --list --numeric
|
${IPT6} --table mangle --list --numeric
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue