From owner-freebsd-isp Fri Aug 17 4:41:23 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail4.txucom.net (mail4.txucom.net [207.70.175.17]) by hub.freebsd.org (Postfix) with SMTP id 087A137B410 for ; Fri, 17 Aug 2001 04:41:14 -0700 (PDT) (envelope-from bob@buckhorn.net) Received: (qmail 16812 invoked from network); 17 Aug 2001 11:41:12 -0000 Received: from lfkn-adsl-dhcp-net1-159.txucom.net (HELO buckhorn.net) ([207.70.145.159]) (envelope-sender ) by mail4.txucom.net (qmail-ldap-1.03) with SMTP for ; 17 Aug 2001 11:41:12 -0000 Message-ID: <3B7D02DC.546A2E50@buckhorn.net> Date: Fri, 17 Aug 2001 06:41:16 -0500 From: Bob Martin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jan Knepper Cc: FreeBSD Questions , FreeBSD ISP Subject: Re: Killing TCP/IP connection. References: <3B7CC92A.6020801@digitaldaemon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jan Knepper wrote: > > Hi, is there a way to force and end to a TCP/IP connection that shows > with netstat -na ? > Something like kill -HUP or -kill -TERM, but then on a socket? > > Thanks! > Jan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message Use sockstat -4. It will give you the PID of the offending connection. Then you can kill it. Bob Martin -- But in our enthusiasm, we could not resist a radical overhaul of the system, in which all of its major weaknesses have been exposed, analyzed, and replaced with new weaknesses. -- Bruce Leverett, "Register Allocation in Optimizing Compilers" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message