** Reply to message from George Vieira <[EMAIL PROTECTED]> on Mon, 01 Jul 
2002 13:49:04 +1000


> Hi all,
> 
> First post to the list and forgive me if someone's asked this before (I
> tried the archives)...
> 
> Can the above command actually work or is there a way to print just 1 rule
> that matches as I tried something similar to what's shown above and it
> doesn't like it.. go figure.
> 
> Am I doing it wrong or does it not support it in iptables? At the moment I
> have to keep greping the rule I need to check.. is there a better way?

I would just try the tried and true grep:

iptables -L TABLE -n -v | grep "-d x.x.x.x --dport x -i ethx"

jb

Reply via email to