Good morning I currently have an apache server running on CentOS6.9 if I disable the iptables /etc/init.d/iptables stop
I can browse from a computer on the local network in apache, but if I start it even if I have enabled the ports as shown in this example, it blocks me :
sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
After opening the ports I enable the iptables keeps blocking me. So I tried to verify if the ports are enabled with the following command: nmap localhost -p 80 | grep -i tcp
and I got the following result: 80/tcp open http
. However:
Shows that the port is open but still does not let me access from another computer in the network. But if I turn it off: /etc/init.d/iptables stop
.
What I need for iptables to allow me to receive answers from apache?
Annex result of the following command:
$ sudo cat /etc/sysconfig/iptables