From owner-freebsd-isp Wed Oct 8 18:15:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA28071 for isp-outgoing; Wed, 8 Oct 1997 18:15:49 -0700 (PDT) (envelope-from owner-freebsd-isp) Received: from news.skyinet.net (NEWS.SKYINET.NET [206.101.197.231]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA28066 for ; Wed, 8 Oct 1997 18:15:45 -0700 (PDT) (envelope-from dune@skyinet.net) Received: from skyinet.net (NOC10.QZN.SKYINET.NET [206.101.197.10]) by news.skyinet.net (8.8.6/8.8.5) with ESMTP id JAA11345 for ; Thu, 9 Oct 1997 09:15:37 +0800 (PST) Message-ID: <343C3032.E191B6F@skyinet.net> Date: Thu, 09 Oct 1997 09:15:30 +0800 From: "Francis Percival C. Favoreal" Organization: SKYinternet X-Mailer: Mozilla 4.02 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: TCP Connections Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I appreciate any input on this regard. How does one go about intentionally ending an active TCP connection to a server? This seemed easy at first when I thought about it. All I have to do is kill the daemon entertainng that active TCP connection. For example, killing the stand alone server daemon telnetd would disconnect all active telnet sessions or if I just want to end one telnet session, all I have to do again is kill the specific telnet daemon servicing that specific telnet session. In short, just kill the appropriate daemon for the service. However, what if there exist only one stand alone server daemon that does not fork another process to service a TCP connection? Example is the daemon IRCD. I do not see any forked IRCD process to handle an IRC connection when I do a ps -ax. I was able to see the active TCP connections to IRCD using the command netstat -an. Ending a telnet session was easy because I could just kill the telnetd process running but for this one there is no daemon except for an entry in the table produced by doing a netstat -an. To rephrase the question, How does one intentionally end a TCP connection that does not have a corresponding forked server process? or technically, How do I delete a TCP entry in the table produced by a netstat -an ? Thank you in advance. -- rick