ERR_CONNECTION_TIMED_OUT

General support questions
Post Reply
meowmanijado
Posts: 1
Joined: 2017/07/20 12:55:45

ERR_CONNECTION_TIMED_OUT

Post by meowmanijado » 2017/07/25 12:38:24

I installed nginx on Centos 6.8 64bit. Whenever I access my IP address via browser I get ERR_CONNECTION_TIMED_OUT.

Code: Select all

[root@localhost etc]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Code: Select all

[root@localhost etc]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:6088
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Code: Select all

[root@localhost etc]# netstat -plunt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:9000              0.0.0.0:*                   LISTEN      14639/php-cgi
tcp        0      0 0.0.0.0:6088                0.0.0.0:*                   LISTEN      -
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      16161/nginx
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      3464/sshd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      3596/master
tcp        0      0 :::80                       :::*                        LISTEN      16161/nginx
tcp        0      0 :::22                       :::*                        LISTEN      3464/sshd
tcp        0      0 ::1:25                      :::*                        LISTEN      3596/master
I'm not sure what is my fault or am I missing a configuration or something. Your help is highly appreciated.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ERR_CONNECTION_TIMED_OUT

Post by TrevorH » 2017/07/25 15:29:37

You do not allow port 80 (or 443) through your iptables firewall.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply