FTP: Data Socket Error: Connection failed [iptables]

After a stop & start la iptablesI succeeded to lose all ftp connections:

[email protected] [~] # service iptables stop
Flushing firewall rules: [OK]
Setting chains to policy ACCEPT: mangle filter [OK]
Unloading iptables modules: [OK]
[email protected] [~] # 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]

Consequence: [R] Data Socket Error: Connection failed [FTP] incoming / outgoing, although it appeared on the server that I was logged in, I did not have access to anything.

Solution:

[email protected] [~] # iptables -A INPUT -p tcp –dport 21 -j ACCEPT
[email protected] [~] # modprobe ip_conntrack_ftp

"/" is your current location ;-)

FTP: Data Socket Error: Connection failed [iptables]

About the author

Stealth

Passionate about everything gadget and IT, I write with pleasure on stealthsettings.com since 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment