From c8c277200169dfadf88dd176e5c056967550e059 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Aug 2019 03:49:35 +0200 Subject: Add remote services --- archive/scriptlib/check_server_traffic.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 archive/scriptlib/check_server_traffic.sh (limited to 'archive/scriptlib/check_server_traffic.sh') diff --git a/archive/scriptlib/check_server_traffic.sh b/archive/scriptlib/check_server_traffic.sh new file mode 100755 index 0000000..a9f0abf --- /dev/null +++ b/archive/scriptlib/check_server_traffic.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +all_in=`iptables -L traffic_in -n -v -x | grep -E "0\.0\.0\.0/0[[:space:]]+0\.0\.0\.0/0" | awk 'END { print $2}'` +all_out=`iptables -L traffic_out -n -v -x | grep -E "0\.0\.0\.0/0[[:space:]]+0\.0\.0\.0/0" | awk 'END { print $2}'` +all_forward=`iptables -L traffic_forward -n -v -x | grep -E "0\.0\.0\.0/0[[:space:]]+0\.0\.0\.0/0" | awk 'END { print $2}'` + +echo "$all_in $all_out $all_forward" -- cgit v1.2.3