Øyvind Lode <oyv...@lode.is> wrote:

> Is it as simple as looking at the pkts and bytes columns like this:
> 
> munin:~# shorewall show net2loc | grep udp
> 3425K  260M ACCEPT     udp  --  *      *       0.0.0.0/0            
> 192.168.1.2
> udp dpt:123 /* NTP */
> munin:~#

I use iptables to list a chain (which is basically what shorewall show is 
doing) - but then it's an accounting chain so I don't know the answer to your 
second part. I use the flags '-vxn' which means that (amongst other things) the 
packet and byte counts are in simple numbers which avoids the need to parse 
"K", "M", "G", etc.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to