1、网络相关
1.1、向服务器端发送curl请求,转包返回连接失败,显示Destination unreachable (Host administratively prohibited)
意思是:目的主机被强制禁止。基本可以断定是防火墙的问题。
解决办法:
关闭防火墙。
# centos 6.9 command
## 1 close firewall
$ sudo systemctl stop firewalld.service
$ sudo systemctl disable firewalld.service
## 2 保持防火墙服务,调整 iptables 服务,例如,
$ sudo iptables -t filter -I INPUT -p tcp -s 192.168.2.10 --dport 14920 -j ACCEPT # 允许源地址为 192.168.2.10 的 tcp 数据包通过 server 的 14920 端口
$ sudo iptables -t filter -I OUTPUT -p tcp --dport 14920 -j ACCEPT # 允许 server 的任何外发数据包通过 14920 端口