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.