[Leglug-core] Why can't I connect to a local service ?
Israel David
idave147 at gmail.com
Tue Apr 15 03:47:43 EDT 2008
---------- Forwarded message ----------
From: Yedidyah Bar-David <linux-il at didi.bardavid.org>
Date: Mon, Apr 14, 2008 at 9:49 PM
Subject: Re: Why can't I connect to a local service ?
To: Oded Arbel <oded-linux at typo.co.il>
Cc: linux-il <linux-il at cs.huji.ac.il>
On Tue, Apr 15, 2008 at 07:30:18AM +0300, Oded Arbel wrote:
> I have a really weird problem - maybe it was always like that or it only
> happened since I upgraded, I'm not sure -
Works for me (on CentOS 5.1).
>
> I have a CentOS 5.1 box and for some weird reason I can't connect using
> TCP to a server running on the same machine, either through localhost or
> through the eth0 IP address. Connections from outside work great and the
> httpd is happily serving users across the network.
>
> When I try to connect, even something simple such as
> telnet localhost 80
> I get a timeout:
> # strace -f telnet localhost 80
> ...
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ETIMEDOUT (Connection timed
> out)
> write(2, "telnet: connect to address 127.0"..., 59) = 59
> close(3) = 0
> write(2, "telnet: Unable to connect to rem"..., 63
>
> /etc/hosts.deny was the immediate suspect, but its empty. IPTables was
> on, but is set to always allow "lo" (and port 80 among others) and
> turning it off didn't help. So what can I check next ?
How about
tcpdump -n -i lo
?
Also strace httpd?
--
Didi
=================================================================
To unsubscribe, send mail to linux-il-request at cs.huji.ac.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request at cs.huji.ac.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.leglug.org/pipermail/leglug-core/attachments/20080415/7f161bac/attachment-0001.htm
More information about the Leglug-core
mailing list