LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-23-2007, 11:45 AM   #1
DFWT
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 0
No remote access to Linux using ping or SSH, but Samba works


Hi,

I have an openSUSE 10.2 (x64) installation and I want to access this machine from a Windows Vista client (x64 as well) in the same private LAN (subnet mask 255.255.255.0) using DHCP (router).

I can reach (ping) the Windows client and other network devices from within the Linux machine. But I cannot ping the Linux machine from the Windows client (using the IP address) nor can I connect to it using SSH or telnet via PuTTY. Pinging other network devices from the Windows client works fine.

Currently, the only way I can access the Linux machine from the Windows client is by using SMB/Samba (even using name resolution)!

This admittedly sounds like a firewall problem. But SUSE firewall is disabled and no additional firewall software is installed (at least none that I am aware of). Using nmap or netsat -ltnu confirms that ports 22 (SSH) and 23 (telnet) are indeed open and listening.

Disabling the firewall on the Windows client did have no effect.

I should add that the Linux machine runs inside a virtual machine on the Windows host using VMWare Workstation 6.0 (with bridged networking). I do not believe that this contributes to the problem because I have successfully worked with similar environments in the past.

I would appreciate any suggestions on where I might start looking for a solution.
 
Old 11-23-2007, 12:35 PM   #2
GushpinBob
Member
 
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Rep: Reputation: 15
Stupid but simple question: is sshd installed and running on the linux system? If it is, can you login locally and try connecting to ssh via a loopback device (in other words, typing ssh username@127.0.0.1 or ssh username@localhost)?
 
Old 11-23-2007, 12:55 PM   #3
DFWT
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your suggestion. But sshd is running (it is started in run levels 3 and 5). I can connect to my machine locally using ssh without problems.
 
Old 11-23-2007, 01:22 PM   #4
armandrix
Member
 
Registered: Nov 2005
Location: Brazil
Distribution: slackware64 -current
Posts: 46

Rep: Reputation: 18
Hi there...
I think you can start trying to see where connection get lost... vmware gives your virtual opensuse an ip address, from the host (win box) you can ping the guest (suse)?
Maybe it can be an issue between the host machine nic and the virtual nic, windows is redirecting outside packets to virtual machine??
It can be a start
 
Old 11-23-2007, 01:58 PM   #5
DFWT
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

the virtual machine gets its own IP address from the DHCP server (which is a router on my network). I confirmed with ifconfig that the (virtual) ethernet device (eth0) has a valid IP address from the DHCP server's IP pool. Unfortunately, I am unable to ping the virtual machine from the windows host using that address. But connecting to the samba shares using that IP address works fine.
 
Old 11-23-2007, 03:05 PM   #6
armandrix
Member
 
Registered: Nov 2005
Location: Brazil
Distribution: slackware64 -current
Posts: 46

Rep: Reputation: 18
u-hu .. really strange this situation...

Try see if firewall on suse are really off. type in a root terminal --> # iptables -F ..this kills all firewall rules.
Also you can see the rules for ping replies: # cat /proc/sys/net/ipv4/icmp_echo_ignore_all this command must reply 0.
there is other for broadcast: cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts ...0 means ok.. 1 means don't reply.

try set both icmp as 0 for sure. After this you can be sure the guest suse is opened. Afterwards try to see vmware host setup in Edit > Virtual Network Settings. I cannot mind other things about suse... about windows cannot even imagine.. sorry
 
Old 11-23-2007, 03:22 PM   #7
DFWT
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

thanks for your effort. Unfortunately, performing these steps did not make any difference.
 
Old 11-25-2007, 09:34 AM   #8
DFWT
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Hi,

I found out that the problems are most likely due to caching issues either with the Windows client or (more likely) with the router (DHCP server).

I assigned a new IP pool to the DHCP server to enforce new IP addresses for all network clients. This solved the problem. Ping, SSH, HTTP, SMB ... all is working fine now.

Thanks to all those who helped in finding a solution.
 
  


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
Cant SSH from remote network, ping okay ajcamp Linux - Networking 2 06-21-2007 12:05 PM
ping works, nmap and ssh do not acampbell Linux - Networking 5 07-24-2006 01:27 PM
new NIC - no sshd, no ping, samba works synaptical Linux - Networking 0 02-15-2005 08:23 PM
ping works but ssh not tushar123 Linux - Networking 1 09-29-2004 12:16 PM
Samba Works, Windows can access Linux Side but ............ srikz Red Hat 10 12-02-2003 09:24 AM

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

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