突然间,我遇到了网络连接问题。Ping没有工作,我无法从Debian更新(或安装)软件包.
我的服务器从外面完全可以到达。然而,几天前,ping完全停止了工作,我无法用wget下载任何文件。结果发现dns名称解析存在问题。我允许我的安全组中的端口53 (OpenStack上的vps),它解决了dns名称解析的问题,我可以用wget下载文件,但是获取包不起作用。尝试了我能找到的东西,但似乎什么都没有用(我不是很有经验,所以很可能忽略了一个琐碎的解决方案)。任何帮助都是非常感谢的。
我的机器是OpenStack上的vps。最近整个集群出现了很大的中断,所以很可能是相关的,但我不能百分之百肯定。
我在服务器上安装了yunohost。yunohost有自己的配置,这可能是问题的根源,但这似乎不太可能,因为我确信在安装Yunohost之后可以获取包。
less /etc/resolv.conf的输出:名称服务器127.0.0.1搜索openstacklocalifconfig -a eth0的输出: flags=4163 mtu 1500 inet XXX.XX.XX.XXX网络掩码255.255.240.0广播XXXXXXXXXXXXXXXX inet6 YYYYYYYYY前缀64 scopeid 0x20 1000 (以太网) RX数据包194669057字节(10.9 GiB) RX错误0丢弃2个超过0帧0 TX数据包412705字节(117.4 MiB) TX错误0删除0超过0载波0碰撞0 lo: flags=73 mtu 65536 inet 127.0.0.1 Net掩码255.0.0.0 inet6 :1前缀128个0x10循环txqueuelen 1(本地回圈) RX数据包150233字节31116860 (29.6 MiB) RX错误0丢弃0超出0帧0 TX数据包150233字节31116860 (29.6 MiB) TX错误0丢弃0溢出0载波0冲突0更新:我已经通过打开ICMP来工作(这安全吗?)但是,获取包仍然不起作用。下面是apt update的输出:
Hit:1 https://packages.sury.org/php stretch InRelease
Err:2 http://forge.yunohost.org/debian stretch InRelease
Cannot initiate the connection to forge.yunohost.org:80 (2001:910:1410::1). - connect (101: Network is unreachable) [IP: 2001:910:1410::1 80]
Err:3 http://deb.debian.org/debian stretch InRelease
Cannot initiate the connection to prod.debian.map.fastly.net:80 (2a04:4e42:1b::204). - connect (101: Network is unreachable) Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1b::645). - connect (101: Network is unreachable) [IP: 2a04:4e42:1b::645 80]
Err:4 http://deb.debian.org/debian stretch-updates InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1b::645). - connect (101: Network is unreachable) [IP: 2a04:4e42:1b::645 80]发布于 2020-05-19 16:54:36
问题解决:由于某种原因,防火墙阻塞了所有传出连接。不清楚这种情况是如何发生的,为什么会发生这种情况,但开放端口解决了问题。
https://unix.stackexchange.com/questions/587666
复制相似问题