I am running a Centos 7 on virtualbox. I set LAMP and I open firewall http https and port forward my router so I could see it from outside my local network. I also have a dynamic dns (no ip) and it worked great so I installed wordpress.
Everything was ok from my local network and I customized my site. The next day I tried to hit it from outside but no luck.
my ddns is whynotwork.ddns.net and the local address is 192.168.2.4.
When I try the FQDN it returns the local IP with the ERR_CONNECTION_TIMED_OUT.
I reset my VM and after installation of wordpress (the moment I hit the address and show me the wizard) I was able to access it from outside and set it up but locally was so slow.
Code: Select all
[root@localhost ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp0s3
sources:
services: ssh dhcpv6-client http https
ports: 80/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Code: Select all
[root@localhost ~]# netstat -tuna
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 36 192.168.2.4:22 other:1987 ESTABLISHED
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 127.0.0.1:323 0.0.0.0:*
udp6 0 0 ::1:323 :::*
SSH still works no problem.
I do not know what else to check. Any ideas?
EDIT1: I set another Vm and install wordpress from internet. You can access it from whynotwork.ddns.net:12345