K
K
Kirows2014-08-10 14:04:50
Sphinx
Kirows, 2014-08-10 14:04:50

Why is the port not opening in Centos 6?

We have:
Hosting VDS server with Centos 6 installed.
Apaches and other necessary things for the site to work are up on the server.
The site opens without problems, SSH access is no worse.
We put the sphinx and try to let them use another server. Does not work. The port is open to him, but is not visible through the port scanner.

[[email protected] sysconfig]# iptables --line-numbers -n -L
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:443
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:9313
8    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

what am I doing wrong?)

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sergey Petrikov, 2014-08-10
@Kirows

netstat -nlp show if it is not listening on the specified port.

K
Kirows, 2014-08-10
@Kirows

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1016/sshd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      16496/sendmail: rej
tcp        0      0 :::80                       :::*                        LISTEN      30809/httpd
tcp        0      0 :::22                       :::*                        LISTEN      1016/sshd
tcp        0      0 :::443                      :::*                        LISTEN      30809/httpd
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               816/dhclient

definitely not listening

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question