第一次用 aws lightsail 在日本建了实例,通过 tcp.ping.pe 只有 22 端口能通啊。在控制面板已经把防火墙全部端口放行了。还需要设置什么吗?换了好几个 IP 了。先谢谢大家!下面是 ping22 的记录。
Location ISP TCP port check result Canada, BC, Vancouver Shaw Connection to 13.228.138.182:22 successful USA, CA, Fremont Hurricane FMT2 Connection to 13.228.138.182:22 successful USA, CA, Fremont Linode Connection to 13.228.138.182:22 successful USA, CA, San Francisco Digital Ocean Connection to 13.228.138.182:22 successful UK, London Cogent Connection to 13.228.138.182:22 successful France, Paris Online.net Connection to 13.228.138.182:22 successful Netherlands, Amsterdam Online.net Connection to 13.228.138.182:22 successful China, Jiangsu China Telecom Connection to 13.228.138.182:22 successful China, Jiangsu China Mobile Connection to 13.228.138.182:22 successful China, Jiangsu China Unicom Connection to 13.228.138.182:22 successful China, Hangzhou Aliyun Connection to 13.228.138.182:22 successful China, Qingdao Aliyun Connection to 13.228.138.182:22 successful China, Zhejiang China Telecom Connection to 13.228.138.182:22 successful China, Shanghai Aliyun Connection to 13.228.138.182:22 successful China, Shanghai Aliyun Connection to 13.228.138.182:22 successful
1
dudulangjiao OP Location ISP TCP port check result
Canada, BC, Vancouver Shaw Connection to 13.228.138.182:80 failed USA, CA, Fremont Hurricane FMT2 Connection to 13.228.138.182:80 failed USA, CA, Fremont Linode Connection to 13.228.138.182:80 failed USA, CA, San Francisco Digital Ocean Connection to 13.228.138.182:80 failed USA, CA, Los Angeles Vultr Connection to 13.228.138.182:80 failed |
2
churchmice 2023-02-23 01:12:40 +08:00 via Android
有没有一种可能,除了控制面板的防火墙,系统本身的防火墙也打开了?
|
3
billgong 2023-02-23 01:13:28 +08:00
中间可能隔着好几个防火墙? Lightsail, load balancer, instance 内操作系统可能也开着防火墙。一个个试吧,试的同时拿一台电脑用 nmap 扫,比 ping 靠谱。
|
4
ljsh093 2023-02-23 01:52:37 +08:00 via iPhone
网络都放行还是不行可能被 q 了新开个机器试试
|
5
shika 2023-02-23 08:42:56 +08:00 via Android
防火墙放开 icmp 没
|
6
yogogo 2023-02-23 10:30:07 +08:00
安全组也要设置
|
7
xiri 2023-02-23 11:11:29 +08:00 via Android
你 tcping 的端口有服务在监听吗?
|
8
dudulangjiao OP @xiri 还没有建立任何服务
|
9
liudosen 2023-02-24 08:09:27 +08:00
tmd ,我也是这样个问题,nmap 一扫就 22 是开的,ec2 和光帆服务器都这鸟样。 都是这两天新建的服务器。
我还是试过换别的区域的服务器也不行。 |
10
liudosen 2023-02-24 11:09:21 +08:00 1
知道问题了,aws 的服务器不仅仅控制台要放开端口,还有就是机器上放开的端口要有占用的程序,才能真正的使用端口
|
11
dudulangjiao OP @liudosen 具体该如何操作?
|
12
liudosen 2023-02-24 22:13:38 +08:00
@dudulangjiao 你把你的要部署的程序放到 docker 容器里运行,docker 容器中要开放你要用的端口,然后将你服务器开放的端口绑定到容器开放的端口
|
13
dudulangjiao OP @liudosen 不用 docker 容器可以吗?
|
14
dudulangjiao OP @liudosen 感谢,终于搞定了!
|
16
kuking777 2023-10-30 13:45:50 +08:00
郁闷了好久,原来是这样原因,要在实例上部署完应用,才能使用,难怪
|