<?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>Server Sitters Tech Corner &#187; FTP</title>
	<atom:link href="http://serversitters.com/technical/category/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://serversitters.com/technical</link>
	<description>Outsourced Web Hosting Support</description>
	<lastBuildDate>Wed, 15 Dec 2010 12:03:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Restrict FTP access by IP</title>
		<link>http://serversitters.com/technical/ftp/restrict-ftp-access-by-ip/</link>
		<comments>http://serversitters.com/technical/ftp/restrict-ftp-access-by-ip/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 15:54:39 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://serversitters.com/technical/?p=139</guid>
		<description><![CDATA[You can restrict FTP access by IP through a .ftpaccess file. # # Simple .ftpaccess file to control which IPs # can access this directory structure # Allow 212.32.5.0/26 Allow 158.152.0.0/16 DenyAll # # end # If this method doesn&#8217;t work you can also use iptables. However, this is only a valid option if you [...]]]></description>
			<content:encoded><![CDATA[<p>You can restrict FTP access by IP through a .ftpaccess file.<br />
<code><br />
#<br />
# Simple .ftpaccess file to control which IPs<br />
# can access this directory structure<br />
#</p>
<p>Allow 212.32.5.0/26<br />
Allow 158.152.0.0/16<br />
DenyAll</p>
<p>#<br />
# end<br />
#<br />
</code></p>
<p>If this method doesn&#8217;t work you can also use iptables.  However, this is only a valid option if you are implementing this feature server-wide.  To block all inbound access via ftp use the following:<br />
<code><br />
iptables -I INPUT -i eth0 --protocol tcp --dport 21 -j DROP;<br />
</code></p>
<p>Then to add an IP for access use:<br />
<code><br />
iptables -I INPUT -i eth0 -s $IP --protocol tcp --dport 21 -j ACCEPT;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://serversitters.com/technical/ftp/restrict-ftp-access-by-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

