LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-20-2012, 09:43 PM   #1
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
sshd stopped responding to external connections


Alright, this is a pretty weird situation.

I have several Linux boxes behind a router with a single public static IP. All machines have static IPs on the LAN, all are set up in a headless config so they are remotely managed through SSH, all work great. For several years, I have been forwarding port 22 to one of the machines (call it box3), and it's been working great. A couple of weeks ago we had a power outage, the UPS on box3 failed and box3 experienced a hard shutdown. The UPS's on the other machines were fine, no problems there. When box3 came back up, the following problems started.

Box3 is accessible through SSH within the LAN like normal. However, I can no longer connect to box3 from outside the LAN using the public IP like before. It's as if the forwarding of port 22 to box3 isn't working like it should. Box3's LAN IP has not changed, and if I change port 22 to point to a new machine on the LAN in the router (eg: box4, box5, etc), I can access them without a problem from outside the LAN. But as soon as I switch port 22 to point to box3, the connections time out again.

Summary:
SSH connections to box3 within the LAN work fine
SSH connections to box3 from outside the LAN with the router set to forward port 22 to box3 fail
SSH connections to box4 from outside the LAN with the router set to forward port 22 to box4 work fine

Any ideas?

All machines are running Fedora.

Last edited by suicidaleggroll; 07-20-2012 at 09:44 PM.
 
Old 07-21-2012, 03:05 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Sounds like a firewall issue.
Check with "iptables -L" or whatever software you might have for firewalling.
 
Old 07-29-2012, 07:43 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Original Poster
Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
So, inexplicably, another reboot of the machine has fixed the problem. Now responds fine to both internal and external SSH connections. Still not sure what the cause of the problem was, never made any changes and it's back to normal. Sounds like Windows behavior to me...odd

Last edited by suicidaleggroll; 07-29-2012 at 07:45 PM.
 
Old 03-04-2015, 11:00 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Original Poster
Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by suicidaleggroll View Post
So, inexplicably, another reboot of the machine has fixed the problem. Now responds fine to both internal and external SSH connections. Still not sure what the cause of the problem was, never made any changes and it's back to normal. Sounds like Windows behavior to me...odd
I finally found the solution to this. For some reason the troublesome box lost its default route ("ip route" showed no default). While this didn't affect incoming SSH connections on the LAN it did prevent incoming SSH connections from outside the network.

A simple "ip route add default via 192.168.1.1" fixes it temporarily. Still not sure why it vanished in the first place, but it happens rarely enough that having to run this command manually to fix it isn't so bad.
 
  


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
in.telnetd sshd stopped responding cmnorton Linux - Networking 0 05-19-2008 07:10 AM
Fedora Core 5 stopped responding to some events kourama Fedora 2 09-15-2006 01:10 PM
Xubuntu - 'Applications' menu stopped responding NNP Ubuntu 3 06-06-2006 05:08 PM
Using XFCE - Desktop stopped responding Brian031168 Linux - Newbie 6 09-09-2005 05:56 PM
Using XFCE - Desktop stopped responding Brian031168 Linux - General 1 09-09-2005 05:14 PM

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

All times are GMT -5. The time now is 03:18 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