I am trying to setup a simple web server, and have installed a LAMP package to get started (Apache 2.4). I have a simple index.php page that provides current server stats. I am able to access it internally from my network (192.168.1.200), but am unable to access it from my network's public IP address (71.46.83.4) despite forwarding ports 80 and 8080 on my router.
I have tried configuring my listening ports in apache2.conf
, which is set to Listen 80
and Listen 8080
. I've also tried setting up my iptables
, although I feel that's not doing anything since they are all open by default (at least I think, correct me if I'm wrong). My iptables
are as follows:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
This is the result of netstat -ntl
:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::13124 :::* LISTEN
I am a Linux Novice. I would be happy to provide debug information. Thanks in advance!