<?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: FTP behind NAT with TLS howto</title>
	<atom:link href="http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>&#34;Idiopathic, from the Latin meaning we&#039;re idiots cause we can&#039;t figure out what&#039;s causing it.&#34; by dr House</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:00:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Radek</title>
		<link>http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/#comment-1058</link>
		<dc:creator>Radek</dc:creator>
		<pubDate>Sun, 24 Jan 2010 12:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/wp/wordpress/?p=6#comment-1058</guid>
		<description>The X:Y notation is perfectly valid, at least with iptables v. 1.4.6.

warden:~# iptables -D INPUT -p tcp --destination-port  50000:51000 -m state --state NEW -j ACCEPT

Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpts:50000:51000 state NEW</description>
		<content:encoded><![CDATA[<p>The X:Y notation is perfectly valid, at least with iptables v. 1.4.6.</p>
<p>warden:~# iptables -D INPUT -p tcp &#8211;destination-port  50000:51000 -m state &#8211;state NEW -j ACCEPT</p>
<p>Chain INPUT (policy DROP 0 packets, 0 bytes)<br />
 pkts bytes target     prot opt in     out     source               destination<br />
    0     0 ACCEPT     tcp  &#8212;  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpts:50000:51000 state NEW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AAAle</title>
		<link>http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/#comment-623</link>
		<dc:creator>AAAle</dc:creator>
		<pubDate>Thu, 02 Apr 2009 20:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/wp/wordpress/?p=6#comment-623</guid>
		<description>Thanks a lot for this post.
It really solved my problem!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this post.<br />
It really solved my problem!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radek</title>
		<link>http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/#comment-539</link>
		<dc:creator>Radek</dc:creator>
		<pubDate>Tue, 10 Feb 2009 16:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/wp/wordpress/?p=6#comment-539</guid>
		<description>Hi John,

Nope, it is perfectly valid. You mix port specified by commas with a portrange specified with x:y notation.
man iptables
look for port range.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>Nope, it is perfectly valid. You mix port specified by commas with a portrange specified with x:y notation.<br />
man iptables<br />
look for port range.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Lee</title>
		<link>http://www.warden.pl/2007/11/16/ftp-behind-nat-with-tls-howto/#comment-538</link>
		<dc:creator>John Lee</dc:creator>
		<pubDate>Tue, 10 Feb 2009 15:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/wp/wordpress/?p=6#comment-538</guid>
		<description>I got an error when using 50000:51000 - I don&#039;t think : is valid here and according to the iptables man page only 15 ports can be specified with multiport. Also I had to add -- to your second state option.

Here&#039;s the rule I ended up using

# Allow ftp passive port connections inbound (as I&#039;m using SSL now for FTP Control sessions ip_conntrack_ftp can&#039;t see anything)
iptables -A INPUT -p tcp -i eth0 -m state --state NEW -j ACCEPT -m multiport --dports 51000,51001,51002,51003,51004,51005

I put these entries in my vsftpd.conf
pasv_min_port=51000
pasv_max_port=51005

Thanks for the info - it helped.</description>
		<content:encoded><![CDATA[<p>I got an error when using 50000:51000 &#8211; I don&#8217;t think : is valid here and according to the iptables man page only 15 ports can be specified with multiport. Also I had to add &#8212; to your second state option.</p>
<p>Here&#8217;s the rule I ended up using</p>
<p># Allow ftp passive port connections inbound (as I&#8217;m using SSL now for FTP Control sessions ip_conntrack_ftp can&#8217;t see anything)<br />
iptables -A INPUT -p tcp -i eth0 -m state &#8211;state NEW -j ACCEPT -m multiport &#8211;dports 51000,51001,51002,51003,51004,51005</p>
<p>I put these entries in my vsftpd.conf<br />
pasv_min_port=51000<br />
pasv_max_port=51005</p>
<p>Thanks for the info &#8211; it helped.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

