LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2002, 03:48 AM   #1
MarkO
LQ Newbie
 
Registered: Oct 2002
Location: Harrogate, North Yorkshire
Posts: 5

Rep: Reputation: 0
Network hang


I'm a linux network newbie so please bear with me. Also, if this isn't the right forum, please let me know.

My RH7.3 server is located in a DMZ. Access to the server is via SSH and HTTPS. I don't believe the server has any firewall rules set up as another machine on the DMZ does all that for me.

A couple of times per day access via SSH / HTTPS suddenly stops. There's nothing in the system log that indicates why.

The strange thing is, restarting the SSH server doesn't make it work. Rebooting does, as does restarting the network.

Any ideas what could be the cause? I'm not sure what sort of other info I can provide.
Regards
Mark
 
Old 10-07-2002, 04:09 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Sure, what connects to what in what order?

Regards,
Peter
 
Old 10-07-2002, 04:35 AM   #3
MarkO
LQ Newbie
 
Registered: Oct 2002
Location: Harrogate, North Yorkshire
Posts: 5

Original Poster
Rep: Reputation: 0
I'm sorry Peter, I don't understand the question - could you expand a bit?
Regards
Mark
 
Old 10-07-2002, 09:34 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Oops...
How are the pc's connected?
A descripion of which machines you must go through to get to your server in the DMZ, etc.

Regards,
Peter
 
Old 10-07-2002, 09:45 AM   #5
MarkO
LQ Newbie
 
Registered: Oct 2002
Location: Harrogate, North Yorkshire
Posts: 5

Original Poster
Rep: Reputation: 0
The server is access through a firewall - apparently we use Checkpoint Firewall 1 software.

The DMZ is on a different network segment (I'm told).
Does this answer your question?

I've double-checked with the IT team and the firewall is not being modified during the periods where I can and cannot gain access to our server so I'm trying to the firewall from the equation.
 
Old 10-07-2002, 10:54 AM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I'd start by placing a LOG entry in the firewall rules of your server.
Try,
iptables -t nat -A PREROUTING -j LOG --log-level 6 --log-prefix "incoming "
and look for the messages in /var/log/messages.

Look for a period of no activity. This means netfilter didn't get any packets from the nic. If this is the case, set up a cronttab entry to run every hour (or less) to scan yourself with nmap or similar, and look for these in your own pc log files.
cronttab -e
0 * * * * /usr/bin/nmap -sS -p 22,80,110 -P0 -r -n yr.ip.num.ber > /var/log/scan
to check the path outward. (man cronttab)
If you find your server isn't sending, check the connection with another server on the DMZ, and if it works ok, get another patch cord or NIC.
(if you can get the permission, try the nmap thing on some known open ports on servers inside the DMZ as well to cross reference what is & isn't working)

Regards,
Peter

Last edited by peter_robb; 10-07-2002 at 10:58 AM.
 
Old 10-09-2002, 08:12 AM   #7
MarkO
LQ Newbie
 
Registered: Oct 2002
Location: Harrogate, North Yorkshire
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Peter
I've set up the logging as mentioned. There is no period of activity reported. There's network activity for every minute of every day for the last 2 days.
Also, when ssh and https "hung" I was able to access other machines via the console.

Any further thoughts?
Regards,
Mark
 
Old 10-09-2002, 03:05 PM   #8
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Hmmm?

What are the connections while your ssh/https hangs?

Regards,
Peter
 
Old 10-15-2002, 09:06 AM   #9
MarkO
LQ Newbie
 
Registered: Oct 2002
Location: Harrogate, North Yorkshire
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Peter,
Sorry it's taken a bit of time to reply...
Here's the output from a "netstat -punta" command performed at the point when it failed.
Regards
Mark

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 618/rpc.statd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1094/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 590/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 3352/X
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1105/perl
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2239/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 878/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1040/httpd
tcp 0 0 192.168.1.7:22 10.2.64.179:1025 ESTABLISHED 20016/sshd
udp 0 0 0.0.0.0:32768 0.0.0.0:* 618/rpc.statd
udp 0 0 0.0.0.0:10000 0.0.0.0:* 1105/perl
udp 0 0 0.0.0.0:111 0.0.0.0:* 590/portmap
 
  


Reply



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
network service hang frequently in all redhat & fedora mfrd Linux - Networking 1 07-07-2005 10:06 AM
Network and Printer Configuration hang when started sloik2000 Linux - Software 1 05-23-2005 05:06 PM
Fedora Core 3 Boot Hang At Network thomaslking Linux - Newbie 2 05-13-2005 09:42 PM
ftp and ssh connections hang - network config? TreeHugger Linux - Networking 7 11-08-2004 10:55 AM
samba: network neighborhood got hang! katana Linux - General 3 07-17-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration