跳过正文
  1. Blogs/

Destination Host Prohibited

·136 字·1 分钟· ·
代码 Destination-Host-Prohibited Ubuntu Ssl Iptables Ufw Destination
作者
大大的小蜗牛
机会总是垂青于有准备的人!
目录
ping 1.1.1.1
From 1.1.1.1 icmp_seq=1 Destination Host Prohibited

出现这个问题原因是因为服务器上 iptables 配置原因造成的。

干脆点的话,直接

sudo apt remove iptablels

其他解决方法:
检查 filter 表中的 FORWARD 链

iptables -t filter --list

看看结果中是否有这一句

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

如果有,就删除它

iptables -L INPUT --line-numbers 

找到这一行的行号,我的主机上显示为 11 行

执行删除命令,删除第 11 行

iptables -D INPUT 11 #-D是删除参数

相关文章

Ubuntu 源 香港中文大学
·39 字·1 分钟
代码 Ubuntu-Source-in-Hong-Kong Ubuntu 香港 更新源
Ubuntu 源 阿里云
·39 字·1 分钟
代码 Ubuntu-Aliyun Ubuntu 阿里云 更新源
SSH Google Authenticator
·323 字·1 分钟
代码 Ssh-Google-Authenticator Ubuntu Google Ssh Two Factor Authenticator

加载Giscus评论,或者