Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is a real newbie question but I can't figure out how to do it. When I run netstat -a I see the active connections. How would you terminate one of those connections?
tcp 0 0 192.168.0.100:34887 unknown.Level3.net:http ESTABLISHED
tcp 0 0 192.168.0.100:34888 unknown.Level3.net:http ESTABLISHED
tcp 0 0 192.168.0.100:34479 64.12.24.137:5190 ESTABLISHED
tcp 0 0 192.168.0.100:34886 unknown.Level3.net:http ESTABLISHED
tcp 0 0 192.168.0.100:34883 unknown.Level3.net:http ESTABLISHED
tcp 0 0 192.168.0.100:34894 216.151.201.137:http ESTABLISHED
tcp 0 0 192.168.0.100:34893 216.151.201.137:http ESTABLISHED
tcp 0 0 192.168.0.100:34906 65.122.104.1:ircd ESTABLISHED
I don't know what those "unknown.Level3.net:http" connections are. Obviously it is an http connection but I want to kill them.
I wonder how to kill, processes without a pid? Is this possible? killing the actual connecting rather than the program at which the connection is using?
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
If you dont see a PID, you may have to do some guesswork looking at the TCP ports at the local and remote IPs . In your case it looks like a TCP connection to your SMTP server from a temporary port in a remote machine. Restart your SMTP server and it will be gone, if you just want to play with it. Generally speaking, if you start doing this to kill connections that are usually kept alive, you'd be engaged all day
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.