Gcloud:ubuntu xenia - 端口未打开

时间:2018-02-02 18:00:37

标签: ubuntu google-cloud-platform port google-compute-engine

无论我能做什么,我都跟着“谷歌”,但仍无法通过港口。

基本上我想打开端口8080,下面的命令行显示“8080 / tcp关闭http-proxy”,我已经启用了防火墙8080和gcloud网络的firwall规则,但仍然失败了。

在这里我做了什么:

CLI端口打开usw

sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
8080                       ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere
8080/tcp                   ALLOW       Anywhere
80/tcp                     ALLOW       Anywhere
22                         ALLOW       Anywhere
443                        ALLOW       Anywhere
80                         ALLOW       Anywhere
3389                       ALLOW       Anywhere
8080/udp                   ALLOW       Anywhere
8080 (v6)                  ALLOW       Anywhere (v6)
22/tcp (v6)                ALLOW       Anywhere (v6)
8080/tcp (v6)              ALLOW       Anywhere (v6)
80/tcp (v6)                ALLOW       Anywhere (v6)
22 (v6)                    ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)
80 (v6)                    ALLOW       Anywhere (v6)
3389 (v6)                  ALLOW       Anywhere (v6)
8080/udp (v6)              ALLOW       Anywhere (v6)

nmap <external ip>

Starting Nmap 7.01 ( https://nmap.org ) at 2018-02-02 17:52 UTC
Nmap scan report for <external ip>.bc.googleusercontent.com (<external ip>)
Host is up (0.00097s latency).
Not shown: 995 filtered ports
PORT     STATE  SERVICE
22/tcp   open   ssh
80/tcp   closed http
443/tcp  closed https
3389/tcp closed ms-wbt-server
8080/tcp closed http-proxy

Nmap done: 1 IP address (1 host up) scanned in 4.87 seconds

gcloud防火墙规则 gcloud firewall

1 个答案:

答案 0 :(得分:0)

问题解决为私有IP和公共IP陷入困境,案件已关闭,谢谢