From 2d6647c4458de896500fc43d2709d0b45ac3253b Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 22 Jun 2010 08:32:15 -0700 Subject: [PATCH] Make 'shorewall6 show connections' more readable Signed-off-by: Tom Eastep --- Shorewall6/lib.cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall6/lib.cli b/Shorewall6/lib.cli index eca500b85..310f7438a 100644 --- a/Shorewall6/lib.cli +++ b/Shorewall6/lib.cli @@ -439,7 +439,7 @@ show_command() { local max=$(cat /proc/sys/net/netfilter/nf_conntrack_max) echo "$g_product $SHOREWALL_VERSION Connections ($count of $max) at $g_hostname - $(date)" echo - grep '^ipv6' /proc/net/nf_conntrack + grep '^ipv6' /proc/net/nf_conntrack | sed -r 's/0000:/:/g; s/:::+/::/g; s/:0+/:/g' ;; tos|mangle) [ $# -gt 1 ] && usage 1