Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 20599 invoked from network); 14 Apr 2004 22:03:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Apr 2004 22:03:21 -0000 Received: (qmail 32047 invoked by uid 500); 14 Apr 2004 22:02:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31980 invoked by uid 500); 14 Apr 2004 22:02:50 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 31954 invoked from network); 14 Apr 2004 22:02:50 -0000 Received: from unknown (HELO mail.winfreeacademy.com) (12.45.130.164) by daedalus.apache.org with SMTP; 14 Apr 2004 22:02:50 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.winfreeacademy.com (Postfix) with ESMTP id 86B7C1AA4E for ; Wed, 14 Apr 2004 17:02:50 -0500 (CDT) Received: from mail.winfreeacademy.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (VaMailArmor-2.0.1.16) id 03074-38D63CBD; Wed, 14 Apr 2004 17:02:50 -0500 Received: from winfreeacademy.com (ns1.winfreeacademy.com [12.45.130.162]) by mail.winfreeacademy.com (Postfix) with ESMTP id 4A6E61AA4D for ; Wed, 14 Apr 2004 17:02:50 -0500 (CDT) Message-ID: <407DB4F2.4010307@winfreeacademy.com> Date: Wed, 14 Apr 2004 17:02:26 -0500 From: Laura Vance Reply-To: vancel@winfreeacademy.com Organization: WACS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.25.0.2; VDF: 6.25.0.13; host: mail.winfreeacademy.com) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Beginner - port 80 and firewall X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N A way to use netstat (v1.42 in net-tools v1.60) to get the process information along with each open port is to do: netstat -tapn I almost always use the 't' option since I'm usually only looking for TCP connections (I don't want to see the hundreds of UNIX sockets). The 'p' is what will show the process information, but it only shows the processes that you have rights to see. If you're 'root', you'll see them all. Since this server is very active, I also pipe the output into a grep command to filter out all of the closed connections that are waiting for their timeout (status of CLOSED_WAIT, TIME_WAIT, etc.). netstat -tapn | grep -ve "_WAIT" and that lets me see all listening ports, and all IPs and ports that are currently connected. Rafael Faura wrote: >... This is the same information you would see using the 'netstat >-an' command, but it also maps those ports to running processes with the >PID, process name and path. Fport can be used to quickly identify unknown >open ports and their associated applications. ... > > > > -- Thanks, Laura Vance Systems Engineer Winfree Academy Charter Schools, Data-Business Office 1711 W. Irving Blvd. Ste 310 Irving, Tx 75061 Web: www.winfreeacademy.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org