I'm having trouble running iptables using RHEL 6.3.
iptables -A INPUT -p tcp --dport 1234 -j DROP
iptables v1.4.7: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Heres my version of RHEL.
Red Hat Enterprise Linux Server release 6.3 (Santiago)
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