หลังจากที่ หยุด & เริ่มต้น la iptablesผมประสบความสำเร็จที่จะสูญเสียการเชื่อมต่อทั้งหมดที่จะ ftp:
root@server [~]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Unloading iptables modules: [ OK ]
root@server [~]# service iptables start
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
ผลพวง: [R] ซ็อกเก็ตข้อมูล Error: การเชื่อมต่อล้มเหลว [FTP] ขาเข้า / ขาออกแม้ว่าจะปรากฏบนเซิร์ฟเวอร์ที่ฉันลงชื่อเข้าใช้ แต่ฉันก็ไม่สามารถเข้าถึงอะไรได้เลย
ทางออก:
root@server [~]# iptables -A INPUT -p tcp --dport 21 -j ACCEPT
root@server [~]# modprobe ip_conntrack_ftp
“ /” คือตำแหน่งปัจจุบันของคุณ ;-)