#!/bin/bash while [ 1 ]; do netstat | grep -v "localhost:" done