# 从CDNfly节点ping源服务器内网IP
ping <源服务器内网IP>
# 使用telnet测试端口连通性(通常是80/443)
telnet <源服务器内网IP> 80
检查CDNfly主控和节点的配置文件:
# 检查主控配置
vim /home/cdnfly/master/conf/config.yml
# 检查节点配置
vim /home/cdnfly/agent/conf/config.yml
确认以下配置项: - 源站地址是否正确配置为内网IP - 端口配置是否正确 - 是否有特殊协议要求
# 查看路由表
route -n
# 跟踪路由路径
traceroute <源服务器内网IP> # Linux
tracert <源服务器内网IP> # Windows
# 检查iptables规则
iptables -L -n
# 检查firewalld状态
systemctl status firewalld
# 临时关闭防火墙测试(测试后记得恢复)
systemctl stop firewalld
iptables -F
# 重启CDNfly服务
systemctl restart cdnfly-master # 主控
systemctl restart cdnfly-agent # 节点
添加静态路由(如果节点和源服务器在不同子网):
route add -net <目标网络> netmask <子网掩码> gw <网关IP>
调整防火墙规则:
iptables -A INPUT -s <节点内网IP段> -j ACCEPT
iptables -A OUTPUT -d <源服务器内网IP段> -j ACCEPT
修改CDNfly源站配置:
检查NAT配置(如果使用了NAT):
iptables -t nat -L -n
# 查看CDNfly主控日志
tail -f /home/cdnfly/master/logs/master.log
# 查看CDNfly节点日志
tail -f /home/cdnfly/agent/logs/agent.log
# 查看Nginx访问日志(如果有)
tail -f /var/log/nginx/access.log
如果问题仍未解决,建议收集相关日志信息并联系CDNfly官方技术支持,提供以下信息: - CDNfly版本号 - 操作系统版本 - 网络拓扑图 - 相关配置片段 - 错误日志内容