LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-24-2006, 10:52 AM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Rep: Reputation: 16
ping works, nmap and ssh do not


I had ssh working fine for a long time but things have gone wrong today. This is a desktop and a laptop, connected by wireless.

I can access the internet normally from both. I can ssh to the laptop from the desktop but not from the laptop to the desktop. I can ping in both directions. On each computer I can ssh to itself.

nmap in the laptop says that there is no host on the desktop; with the -P0 switch it says "113/tcp closed auth". However, when run on the desktop this command says that various ports are open, including 22/ssh.

I've no idea what has happened here; it doesn't seem to make any sense. Why does ping work although ssh and nmap don't?
 
Old 07-24-2006, 11:04 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
Sounds like a firewall problem on your desktop. Did you change any firewall/ipchains settings on the desktop box? The only other thing I can think of is you may have installed an updated Openssh package on the desktop through some kind of automatic system update service. That can reset all your ssh config files.
 
Old 07-24-2006, 11:11 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
i'm not sure but it sounds like a gateway problem. most clients are having difficulty accessing the gateway computer. if your laptop is set as a client and your server as the gateway then you might have a similar problem. try rechecking your config.
 
Old 07-24-2006, 11:14 AM   #4
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 16
Yes, quite right! Turning off shorewall allows the connection. I'm sure I tried that previously without success but it does work now. I havent changed shorewall recently so I shall have to research this further.
 
Old 07-24-2006, 11:15 AM   #5
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Assuming you can disconnect from the internet the router that these computers are connected to, disable the firewalls on both machines.

1) login as root in the command prompt
Code:
su -
2) disable the firewall
whatever the firewall is in debian stop it.

Now try the SSH for both of these machines. If that can work you can say that it is a firewall issue.

Process of elimination:
physical, both are connected to the AP
data link and networking, ping and internet work
transport, ports may not be opened to receive data (firewalla issue)
 
Old 07-24-2006, 01:27 PM   #6
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 16
Thanks again to everyone. I found the problem in the end: there was an entry in /etc/shorewall/rules to allow the IP of my card, but the IP had changed.
 
  


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
ping server_name don't works ping IP_address yes... why? Joan Murt Linux - Enterprise 5 07-20-2006 01:15 AM
DNS look up works, ping only works for some sites any ideas? Mantrout Linux - Wireless Networking 3 01-29-2006 11:59 AM
Why ICMP packet for ping and nmap. bruse Linux - Networking 2 12-12-2005 09:48 AM
ping And nmap problem. bruse Linux - Networking 4 11-28-2005 07:31 AM
ping works but ssh not tushar123 Linux - Networking 1 09-29-2004 12:16 PM


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