LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-28-2012, 12:41 PM   #1
obct537
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Ports close randomly?


Hi,
Sorry if this is covered elsewhere, I looked but was unable to find anything similar. Anyway...

I'm using Slackware 13.37, and it's running as a guest in KVM. I have several services running on it, including SSH, Samba, httpd, and others.

I've been working on a website hosted on that Slackware instance, and I've been connecting to it with both SSH and Samba (usually at the same time). Recently, I've been having a problem roughly every 10-30 minutes, where SSH errors out with "Broken pipe". When this happens, Samba also stops working as well.

When I try to re-connect in SSH, it gives me an error of "ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused". I am also unable to re-connect to the Samba share, using Ubuntu's built-in Samba client.

The really bizarre thing is that, when I run an nmap port scan on the Slackware machine (trying to see if there was some sort of firewall issues), it all magically works again.

This problem keeps re-occuring, and I can't find any reason why. I'm pretty new to Slackware specifically, and I'm not having any luck tracking down the source of this problem...


Any ideas?
P.S I'll be happy to supply any information that might be useful in solving this.
 
Old 01-28-2012, 01:32 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Places to start your investigation - on the KVM guest:
  • sshd(8) application logging (not sure where Slackware has that going by default)
  • smbd(8) application logging (ditto)
  • kernel logging (often /var/log/messages)

In addition, the KVM host may have logging that helps you understand what is going on.

One or more of those should provide insight into the problem. In situations like this, I usually like to watch packet activity with tcpdump(1) as well (to see things like whether conversations are being torn down, RST packets are being sent, or hosts are simply not replying at all).
 
Old 01-28-2012, 02:43 PM   #3
obct537
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
Places to start your investigation - on the KVM guest:
  • sshd(8) application logging (not sure where Slackware has that going by default)
  • smbd(8) application logging (ditto)
  • kernel logging (often /var/log/messages)

In addition, the KVM host may have logging that helps you understand what is going on.

One or more of those should provide insight into the problem. In situations like this, I usually like to watch packet activity with tcpdump(1) as well (to see things like whether conversations are being torn down, RST packets are being sent, or hosts are simply not replying at all).
Thanks, that may have helped.

I did a tcpdump from my desktop until I had the problem again, and noticed a RST packet when the problem occurred. I have yet to uncover the cause, but that's a decent start.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
open ports for utorrent using iptables n close smpt to that ports shtorrent00 Linux - Networking 2 09-30-2008 03:34 PM
tcl/expect telnet spawns randomly close Hewson Programming 1 05-12-2007 10:25 AM
How can I close ports? nectron101 Linux - Networking 3 11-27-2004 11:22 PM
Linux ports randomly closing? eric_marsh Linux - Software 1 07-11-2004 10:33 AM
how do i close ports. KidTonz Linux - Security 3 12-18-2001 02:43 AM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration