웹페이지는 전 세계에서 접근할 수 없습니다!

웹페이지는 전 세계에서 접근할 수 없습니다!

새로운 Ubuntu 서버와 함께 새로운 Apache를 설치했습니다. 아직 서버를 변경하지 않았습니다. 기본 Apache 웹사이트는 개인 네트워크 내부의 다른 PC에서 볼 수 있습니다.

포트 80과 22가 서버에 올바르게 전달되었으며 라우터에서 고정 IP DHCP 192.168.10.116을 설정했습니다.

SSH는 공용 또는 개인 네트워크에서 액세스할 수 있습니다. 하지만 해당 웹사이트는 사설망에서만 접속이 가능합니다. 저는 이 웹사이트를 전세계에 공개하고 싶습니다.

저는 이 설정을 Windows PC + XAMMP로 시도했는데, 여기서 기본 Apache 웹페이지는 공용 IP에서 볼 수 있었습니다.

다음은 몇 가지 세부정보입니다.

mg@node1:~$ sudo ufw status
Status: inactive
mg@node1:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
mg@node1:~$ cat /etc/apache2/ports.conf

Listen 80

<IfModule ssl_module>
        Listen 443
</IfModule>

<IfModule mod_gnutls.c>
        Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
mg@node1:~$ sudo netstat -nptl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      702/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      780/sshd
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      1039/sshd: mg@pts/0
tcp6       0      0 :::80                   :::*                    LISTEN      2340/apache2
tcp6       0      0 :::22                   :::*                    LISTEN      780/sshd
tcp6       0      0 ::1:6010                :::*                    LISTEN      1039/sshd: mg@pts/0
mg@node1:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 node1

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
mg@node1:~$ curl http://192.168.10.116
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ... ...
mg@node1:~$ curl http://43.xxx.xxx.95
curl: (7) Failed to connect to 43.xxx.xxx.95 port 80: Connection refused

내 라우터 포트 포워딩 기록

관련 정보