<?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>ASP.NET MSSQL Webhosting Blog &#187; Security</title>
	<atom:link href="http://www.mywebhostingblog.net/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Thu, 16 Sep 2010 19:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MSSQL WebAdmin ASP.NET ENT Manager in Plesk show Virus</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/#comments</comments>
		<pubDate>Sat, 23 May 2009 18:20:55 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virus]]></category>
		<category><![CDATA[Webadmin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=521</guid>
		<description><![CDATA[We have recently had this complain from our various Shared hosting as well as Dedicated Server hosting clients that MSSQL Webadmin ASP .NET Enterprise Manager is having a virus / trojan on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be MSSQL [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently had this complain from our various <strong>Shared hosting</strong> as well as <strong>Dedicated Server hosting</strong> clients that <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> is having a <strong>virus / trojan</strong> on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> has got an injection in it. But after receiving too many complains from most of our <strong>dedicated server</strong> clients we started investigating the problem and now we knew that this is something that has happen globally. After viewing <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> on <strong>Plesk server</strong> it looked as the picture below:</p>
<p><span id="more-521"></span></p>
<p><img class="aligncenter size-medium wp-image-522" title="mssql-webadmin-showing-trojen-virus" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/05/mssql-webadmin-showing-trojen-virus-300x219.jpg" alt="mssql-webadmin-showing-trojen-virus" width="300" height="219" /></p>
<p>We understood that the problem was not with the <em><strong>mssql.domain_name</strong></em> link but the virus alert only happened after click on <strong><em>ASP .NET Enterprise Manager, Recomended this site</em></strong>. And the link was:</p>
<p><code>www.referralplanet.com/referral/windows/referralWindow.asp?id=17</code></p>
<p>Since the site was not hosted with us we had a sigh of relief that the problem is not with the server however we thought we still have a security problem if the link has been injected into <strong>ASP .NET Manager</strong> site in IIS, may be due to a security issue with <strong>Plesk control panel</strong>. And after checking several servers we came to know that the problem has happened to the site that is recommended on <strong>MSSQL Webadmin site </strong>and not the server.</p>
<p>If you want to remove this link from your server as well as from the <strong>MSSQL WebAdmin</strong> site then follow the steps below:</p>
<p>1. Login into the server through RDP with Administrator user.<br />
2. Go to <em><strong>D:\inetpub\vhosts\sqladmin\mssql\app</strong></em><br />
3. Open the <em><strong>navbar.aspx</strong></em> page in notepad<br />
4. Go to <em><strong>line number 119</strong></em> and remove the code below:</p>
<p><code>&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;<br />
&lt;a onclick="refWindow=window.open('http:// www.referralplanet.com/referral/windows/referralwindow.asp?id=18','referralWindow' ,'width=350,height=520,scrollbars=yes,menubar=no,resizable=yes'); refWindow.focus(); return false;" target=_blank href="http:// www.referralplanet.com/referral/windows/referralWindow.asp?id=17"&gt;<br />
&lt;IMG alt="Click Here To Tell A Friend" src="images/tellafriend.gif" border=0&gt;&lt;/A&gt;<br />
&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;</code></p>
<p>5. Save the file and exit.</p>
<p>This problem must have infected millions of computer in the world. Let see when chinese hacker stop putting their shit on other&#8217;s website and get mature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Write Permissions on Plesk Windows Server Get Removed</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:18:24 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=436</guid>
		<description><![CDATA[This has been a regular problem with most of our Windows dedicated Server Clients as well as Windows Shared hosting client that has Plesk 8.4 installed on them, specially for those who need write permissions on web user for the ASP .NET/MSSQL and PHP/MySQL application, that the write permissions on the folder get removed own [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a regular problem with most of our<strong> Windows dedicated Server Clients</strong> as well as <strong>Windows Shared hosting client </strong>that has Plesk 8.4 installed on them, specially for those who need <strong>write permissions </strong>on web user for the <strong>ASP .NET/MSSQL</strong> and <strong>PHP/MySQL</strong> application, that the write <strong>permissions </strong>on the folder get <strong>removed</strong> own its own without any changes being made by us or the client. After allot of scratching and investigation we were finally able to reveal the secrete about the permissions issue. The problem was not with Plesk but the way we use to set <strong>permissions </strong>on the folder.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-437" title="Plesk Permissions Problem on Windows" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/plesk-86-premissions-problems.jpg" alt="plesk-86-premissions-problems" width="465" height="160" /></p>
<p>While I was searching for the solution I found the KB articel on Parallels sites below:</p>
<p><code>http://kb.parallels.com/en/1147</code></p>
<p><span id="more-436"></span></p>
<p>Where they (<strong>Plesk adminstrators</strong>) have clearly mentioned that custom permissions set on top level folder like httpdocs, statistics, cgi-bin etc will get reset by Plesk. So I decided to make a test, I manually gave write permissions to httpdocs folder and ran <em><strong>webservmng.exe</strong></em> on it and yes it was removed. Then after allot digging I would that there us a file<em> .Security</em> which is saved under the folder with the domain name (parallel to httpdocs folder), that stores all permissions for that domain.</p>
<p>Before we start please be informed that these steps are applicable to <strong>Parallel Plesk version 8.4</strong> and above as <em>.Security</em> file was introduced in 8.4 only.</p>
<p>So here are steps to get around the problem permanently:</p>
<p>1. Backup the <em>.Security</em> file and delete it from<em> [drive]:inetpub/vhosts/domain_name,</em> this file saves all the permissions assigned to that user from Plesk on Windows. Deleting it will remove all the records.</p>
<p>2. After renaming or deleting the <em>. Security</em> file, run this command below:</p>
<p><code>"%plesk_bin%/websrvmng.exe" --reconfigure-vhost --vhost-name=domain_name</code></p>
<p>3. This command will create a new <em>.Security</em> file with all default permissions on that domain.</p>
<p>4. Now login into Plesk &gt;&gt; Click on Domains &gt;&gt; domain_name &gt;&gt; File Manager &gt;&gt; httpdocs &gt;&gt; golden padlock of folder_name to set perm on &gt;&gt; &#8220;Advance&#8221; Button &gt;&gt; Select users &gt;&gt; Assign permissions &gt;&gt; OK.</p>
<p>These steps will save new permissions in .Security file and even if you run <em><strong>websrvmng</strong></em> on that domain again, the new permissions that has been set from Plesk will not get removed. There is no need to add any special group or users like, <strong>ASPNET </strong>or <strong>NETWORK SERVICE</strong> to any folder as those permissions are handled by <strong>IUSR_ &amp; IWAM_/IWPD_ users</strong>.</p>
<p>Any permissions that has been assigned directly to httpdocs folder will get reset by <strong>Plesk </strong>and if you inherit them to sub folder, permissions from sub folder will also get removed.</p>
<p>So the moral is,<strong> DO NOT</strong> give any permissions from RDP, use File Manager option if you want to keep the trouble of permissions away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Block IP on Windows.</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:49:22 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Block]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=285</guid>
		<description><![CDATA[It is very easy to block a single IP address on a Linux server but Windows Default firewall doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However Microsoft released this and introduced IP Security Polices in their Local Security Polices option in the release of their SP2. [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy to block a single IP address on a <strong>Linux </strong>server but <strong>Windows </strong>Default <strong>firewall </strong>doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However <strong>Microsoft </strong>released this and introduced <strong>IP Security Polices</strong> in their <strong>Local Security Polices</strong> option in the release of their SP2. But most of us are not aware of this option and we mostly adopted third party firewall and pay for their heavy license. However Firewall onl Windows 2008 Server is far more advanced than that on Windows 2003.</p>
<p>It would not be the case now as I have listed detailed steps along with the images on how to block IP using the IP security policy in Windows. This option is also available in <strong>XP </strong>as well as <strong>Windows 2003</strong> Server edition.</p>
<p><strong>How to BLock IP Using Windows:</strong></p>
<p>You can either open MMC from START &gt;&gt; RUN &gt;&gt; MMC and add a new Snapin for IP Security policy with steps below:</p>
<p><span id="more-285"></span></p>
<p>Click &#8216;Start&#8217; &gt; &#8216;Run&#8217; &gt;type &#8216;MMC&#8217; press ok.<br />
In the console click &gt; &#8216;File&#8217; &gt; &#8216;Add/Remove Snap in&#8217;<br />
In the &#8216;Standalone Tab&#8217; click The &#8216;add&#8217; button<br />
Seclect &#8216;IP Security Policy Managment&#8217; &gt; &#8216;ADD&#8217; &gt; &#8216;Local Computer&#8217; &gt; &#8216;finish&#8217;  &gt; &#8216;close&#8217; &gt; &#8216;ok&#8217;<br />
You should now be back to the Management console.</p>
<p>OR</p>
<p>Just goto START &gt;&gt; PROGRAMS &gt;&gt; ADMINISTRATIVE TOOLS &gt;&gt; LOCAL SECURITY POLICIES ON LOCAL COMPUTER to open the IP Security Management Console.</p>
<p>1. Select IP Security Policy and Right Click on the right pane to select new Policy. The screen will like an image below:</p>
<div id="attachment_288" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1.png"><img class="size-medium wp-image-288" title="block-ip-in-windows-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1-300x179.png" alt="Windows IPSecurity Policies" width="300" height="179" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>2. This will open the IP Security Policy Wizard, Just click on Next button.</p>
<div id="attachment_289" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2.png"><img class="size-medium wp-image-289" title="block-ip-in-windows-2" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2-300x238.png" alt="Figure 2" width="300" height="238" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>3. On the Next screen you have to define the name of your IP Security policy and its description and then click Next Button.</p>
<div id="attachment_290" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3.png"><img class="size-medium wp-image-290" title="block-ip-in-windows-3" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3-300x240.png" alt="Figure 3" width="300" height="240" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>4. Plesk uncheck the box for &#8220;<strong>Activate the default Response Rule</strong>&#8221; and then click Next Button..</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4.png"><img class="size-medium wp-image-291" title="block-ip-in-windows-4" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4-300x238.png" alt="Figure 4" width="300" height="238" /></a><p class="wp-caption-text">Figure 4</p></div>
<p>5. On the Next screen remove the check for <strong>Edit Properties</strong> and Click Finish.</p>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5.png"><img class="size-medium wp-image-292" title="block-ip-in-windows-5" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5-300x237.png" alt="Figure 5" width="300" height="237" /></a><p class="wp-caption-text">Figure 5</p></div>
<p>6. Once you click on the Finish Button you will see the screen below along with your rule being added to the list. Now we will create an <strong>IP filter list </strong>to block IPs.</p>
<div id="attachment_293" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6.png"><img class="size-medium wp-image-293" title="block-ip-in-windows-6" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6-300x177.png" alt="Figure 6" width="300" height="177" /></a><p class="wp-caption-text">Figure 6</p></div>
<p>7. Double click on the rule you have just create to open the properties window:</p>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 277px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7.png"><img class="size-medium wp-image-294" title="block-ip-in-windows-7" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7-267x300.png" alt="Figure 7" width="267" height="300" /></a><p class="wp-caption-text">Figure 7</p></div>
<p>8. Since we have chosen to uncheck <strong>&#8220;Activate the default Response Rule&#8221; </strong>in Step 4 the Dynamic rule in not applied. Click on Add button to open <strong>Security Rule Wizard</strong> and Click again on Add button to open <strong>IP Filter List Wizard.</strong></p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8.png"><img class="size-medium wp-image-295" title="block-ip-in-windows-8" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8-300x239.png" alt="" width="300" height="239" /></a><p class="wp-caption-text">Figure 8</p></div>
<p>9. You will have a screen some what in Figure 9. Put in the name of your list and Click on the Add button.</p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9.png"><img class="size-medium wp-image-296" title="block-ip-in-windows-9" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9-300x238.png" alt="Figure 9" width="300" height="238" /></a><p class="wp-caption-text">Figure 9</p></div>
<p>10. This will open another window for you to add IP and ports in the IP Filter list. In the Description box just put in the IP address that you want to block and make sure that you keep the check on the box for <strong>&#8220;Mirrored. Match packets with the exact appropriate source and destination addresses&#8221;</strong> and click on the Next button.</p>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10.png"><img class="size-medium wp-image-297" title="block-ip-in-windows-10" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10-300x233.png" alt="Figure 10" width="300" height="233" /></a><p class="wp-caption-text">Figure 10</p></div>
<p>11. Select <strong>My IP address</strong> in the <strong>Sources Address</strong> from the drop down list.</p>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11.png"><img class="size-medium wp-image-298" title="block-ip-in-windows-11" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11-300x233.png" alt="Figure 11" width="300" height="233" /></a><p class="wp-caption-text">Figure 11</p></div>
<p>12. You have many more options to select from the list for both in Sources and Destination Address. You will need some advanced knowledge to work with those option. We will select My IP address for now and click on Next button.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12.png"><img class="size-medium wp-image-299" title="block-ip-in-windows-12" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12-300x233.png" alt="Figure 12" width="300" height="233" /></a><p class="wp-caption-text">Figure 12</p></div>
<p>13. In the IP Traffic Destination, select <strong>&#8220;A specific IP Address&#8221;</strong> and enter the IP address that you want to block on your machine. Here you can also select a sub net from the drop down and block the entire subnet. Once you finish entering an IP/Subnet, click on Next button.</p>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13.png"><img class="size-medium wp-image-300" title="block-ip-in-windows-13" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13-300x233.png" alt="Figure 13" width="300" height="233" /></a><p class="wp-caption-text">Figure 13</p></div>
<p>14. Here in <strong>IP Protocol Type</strong> you can define the protocol that you want to block, it can be any one from the list for example <strong>TCP, UDP, ICMP etc.</strong> We will select <strong>ANY</strong> which mean all connect from a specific IP address. If you select a protocol from the list andclick Next it will ask you to enter the port address that you want to block, example 80 (See Figure 14.2). But since we want to block all ports we will select Any and click Next (Figure 14.1) and then Finish.</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14.png"><img class="size-medium wp-image-301" title="block-ip-in-windows-14" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14-300x233.png" alt="Figure 14" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.1</p></div>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142.png"><img class="size-medium wp-image-312" title="block-ip-in-windows-142" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142-300x233.png" alt="Figure 14.2" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.2</p></div>
<p>15.  After you click on Finish button you will see that the rule has been added in the IP filter list. If you want to add more IP and subnets then click on the Add button to add another rule or block 2nd IP. Once you finish with it you will have rules as in Figure 15.2.</p>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15.png"><img class="size-medium wp-image-302" title="block-ip-in-windows-15" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15-300x238.png" alt="Figure 15" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.1</p></div>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152.png"><img class="size-medium wp-image-313" title="block-ip-in-windows-152" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152-300x238.png" alt="Figure 15.2" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.2</p></div>
<p>16. Once your <strong>IP Filter List</strong> is complete click on the <strong>OK</strong> button to get back <strong>Security Rule Wizard.</strong> Select the IP filter list which you have created by clicking on the radio button and click Next.</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16.png"><img class="size-medium wp-image-303" title="block-ip-in-windows-16" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16-300x239.png" alt="Figure 16" width="300" height="239" /></a><p class="wp-caption-text">Figure 16</p></div>
<p>17. In the Next screen of Security Rule Wizard you will not see any Filter Action as Block as by default it is not created. We will create a Filter action to block connect by click on Add button.</p>
<div id="attachment_304" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17.png"><img class="size-medium wp-image-304" title="block-ip-in-windows-17" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17-300x239.png" alt="Figure 17" width="300" height="239" /></a><p class="wp-caption-text">Figure 17</p></div>
<p>18. In the Name type <strong>&#8220;Block&#8221;</strong> and any discryption you like and click on Next.</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18.png"><img class="size-medium wp-image-305" title="block-ip-in-windows-18" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18-300x229.png" alt="Figure 18" width="300" height="229" /></a><p class="wp-caption-text">Figure 18</p></div>
<p>19. In Filter Action General options select Block and click Next.</p>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19.png"><img class="size-medium wp-image-306" title="block-ip-in-windows-19" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19-300x229.png" alt="Figure 19" width="300" height="229" /></a><p class="wp-caption-text">Figure 19</p></div>
<p>20. And then on Finish to get back to Security Rule Wizard.</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20.png"><img class="size-medium wp-image-307" title="block-ip-in-windows-20" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20-300x229.png" alt="Figure 20" width="300" height="229" /></a><p class="wp-caption-text">Figure 20</p></div>
<p>21. This will add the Filter option as Block in the list, just click on radio button to select it and click Next.</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21.png"><img class="size-medium wp-image-308" title="block-ip-in-windows-21" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21-300x239.png" alt="Figure 21" width="300" height="239" /></a><p class="wp-caption-text">Figure 21</p></div>
<p>22. Click Finish to complete the security Rule Wizard.</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22.png"><img class="size-medium wp-image-309" title="block-ip-in-windows-22" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22-300x239.png" alt="Figure 22" width="300" height="239" /></a><p class="wp-caption-text">Figure 22</p></div>
<p>23. You will see the rule added in the list, you can add more rule with the same steps. Now just click OK to finish with the rules.</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 280px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23.png"><img class="size-medium wp-image-310" title="block-ip-in-windows-23" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23-270x300.png" alt="" width="270" height="300" /></a><p class="wp-caption-text">Figure 23</p></div>
<p>24. Now since we have already created the rules to block desired IP address just right click on the IP Security Policy and select Assign to apply the rule on the server.</p>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24.png"><img class="size-medium wp-image-311" title="block-ip-in-windows-24" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24-300x179.png" alt="Figure 24" width="300" height="179" /></a><p class="wp-caption-text">Figure 24</p></div>
<p>There are allot many option to secure your entire server with IP security policy. You can create more rules to block every one on RDP port TCP 3389 and allow only select IPs. IP Security is IP and port based application and not Services based and you can create the rule as per your need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure MS SQL 2005 Database with EFS Encryption</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 05:55:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=340</guid>
		<description><![CDATA[EFS Encryption EFS can be used to encrypt SQL Server 2005 data files and folders. EFS is supported on Windows 2000 and later operating systems with New Technology File Systems (NTFS) formatted drives. EFS uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On Windows 2003 Server and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EFS Encryption</strong></p>
<p>EFS can be used to encrypt <strong>SQL Server 2005</strong> data files and folders. EFS is supported on <strong>Windows 2000</strong> and later operating systems with New Technology File Systems (<strong>NTFS</strong>) formatted drives. <strong>EFS </strong>uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On <strong>Windows 2003 Server</strong> and newer operating systems, EFS by default creates a random <strong>File Encryption Key</strong>, which is a 256-bit AES key to perform data encryption.The File Encryption Key is then itself encrypted with the user’s public key and stored within the encrypted file or folder.</p>
<p><strong>To encrypt SQL Server 2005 data files and folders using EFS, follow these steps:</strong></p>
<p>1. Stop the <strong>SQL Server</strong> service.<br />
2. Log out and log in using the<strong> SQL Server </strong>service account credentials.<br />
3. Right-click on the file or folder to be encrypted and select <strong>Properties | General Tab | Advanced.</strong></p>
<p><span id="more-340"></span><br />
4. Within the Advanced attributes window, select Encrypt contents to secure data.<br />
5. Within the Advanced attributes window, press OK.<br />
6. Within the Properties tab, press OK.<br />
7. If you are encrypting a folder containing subfolders, you will be presented with another window asking if you would like to  encrypt them as well. Press OK.<br />
8. <strong>EFS encrypted files</strong> and folder names should now appear in green within any Windows file explorer window.<br />
9. Restart the <strong>SQL Server</strong> services.</p>
<p>If errors are generated, you may have encrypted the<strong> SQL Serve</strong>r data files using an account that is not linked to the <strong>SQL Server</strong> service account.You can decrypt the data folders by reversing the steps above and trying again. When encrypting individual database files, EFS first creates a plain text copy of the file to be encrypted, encrypts the target file, and then deletes the temporary file.This temporary file is not securely deleted and can be recovered using common data recovery tools. To prevent local file disclosure, you should use a secure data deletion tool to overwrite the areas of disk containing the temporary file. Alternatively, you can simply encrypt the parent folder that contains the database files to ensure any temporary files are also encrypted.</p>
<p><strong>EFS encryption</strong> is beneficial if the database media is stolen or misplaced. When transferring<strong> EFS encrypted</strong> files over the network, Windows first decrypts the file and then transfers the plain text equivalent. Some administrators perform manual backups of database files prior to implementing changes on the database server. If this backup involves copying data files from one server to another, you will effectively be storing an unencrypted copy of your database on the destination server.</p>
<p><strong>Encryption File System Contains Inherit Flaws</strong></p>
<p>On <strong>Windows Server 2003</strong>, EFS uses a strong 256-bit AES key to encrypt data. Under most circumstances, this would be an effective method of encryption; however, this AES key is protected by the user’s public key, which is based on the user’s Windows login password. This ultimately reduces EFS protection to the strength of the user’s Windows password. There are publicly available tools that can successfully decrypt EFS encrypted data by exploiting this flaw. Because of this, EFS should not be used to encrypt sensitive database data.</p>
<p><strong>Working with EFS Encrypted Data</strong></p>
<p>EFS encryption is managed by the operating system, and seamlessly provides file and folder encryption to <strong>SQL Server 2005</strong>. All <strong>SQL Serve</strong>r functions and operations remain unchanged when using this encryption method. Because EFS is handled outside of SQL Server 2005, encryption keys must be backed up separately in addition to your database backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

