<?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>Developer Oracles &#187; IIS ban country</title>
	<atom:link href="http://devoracles.com/tag/iis-ban-country/feed" rel="self" type="application/rss+xml" />
	<link>http://devoracles.com</link>
	<description></description>
	<lastBuildDate>Sun, 21 Mar 2010 11:05:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Blocking IPs or even countries on Windows systems using IPSec</title>
		<link>http://devoracles.com/blocking-ips-or-even-countries-on-windows-systems-using-ipsec/178</link>
		<comments>http://devoracles.com/blocking-ips-or-even-countries-on-windows-systems-using-ipsec/178#comments</comments>
		<pubDate>Sat, 13 Sep 2008 18:41:14 +0000</pubDate>
		<dc:creator>Gary Illyes</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[country ban]]></category>
		<category><![CDATA[IIS ban country]]></category>
		<category><![CDATA[IPSec]]></category>

		<guid isPermaLink="false">http://devoracles.com/?p=178</guid>
		<description><![CDATA[First get IPSec installed. It comes with XP&#8217;s SP2 so if you didn&#8217;t do it yet, install SP2. If you&#8217;re on a server version of windows, this can be tricky as you first install IPSec on a XP then you run the command from XP&#8217;s &#8220;Program Files/Support&#8221; folder.
So, to block one single IP, write this [...]]]></description>
			<content:encoded><![CDATA[<p>First get IPSec installed. It comes with XP&#8217;s SP2 so if you didn&#8217;t do it yet, install SP2. If you&#8217;re on a server version of windows, this can be tricky as you first install IPSec on a XP then you run the command from XP&#8217;s &#8220;Program Files/Support&#8221; folder.</p>
<p>So, to block one single IP, write this in command prompt:<br />
<code><br />
ipseccmd -f [IP.YOU.WANT.BLOCK/255.254.0.0=*]<br />
</code></p>
<p>This will block the B class IP you specify in the command.</p>
<p>To see if your blocking attempt was a success, type:</p>
<p><code><br />
ipseccmd show filters<br />
</code><br />
If you see the IP you typed in the previous command, you&#8217;re good.</p>
<p>Now let&#8217;s block a whole country. First obtain a list with the country&#8217;s IPs you want to block. The easiest way possibly is still <a href="http://blockacountry.com">blockacountry.com</a>, generate the .htaccess then remove the unwanted words with a text editor using batch replace. Then create a .bat file and for every IP you got from the above website, write on separate lines<br />
<code><br />
ipseccmd -f [IP.YOU.WANT.BLOCK/255.254.0.0=*]<br />
</code></p>
<p>On a side note, blockacountry.com provides the IPs in CDIR format. Since IPSec is a Microsoft application and due to this, is a bit dumb, you have to convert the IPs from CDIR format to standard plus subnet mask.<br />
I explain with an example:</p>
<p><code><br />
127.0.0.1/15 becomes 127.0.0.1/255.254.0.0<br />
<code></p>
<p>And that was all. As always, if you need help, shout.</p>
]]></content:encoded>
			<wfw:commentRss>http://devoracles.com/blocking-ips-or-even-countries-on-windows-systems-using-ipsec/178/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
