From owner-freebsd-questions@FreeBSD.ORG Fri Dec 22 22:49:38 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E560316A407 for ; Fri, 22 Dec 2006 22:49:38 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8C50D13C458 for ; Fri, 22 Dec 2006 22:49:38 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 673B8DD80C; Fri, 22 Dec 2006 23:31:28 +0100 (CET) Date: Fri, 22 Dec 2006 23:32:32 +0100 From: cpghost To: Andrew Falanga Message-ID: <20061222223231.GA4208@epia-2.farid-hajji.net> References: <340a29540612221104o6cce1b71u5e392f3b35f4a6c0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <340a29540612221104o6cce1b71u5e392f3b35f4a6c0@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions Subject: Re: What options to netstat will tell me what protocols are listening on what ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2006 22:49:39 -0000 On Fri, Dec 22, 2006 at 12:04:07PM -0700, Andrew Falanga wrote: > In Linux, I would normally use 'netstat -tl' to see a listing of all > listening ports on the tcp protocol; however I'm not having as much luck in > determining what options I need for netstat in FreeBSD. What are the > options that I need to use? > > Andy How about sockstat(1) with the 'l'isten option? % sockstat -46l | grep tcp Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/