Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm experiencing some strange networking problems with freshly installed debian squeeze. It seems like something preventing traffic from passing on port 80. Browser shows "The connection has timed out" error when I trying to visit a website on the server. I'm using standart nginx 0.7.67, it reports no errors and just normally listens on 80 port:

# lsof -i :80
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   1978     root    7u  IPv4   7202      0t0  TCP *:www (LISTEN)
nginx   1978     root    8u  IPv6   7203      0t0  TCP *:www (LISTEN)
nginx   1979 www-data    7u  IPv4   7202      0t0  TCP *:www (LISTEN)
nginx   1979 www-data    8u  IPv6   7203      0t0  TCP *:www (LISTEN)

There are no firewall rules applied:

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

Nither it's a problem with my public ip, I can't reach nginx on localhost too:

# wget http://127.0.0.1
--2012-11-28 23:57:18--  http://127.0.0.1/
Connecting to 127.0.0.1:80... failed: Connection timed out.

I tried to apt-get purge nginx && apt-get install nginx, but it didnt change anything.
Additionaly, I cleaned up /var/lib/nginx/proxy directory in case there is something with nginx's cache Finally, I made nc listening on 80 port (nc -l -p 80) and tried to connect to it using telnet:

# lsof -i :80
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nc      2186 root    3u  IPv4   7869      0t0  TCP *:www (LISTEN)
# telnet localhost 80
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection timed out

...so something is really broken there.
Please, help to find what's wrong.

share|improve this question
    
How about the output of "netstat -an" ? Is anything shown as even listening on port 80 and, if so, what's bound? –  rnxrx Nov 29 '12 at 7:47
    
can you share your nginx config. –  Sameer Dec 1 '12 at 4:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.