国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 东丽区| 合山市| 孟州市| 南部县| 防城港市| 夏津县| 巨鹿县| 拉萨市| 双鸭山市| 阿坝县| 将乐县| 仁怀市| 逊克县| 绥宁县| 临颍县| 谢通门县| 黄骅市| 乐清市| 门头沟区| 蓝田县| 墨江| 彩票| 孝感市| 常州市| 新兴县| 神池县| 株洲县| 班戈县| 浪卡子县| 德江县| 龙口市| 太和县| 海安县| 彭山县| 乐平市| 同仁县| 阳新县| 万山特区| 陆良县| 横山县| 鹤岗市|