From owner-freebsd-net Wed Jan 24 9:27: 1 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 27DB137B711 for ; Wed, 24 Jan 2001 09:26:42 -0800 (PST) Received: from portonovo-15.budapest.interware.hu ([195.70.60.79] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 14LTgm-0007yA-00; Wed, 24 Jan 2001 18:26:33 +0100 Message-ID: <3A6F1045.E3A39531@elischer.org> Date: Wed, 24 Jan 2001 09:26:29 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Matus KICZKO Cc: freebsd-net@freebsd.org Subject: Re: List of divert(4) connections References: <002e01c0860c$adb454e0$0232a8c0@arasid> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matus KICZKO wrote: > > I'd like to get a list of all tcp connections established between my > internal network and internet throug divert(4) socket. Running natd > with -verbose option does not start the daemon and display all packet > alterations. Is there a way how to list connections handled by natd only > something like netstat -M on linux)? you could copy the netgraph code in netstat and modify it to do divert.. (I think we had this once at Whistle when we wrote divert, but lost it) define "connections" if you mean active sessions being traced, I suggest that a SIGUSR1 to natd might be used to make it dump it's state somewhere) (patches to make it do this will be gladdy accpted :-) > Thanks > Matus > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ from Perth, presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message