Hi,
It seems that -T
does not work correctly. It counts all iptables rules and you can not count rules separately. I created some changes in your code. Here is attachment with my changes. Could you take a look?
check_iptables_status.txt
I added check if table name is incorrect.
Hi,
It seems that -T
does not work correctly. It counts all iptables rules and you can not count rules separately. I created some changes in your code. Here is attachment with my changes. Could you take a look?check_iptables_status.txt
I added check if table name is incorrect.