I want to allow user to check how many rules are present in filter table, but not able to view actual rules, is that possible?
literally I mean iptables -L | wc -l
(I know it's faulty), but sudo doesn't seem to support pipe commands like that, I mean, currently If I wanted to allow that, I need to grant permission to run iptables -L
instead of iptables -L | wc -l
Any thoughts?