Weblog entry #6 for lykwydchykyn

Manually killing a network connection
Posted by lykwydchykyn on Wed 31 May 2006 at 17:48
Tags: none.
I use ncpmount to connect to netware servers here at work. The trouble is, after an hour or so the connection just goes comatose and won't work. If I try to unmount it, I get a failure to disconnect.

So I wrote a little script that kills all the ncp processes, and I figured that had it fixed. WRONG!

If I do a netstat, I still have 1 connection listed for every ncp connection I've made (including the ones I've killed). So after a few days I can end up with around 20-30 connections. Doing a netstat with the -p flag (even as root), there is no process associated with the connection, and ps -A turns up no ncp processes.

If I try to do /etc/init.d/networking restart, I get an error that there are still shares mounted. If I do a force-reload, it reloads the networking, but the connections are still there.

The only way I've found to clear the connections so far is a reboot, and that just won't do.

Which brings me to my question: is there a way to manually kill a udp or tcp connection that persists even when the process is dead?

 

Comments on this Entry

Posted by Steve (62.30.xx.xx) on Wed 31 May 2006 at 20:58
[ Send Message | View Steve's Scratchpad | View Weblogs ]

You might be able to use tcpkill as described here.

(The tcpkill command is included in the dsniff package.)

Steve

[ Parent | Reply to this comment ]

Posted by lykwydchykyn (66.236.xx.xx) on Thu 1 Jun 2006 at 15:58
[ Send Message | View Weblogs ]
Thanks. I would say I will give this a try, but I think I may have fixed the issue. For whatever reason, my firewall was causing the connections to drop; having fixed that issue, I don't have connections to kill now. Still, I will read up on tcpkill; never hurts to have another command in the arsenal.

[ Parent | Reply to this comment ]

Posted by Anonymous (24.76.xx.xx) on Sat 31 May 2008 at 16:32
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous Bob Gates - Edina Realty http://www.farmbureauinsurance-mi.com/pages/geograph/dorr.htm

[ Parent | Reply to this comment ]

Posted by Anonymous (96.28.xx.xx) on Tue 3 Jun 2008 at 11:29
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous
<a href= http://www.h6.dion.ne.jp/~usedcar/ >Aichi Trading Ltd.</a>
http://www.cdrive.co.uk/dws/

[ Parent | Reply to this comment ]

Posted by Anonymous (130.13.xx.xx) on Thu 5 Jun 2008 at 13:33
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous
<a href= http://www.kennebeck.com/ >Kennebeck Editions</a>
http://www.utexas.edu/courses/wilson/ant304/projects/projects97/m civerp/ppdates.html

[ Parent | Reply to this comment ]

Posted by Anonymous (190.73.xx.xx) on Sun 8 Jun 2008 at 02:40
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous Kieffer Nature Stock http://www.santa-cruz-real-estate.com

[ Parent | Reply to this comment ]

Posted by Anonymous (24.183.xx.xx) on Tue 10 Jun 2008 at 15:27
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous Complete Vegetarian Christmas Menu http://www.stemc.org/

[ Parent | Reply to this comment ]

Posted by Anonymous (99.194.xx.xx) on Thu 12 Jun 2008 at 14:23
oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous
<a href= http://www.aimadventures.com/ >Aim Adventures</a>
http://www.culture.gouv.fr/culture/arcnat/tautavel/francais/

[ Parent | Reply to this comment ]

Posted by Anonymous (213.40.xx.xx) on Mon 16 Jun 2008 at 09:43

oxbow bronchoplasty phlebotomic psychogenetically processionary thakurate inobservantness androphagous
Western Trade Supplies
http://www.clubwebsite.co.uk/ridgewayroversfootballclub/

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search