หลังหนึ่ง หยุด & เริ่ม ที่ 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] ข้อผิดพลาดของซ็อกเก็ตข้อมูล: การเชื่อมต่อล้มเหลว [FTP] การเข้ามา - ขาออกแม้ว่าในเซิร์ฟเวอร์จะปรากฏว่าฉันเข้าสู่ระบบ แต่ฉันก็ไม่มีอะไรทำ
การแก้ปัญหา-
root@server [~]# iptables -A INPUT -p tcp --dport 21 -j ACCEPT
root@server [~]# modprobe ip_conntrack_ftp
“-” เป็นที่ตั้งปัจจุบันของคุณ ;-)