From owner-freebsd-isp Fri Aug 17 6:16:53 2001 Delivered-To: freebsd-isp@freebsd.org Received: from smtp.kka.com (smtp.kka.com [63.141.65.2]) by hub.freebsd.org (Postfix) with ESMTP id 6C7A537B40E for ; Fri, 17 Aug 2001 06:16:47 -0700 (PDT) (envelope-from Eric_Stanfield@kenokozie.com) Subject: Re: Killing TCP/IP connection. To: FreeBSD-ISP@FreeBSD.ORG X-Mailer: Lotus Notes Release 5.0.2a November 23, 1999 Message-ID: From: Eric_Stanfield@kenokozie.com Date: Fri, 17 Aug 2001 08:15:02 -0500 X-MIMETrack: Serialize by Router on Notes1st/Keno(Release 5.0.4 |June 8, 2000) at 08/17/2001 08:15:04 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii 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 Wasn't there an app called tcpkill in the ports? I just looked and didn't see it but I could have sworn it was there in the past and was supposed to be able to nuke individual tcp sessions. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Eric Stanfield, K2Access Keno Kozie Associates 222 N LaSalle #1500 Chicago, IL 60606 (312) 332-3000 Fernando Gleiser .uba.ar> cc: Sent by: Subject: Re: Killing TCP/IP connection. owner-freebsd-isp@F reeBSD.ORG 08/17/01 08:36 AM On Fri, 17 Aug 2001 sthaug@nethelp.no wrote: > That's fine for the one process per client case. But I'm talking about > the general case where *one* process handles the connections to many > clients, and you specifically *don't* have a separate process per client. > In such cases it would be very useful to have a command line facility > to kill *one* connection without interfering with the other connections > handled by the same process. If you are using TCP and the clients are on a remote machine, there is no standard way to shutdown a connection from an external process. You would need to sniff the net to know the sequence numbers involved and then send a RST. What you can do is modify the server to use some kind of IPC in which you tell it "I want to shutdown the socket connectod from ip,port to ip,port" and the server then shutown(2)s the socket. Fer > > Steinar Haug, Nethelp consulting, sthaug@nethelp.no > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message