Help - Search - Members - Calendar
Full Version: Can't ping / Can't ssh in local network
MandrivaUsers.org > Advanced Topics > Networking
Earthworm Jim
So I'm giving Mandriva a go, and I've run into a weird snag -

I've got two machines - the one I'm typing on now & another one right next to it which can't talk to each other.

I can ping anything outside of my local network (ie - www.yahoo.com) from either machine. I can come here & post this question from etiher one. But they don't see each other

pings & ssh's both hang (ssh is in connect, strace doesnt't want to attach to ping for some reason):
ssh:
Process 14993 attached - interrupt to quit
connect(3, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("192.168.15.104")}, 16

I've got my security settings cranked down to "Poor" on both sides, verified "disabled = no" in xinetd.d/ssh.conf on both sides, verified that net.ipv4.icmp_echo_ingore* were all set to 0 in /etc/sysctl.conf, and obviously I'm here posting from one of the affected machines. When I had Fedora / windows systems on this same router they could see each other just fine. But now that I'm all Mandriva, nobody can see anybody on the local network

What gives?
Earthworm Jim
And just for fun, this is me logged in from the other machine.

They can both see the whole of the internet, but they can't see each other...
ianw1974
First, check what ports the machines are listening on:

CODE
netstat -tunlp


and look for port 22 for SSH. If it is there, then it will be a firewall problem with shorewall/iptables being used on these machines. You can easily test this once the port 22 has been verified for listening and accepting connections, and just doing:

CODE
service shorewall stop
service iptables stop


and then try to connect to SSH and ping.
Earthworm Jim
QUOTE (ianw1974 @ May 3 2008, 12:47 AM) *
First, check what ports the machines are listening on:

CODE
netstat -tunlp


and look for port 22 for SSH. If it is there, then it will be a firewall problem with shorewall/iptables being used on these machines. You can easily test this once the port 22 has been verified for listening and accepting connections, and just doing:

CODE
service shorewall stop
service iptables stop


and then try to connect to SSH and ping.


nifty, thanks.
scarecrow
Can you do some
CODE
cat /etc/hosts

as well as
CODE
cat /etc/hosts.allow

CODE
cat /etc/hosts.deny

and finally
CODE
cat /etc/ssh/sshd_config

in both machines?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.