D
D
Dmitry Morozov2017-06-15 17:53:26
System administration
Dmitry Morozov, 2017-06-15 17:53:26

Hetzner. Port 80 closed. Registered in iptables, selinux is disabled. How to open that?

Strange thing. Took a dedicated server from hetzner. CentOS 6.9. Installed apache, nginx. Everything started. BUT port 80 is closed. Telnet does not work. Selinux is disabled. The port is open in iptables. tcpdump 80 port "catch" nothing. Locally the telnet on the 80th passes without problems.
Thanks in advance

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:30865
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  slave                anywhere            tcp /* Access to host from slave */
ACCEPT     udp  --  slave                anywhere            udp /* Access to host from slave */
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https

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

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-06-15
@saytik

you have an allow rule after the deny rule, put it before the deny rule

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question