Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

vsftpd「Entering Passive Mode」卡住的三種解決方案

編輯:Linux 教學

客戶端進入被動模式後無響應,通常是數據連接端口被防火牆攔截或模式不匹配。

方案一:關閉被動模式安全檢查(效果不穩)

pasv_promiscuous=YES

方案二:限定被動端口範圍並放行防火牆(推薦)

# vsftpd.conf
pasv_min_port=30000
pasv_max_port=30999

# iptables
iptables -A INPUT -p tcp --dport 30000:30999 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT

方案三:強制啟用主動模式

pasv_enable=NO

建議:優先用方案二,兼容性與安全性平衡最佳;方案三需客戶端網絡允許入站連接。

Copyright © Windows教程網 All Rights Reserved