<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; pure-ftpd passive ports</title>
	<atom:link href="http://wiki.centos-webpanel.com/tag/pure-ftpd-passive-ports/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>pure-ftpd Setup Passive FTP Ports</title>
		<link>http://wiki.centos-webpanel.com/pure-ftpd-setup-passive-ftp-ports</link>
		<comments>http://wiki.centos-webpanel.com/pure-ftpd-setup-passive-ftp-ports#comments</comments>
		<pubDate>Mon, 13 Jun 2016 13:38:12 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[pure-ftpd passive ports]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=546</guid>
		<description><![CDATA[Video instructions for Pure-FTPd PassivePortRange How to enable passive ports on your pure-ftpd server and CSF Firewall When transferring files on/from your ftp server you will need to have passive ports specified and allowed in the firewall. Firstly lets edit pure-ftpd configuration file nano /etc/pure-ftpd/pure-ftpd.conf Uncomment (remove # at beginning of the line) PassivePortRange and [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Video instructions for Pure-FTPd PassivePortRange</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/Owttde6zs_Q?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/Owttde6zs_Q?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p><strong>How to enable passive ports on your pure-ftpd server and CSF Firewall</strong><br />
When transferring files on/from your ftp server you will need to have passive ports specified and allowed in the firewall.</p>
<p><strong>Firstly lets edit pure-ftpd configuration file</strong></p>
<pre>nano /etc/pure-ftpd/pure-ftpd.conf</pre>
<p>Uncomment (<em>remove # at beginning of the line</em>) <strong>PassivePortRange</strong> and specify the passive port range:</p>
<pre>PassivePortRange 35000 50000</pre>
<p><em>* If this line is missing then simply add it at the end of the file.</em></p>
<p>Restart pure-ftpd to load the new configuration</p>
<pre>service pure-ftpd restart</pre>
<p></br></p>
<p><strong>Next steep is to set the CSF firewall configuration</strong><br />
In file <strong>/etc/csf/csf.conf</strong> add the same port range under <strong>TCP_IN</strong> and <strong>TCP_OUT</strong></p>
<pre>nano /etc/csf/csf.conf</pre>
<p>In lines <strong>TCP_IN</strong> and <strong>TCP_OUT</strong> add <strong>30000:50000</strong>, example</p>
<pre>
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2030,2031,30000:50000,6666"

# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,2030,2031,30000:50000,993,995"
</pre>
<p>Now lets reload csf firewall configuration</p>
<pre>csf -r</pre>
<p><strong>Video instructions</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/gJkidvy8BgQ?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/gJkidvy8BgQ?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p><em>that is it, enjoy!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/pure-ftpd-setup-passive-ftp-ports/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
