国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務(wù)器 > Web服務(wù)器 > 正文

vsftpd 提示:No route to host問題處理

2024-09-01 13:43:40
字體:
供稿:網(wǎng)友

vsftp 無法連接, 提示No route to host。

問題原因:iptables 未開放21端口

[root@localhost sysconfig]# iptables --list

Chain INPUT (policy ACCEPT)

target prot opt source destination

RH-Firewall-1-INPUT all -- anywhere anywhere

 

Chain FORWARD (policy ACCEPT)

target prot opt source destination

RH-Firewall-1-INPUT all -- anywhere anywhere

 
Chain OUTPUT (policy ACCEPT)

target prot opt source destination

 

Chain RH-Firewall-1-INPUT (2 references)

target prot opt source destination

ACCEPT all -- anywhere anywhere

ACCEPT icmp -- anywhere anywhere icmp any

ACCEPT esp -- anywhere anywhere

ACCEPT ah -- anywhere anywhere

ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns

ACCEPT udp -- anywhere anywhere udp dpt:ipp

ACCEPT tcp -- anywhere anywhere tcp dpt:ipp

ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh

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

從上面的iptables 可以看出系統(tǒng)未開放21端口。

 

解決方法: 修改iptables,開放21端口

在/etc/sysconfig/iptables-config 中增加以下語句

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

然后重啟iptables:service iptables restart

問題解決!

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 瑞丽市| 景德镇市| 申扎县| 沽源县| 富裕县| 深水埗区| 临沭县| 蓝山县| 高密市| 无为县| 汉阴县| 勐海县| 桐柏县| 横山县| 萨迦县| 洞口县| 德惠市| 图片| 平顶山市| 敦煌市| 咸宁市| 巴彦县| 泸西县| 霍林郭勒市| 翼城县| 磴口县| 开鲁县| 遵化市| 阿拉善左旗| 东乌珠穆沁旗| 井研县| 衡阳市| 常熟市| 延边| 龙陵县| 沁水县| 平原县| 沭阳县| 兴和县| 文山县| 武威市|