Wednesday, 20 July 2011

View currently open network connections

Do you *know* what ports you have open on your machine or your server? Do you know what processes are communicating with what machines on the net, and as which user? If you are curious about these things, this script might be for you!


This is a bash-script that runs in the background (via launchd) and gathers information about what currently open network connections your machine have, both outgoing and incoming (listening) ports. It does so every two minutes. When the script is run by root, it gathers the data; when run as any other user it displays the data.

You can use this in conjunction with GeekTool to always see the data on your screen. Here is the script:
 #!/bin/bash # Script to install open_ports.sh # 2011-05-05 / Peter M�lle ...


Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=999429e157b99a40bc56fa199fbd7c3f

apple news today mac protection apple hot news remote desktop

No comments:

Post a Comment