<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Passive FTP Not Working Problem And Solution</title> <atom:link href="http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Patrice</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-65510</link> <dc:creator>Patrice</dc:creator> <pubDate>Sun, 11 Dec 2011 18:47:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-65510</guid> <description>Why to open the port 1024??? Passive connection use port  21 and then a port from 1024 to 65545...</description> <content:encoded><![CDATA[<p>Why to open the port 1024??? Passive connection use port  21 and then a port from 1024 to 65545&#8230;</p> ]]></content:encoded> </item> <item><title>By: Ryan Griggs</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-61819</link> <dc:creator>Ryan Griggs</dc:creator> <pubDate>Tue, 23 Aug 2011 19:56:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-61819</guid> <description>In addition to the firewall rules, on CentOS I had to edit /etc/sysconfig/iptables-config to tell it to load the correct modules.
Add the following to the IPTABLES_MODULES line:
&quot;ip_conntrack_netbios_ns ip_conntrack ip_conntrack_ftp&quot;
So your IPTABLES_MODULES line should read:
IPTABLES_MODULES=&quot;ip_conntrack_netbios_ns ip_conntrack ip_conntrack_ftp&quot;
Restart IPTABLES (&#039;service iptables restart&#039;) and you should see it load the conntrack modules.
All is good!
Ryan</description> <content:encoded><![CDATA[<p>In addition to the firewall rules, on CentOS I had to edit /etc/sysconfig/iptables-config to tell it to load the correct modules.</p><p>Add the following to the IPTABLES_MODULES line:<br
/> &#8220;ip_conntrack_netbios_ns ip_conntrack ip_conntrack_ftp&#8221;</p><p>So your IPTABLES_MODULES line should read:<br
/> IPTABLES_MODULES=&#8221;ip_conntrack_netbios_ns ip_conntrack ip_conntrack_ftp&#8221;</p><p>Restart IPTABLES (&#8216;service iptables restart&#8217;) and you should see it load the conntrack modules.</p><p>All is good!</p><p>Ryan</p> ]]></content:encoded> </item> <item><title>By: Nitin</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-60479</link> <dc:creator>Nitin</dc:creator> <pubDate>Tue, 05 Jul 2011 05:06:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-60479</guid> <description>Worked fine. Thanks.</description> <content:encoded><![CDATA[<p>Worked fine. Thanks.</p> ]]></content:encoded> </item> <item><title>By: Nishi</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-56162</link> <dc:creator>Nishi</dc:creator> <pubDate>Sun, 06 Mar 2011 23:34:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-56162</guid> <description>FTP might work great, but what about that rule that says block all else incoming?? I&#039;m now locked out of the server....</description> <content:encoded><![CDATA[<p>FTP might work great, but what about that rule that says block all else incoming?? I&#8217;m now locked out of the server&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Victor Henriquez</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-49695</link> <dc:creator>Victor Henriquez</dc:creator> <pubDate>Thu, 23 Sep 2010 23:03:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-49695</guid> <description>Excellent Post...My FTP Works great, thanks....</description> <content:encoded><![CDATA[<p>Excellent Post&#8230;My FTP Works great, thanks&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Antonio Díaz M.</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-45285</link> <dc:creator>Antonio Díaz M.</dc:creator> <pubDate>Wed, 23 Dec 2009 17:06:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-45285</guid> <description>but you are opening ports that allow connections to other applications such as P2P, MSN Messenger, etc...</description> <content:encoded><![CDATA[<p>but you are opening ports that allow connections to other applications such as P2P, MSN Messenger, etc&#8230;</p> ]]></content:encoded> </item> <item><title>By: kitt</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-42924</link> <dc:creator>kitt</dc:creator> <pubDate>Fri, 07 Aug 2009 00:29:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-42924</guid> <description>Why do you need this &quot;$IPT -A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT&quot;  if you default accept outgoing packets &quot;$IPT -P OUTPUT ACCEPT&quot;</description> <content:encoded><![CDATA[<p>Why do you need this &#8220;$IPT -A OUTPUT -p tcp &#8211;dport 21 -m state &#8211;state NEW,ESTABLISHED -j ACCEPT&#8221;  if you default accept outgoing packets &#8220;$IPT -P OUTPUT ACCEPT&#8221;</p> ]]></content:encoded> </item> <item><title>By: arun kumar</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-42377</link> <dc:creator>arun kumar</dc:creator> <pubDate>Sat, 04 Jul 2009 08:13:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-42377</guid> <description>hp laserjet printer 1020 not working in linux at local network</description> <content:encoded><![CDATA[<p>hp laserjet printer 1020 not working in linux at local network</p> ]]></content:encoded> </item> <item><title>By: Bart Calixto</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-41007</link> <dc:creator>Bart Calixto</dc:creator> <pubDate>Wed, 01 Apr 2009 23:29:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-41007</guid> <description>Thanks!, looking for hours for a solution.
My problem was fixed right after i typed : modprobe ip_conntrack_ftp
What this means / do ?
Greetings,
Bart.</description> <content:encoded><![CDATA[<p>Thanks!, looking for hours for a solution.<br
/> My problem was fixed right after i typed : modprobe ip_conntrack_ftp</p><p>What this means / do ?</p><p>Greetings,<br
/> Bart.</p> ]]></content:encoded> </item> <item><title>By: Dalibor Straka</title><link>http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-40108</link> <dc:creator>Dalibor Straka</dc:creator> <pubDate>Tue, 03 Feb 2009 14:45:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/iptables-passive-ftp-is-not-working/#comment-40108</guid> <description>At first glance I thought it is for client not for server ;-)
This is very nice article except that my FW didn&#039;t work right untill I added RELATED here:
$IPT -A INPUT -p tcp --sport 1024: --dport 1024:  -m state --state ESTABLISHED,RELATED -j ACCEPT
I guess that nf_conntrack_ftp reads the port in payload for port 21 and then the new tcp packet from 12345 -&gt; 54321 has SIN flag, thus is RELATED to the first connection, but in no way is established.</description> <content:encoded><![CDATA[<p>At first glance I thought it is for client not for server ;-)</p><p>This is very nice article except that my FW didn&#8217;t work right untill I added RELATED here:</p><p>$IPT -A INPUT -p tcp &#8211;sport 1024: &#8211;dport 1024:  -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</p><p>I guess that nf_conntrack_ftp reads the port in payload for port 21 and then the new tcp packet from 12345 -&gt; 54321 has SIN flag, thus is RELATED to the first connection, but in no way is established.</p> ]]></content:encoded> </item> </channel> </rss>
