<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Linglom&#039;s blog &#187; Windows</title>
	<atom:link href="http://www.linglom.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linglom.com</link>
	<description>Just another IT weblog</description>
	<lastBuildDate>Thu, 27 May 2010 09:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Accessing SQL Server on ASP.NET Web Application using ADO.NET</title>
		<link>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/</link>
		<comments>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 06:28:21 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=1089</guid>
		<description><![CDATA[ADO.NET is a set of components that can be used to access data and data services. The objects of ADO.NET that will be used in this post are: Connection: Provides a connection used to communicate with the data source. DataAdapter: A bridge used to transfer data between a Data source and a DataSet object. DataSet: [...]


Related posts:<ol><li><a href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a></li>
<li><a href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>ADO.NET is a set of components that can be used to access data and data services. The objects of ADO.NET that will be used in this post are:<span id="more-1089"></span></p>
<ul>
<li><strong>Connection</strong>: Provides a connection used to communicate with the data source.</li>
<li><strong>DataAdapter</strong>: A bridge used to transfer data between a Data source and a DataSet object.</li>
<li><strong>DataSet</strong>: Stores query result from DataAdapter.</li>
</ul>
<p><!-- Start AdLogger Wrapping Code -->
<?php @include_once("/usr/local/psa/home/vhosts/linglom.com/httpdocs/adlogger/ad_check_include.php"); if ($show_ads == 'y') { ?>

<script type="text/javascript"><!--
google_ad_client = "pub-7765165459812980";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-02-17: SquareonBlog
google_ad_channel = "6055254908";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "ce6531";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<?php } ?>
<!-- End AdLogger Wrapping Code --></p>
<p>On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object. I have provided both VB.NET and C# programming languages.</p>
<h3>Step-by-step</h3>
<ol>
<li>Create a connection string in web.config. I decide to put the connection string in web.config so that I can re-use the connection string in other web form.

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>connectionstrings<span style="color: #006600; font-weight: bold;">&gt;</span>
		<span style="color: #006600; font-weight: bold;">&lt;</span>add name<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Northwind&quot;</span> 
       connectionString<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Data Source=BKKSQL001\INSTANCE01;
       Initial Catalog=Northwind;
       Integrated Security=True&quot;</span> 
      providerName<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;System.Data.SqlClient&quot;</span><span style="color: #006600; font-weight: bold;">/&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>connectionstrings<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div>

<p><strong>Attributes explanation:</strong></p>
<ul>
<li><strong>name</strong>: A connection string name.</li>
<li><strong>connectionString</strong>: A connection string which is used to connect to a database. On this example, it connects to Northwind database on BKKSQL001\INSTANCE01.</li>
<li><strong>providerName</strong>: A provider name that is used.</li>
</ul>
<p><a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/_1.png" width="200" height="150" alt="A Connection String" title="A Connection String"  /></a>
</li>
<li>On a Web Form, imports some namespaces which are required for working with SQL Server. System.Web.Configuration is use to read values from web.config.

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">'Visual Basic</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Data</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Data</span>.<span style="color: #0000FF;">SqlClient</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Configuration</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">//C#</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Data</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Data.SqlClient</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Web.Configuration</span><span style="color: #008000;">;</span></pre></div></div>

</li>
<li>Use a GridView object to display the query result. Set the name of GridView to &#8220;<strong>gridView1</strong>&#8220;. Copy and paste the code below to <strong>Page_Load</strong> method.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">'Visual Basic</span>
Protected <span style="color: #0600FF;">Sub</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> <span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">Load</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> connStr <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> <span style="color: #008000;">=</span> WebConfigurationManager.<span style="color: #0000FF;">ConnectionStrings</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Northwind&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ConnectionString</span>
        <span style="color: #0600FF;">Dim</span> conn <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> SqlConnection<span style="color: #000000;">&#40;</span>connStr<span style="color: #000000;">&#41;</span>
        conn.<span style="color: #0600FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> sqlProducts <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;SELECT ProductID, ProductName, UnitPrice FROM Products&quot;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> da <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> SqlDataAdapter<span style="color: #000000;">&#40;</span>sqlProducts, conn<span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> ds <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> DataSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        da.<span style="color: #0000FF;">Fill</span><span style="color: #000000;">&#40;</span>ds, <span style="color: #808080;">&quot;Products&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        gridView1.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> ds.<span style="color: #0000FF;">Tables</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Products&quot;</span><span style="color: #000000;">&#41;</span>
        gridView1.<span style="color: #0000FF;">Databind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">//C#</span>
<span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #FF0000;">string</span> connStr <span style="color: #008000;">=</span> WebConfigurationManager.<span style="color: #0000FF;">ConnectionStrings</span><span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;Northwind&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ConnectionString</span><span style="color: #008000;">;</span>
        SqlConnection conn <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SqlConnection<span style="color: #000000;">&#40;</span>connStr<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        conn.<span style="color: #0000FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #FF0000;">string</span> sqlProducts <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;SELECT ProductID, ProductName, UnitPrice FROM Products&quot;</span><span style="color: #008000;">;</span>
&nbsp;
        SqlDataAdapter da <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SqlDataAdapter<span style="color: #000000;">&#40;</span>sqlProducts, conn<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        DataSet ds <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> DataSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        da.<span style="color: #0000FF;">Fill</span><span style="color: #000000;">&#40;</span>ds, <span style="color: #666666;">&quot;Products&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        gridView1.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> ds.<span style="color: #0000FF;">Tables</span><span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;Products&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
        gridView1.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Code Explanation:</strong></p>
<ul>
<li>Line 4-6: Get a connection string value from web.config. Then, open a connection using the connection string to a SQL Server.</li>
<li>Line 8: Create a variable &#8220;<strong>sqlProducts</strong>&#8221; which stores SQL query from Products table.</li>
<li>Line 10-12: Create a SqlDataAdapter object &#8220;<strong>da</strong>&#8221; to execute the query. Then, create a DataSet object &#8220;<strong>ds</strong>&#8221; to hold the result from object &#8220;<strong>da</strong>&#8221; and set name to &#8220;<strong>Products</strong>&#8220;.</li>
<li>Line 14-15: Display data from object &#8220;<strong>ds</strong>&#8221; on a GridView object &#8220;<strong>gridView1</strong>&#8220;.</li>
</ul>
</li>
<li>Run the project. You will see the result as figure below.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/_2.png" width="200" height="247" alt="Northwind's Products table" title="Northwind's Products table"  /></a></li>
</ol>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a></li>
<li><a href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</title>
		<link>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/</link>
		<comments>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 03:32:54 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SqlDataSource]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=1095</guid>
		<description><![CDATA[Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data From part 1: SELECT Data, you see how to query data from SQL Server 2005 to display on a GridView object using SqlDataSource web control. But the data is read-only, you cannot modify any data on a GridView. So now [...]


Related posts:<ol><li><a href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a></li>
<li><a href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</h3>
<p><span id="more-1095"></span></p>
<p>From <a href="http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/">part 1: SELECT Data</a>, you see how to query data from SQL Server 2005 to display on a GridView object using <strong>SqlDataSource</strong> web control. But the data is read-only, you cannot modify any data on a GridView. So now you will see how to modify data on the GridView which will update back on the database.</p>
<p><!--adsense#Square--></p>
<h3>Step-by-step</h3>
<p><em><strong>Note:</strong></em> This example is continue from part 1: SELECT Data.</p>
<ol>
<li>On SqlDataSource1, click on <strong>Configure Data Source</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_1.png" width="200" height="129" alt="Configure Data Source" title="Configure Data Source"  /></a></li>
<li>On <strong>Choose Your Data Connection</strong>, click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_2.png" width="200" height="155" alt="Choose Your Data Connection" title="Choose Your Data Connection"  /></a></li>
<li>On <strong>Configure Select Statement</strong>, change the option from <strong>Specify columns from a table or view</strong> to <strong>Specify a custom SQL statement or stored procedure</strong>. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_3.png" width="200" height="155" alt="Configure Select Statement" title="Configure Select Statement"  /></a></li>
<li>On <strong>Define Custom Statements or Stored Procedures</strong>, you see 4 tabs which are SELECT, UPDATE, INSERT and DELETE. Here you can define custom SQL statements for each SQL operations. On <strong>SELECT</strong> tab, enter the SQL statement as below:

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">&#91;</span>ProductID<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#91;</span>ProductName<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#91;</span>UnitPrice<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#91;</span>Products<span style="color: #66cc66;">&#93;</span></pre></div></div>

<p><a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_4.png" width="200" height="155" alt="Define Custom Statements or Stored Procedures" title="Define Custom Statements or Stored Procedures"  /></a></li>
<li>Click on <strong>UPDATE</strong> tab, enter the SQL statement below and click <strong>Next</strong>.

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> Products <span style="color: #993333; font-weight: bold;">SET</span> ProductName <span style="color: #66cc66;">=</span> @ProductName<span style="color: #66cc66;">,</span> UnitPrice <span style="color: #66cc66;">=</span> @UnitPrice
<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#91;</span>ProductID<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">=</span> @ProductID</pre></div></div>

<p><a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_5.png" width="200" height="155" alt="Update SQL Query" title="Update SQL Query"  /></a></li>
<li>On <strong>Test Query</strong>, Click <strong>Finish</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_6.png" width="200" height="155" alt="Test Query" title="Test Query"  /></a></li>
<li>On <strong>GridView1</strong>, click <strong>Edit Columns</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_7.png" width="200" height="129" alt="Edit Columns" title="Edit Columns"  /></a></li>
<li>On <strong>Fields</strong>, select <strong>Command Fields</strong> -> <strong>Edit, Update, Cancel</strong> on <strong>Available fields</strong> and click <strong>Add</strong>. Then, move the field <strong>Edit, Update, Cancel</strong> to the top by click on up arrow button. Next, click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_8.png" width="200" height="163" alt="Add Fields on Grid View Web Control" title="Add Fields on Grid View Web Control"  /></a></li>
<li>On <strong>GridView1</strong>, check <strong>Enable Editing</strong> to allow edit data on the Grid View.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_9.png" width="200" height="129" alt="Enable Editing" title="Enable Editing"  /></a></li>
<li>Build and run the project. You see the <strong>Edit</strong> column in front of each row. Click <strong>Edit</strong> to edit the row.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/10.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_10.png" width="200" height="273" alt="Query Result" title="Query Result"  /></a></li>
<li>You can modify the value of product name and unit price of the row which also update back on the database, too.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/11.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_11.png" width="200" height="195" alt="Edit a Row" title="Edit a Row"  /></a></li>
</ol>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a></li>
<li><a href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</title>
		<link>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/</link>
		<comments>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 04:40:26 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SqlDataSource]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=1092</guid>
		<description><![CDATA[Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object using SqlDataSource web control so you don&#8217;t have to write any code! [...]


Related posts:<ol><li><a href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a></li>
<li><a href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</h3>
<p><span id="more-1092"></span></p>
<p>On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object using <strong>SqlDataSource</strong> web control so you don&#8217;t have to write any code!</p>
<p><!--adsense#Square--></p>
<h3>Step-by-step-</h3>
<ol>
<li>Drag a <strong>SqlDataSource</strong> object from Toolbox to a Web Form.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_1.png" width="200" height="233" alt="SqlDataSource" title="SqlDataSource"  /></a></li>
<li>On <strong>SqlDataSource1</strong> object, click <strong>Configure Data Source</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_2.png" width="200" height="129" alt="Configure Data Source" title="Configure Data Source"  /></a></li>
<li>On <strong>Choose Your Data Connection</strong>, click <strong>New Connection</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_3.png" width="200" height="155" alt="Create a New Connection" title="Create a New Connection"  /></a></li>
<li>On <strong>Add Connection</strong>, select <strong>Data Source</strong> as <strong>Microsoft SQL Server (SqlClient)</strong>. Then, type the Server name of the SQL Server and select a database. On this example, the server is <strong>BKKSQL001\INSTANCE01</strong> and <strong>Northwind</strong> is the database.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_4.png" width="200" height="301" alt="Add Connection" title="Add Connection"  /></a></li>
<li>On <strong>Save the Connection String to the Application Configuration File</strong>, click <strong>Next</strong> to continue.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_5.png" width="200" height="155" alt="Save the Connection String" title="Save the Connection String"  /></a></li>
<li>On <strong>Configure the Select Statement</strong>, select <strong>Specify columns from table or view</strong> and select <strong>Products</strong> table. Then, check <strong>ProductID</strong>, <strong>ProductName</strong> and <strong>UnitPrice</strong> columns. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_6.png" width="200" height="155" alt="Configure the Select Statement" title="Configure the Select Statement"  /></a></li>
<li>On <strong>Test Query</strong>, you can click on <strong>Test Query</strong> button to verify the query result. Then, click <strong>Finish</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_7.png" width="200" height="155" alt="Test Query" title="Test Query"  /></a></li>
<li>Drag a GridView object from Toolbox to the Web Form. Then, choose the Data Source to the one that you have just created.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_8.png" width="200" height="129" alt="Set Data Source for GridView Object" title="Set Data Source for GridView Object"  /></a></li>
<li>Build and run the project. You will see the result as the figure below.<br />
<a href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_9.png" width="200" height="247" alt="Query Result on Web Page" title="Query Result on Web Page"  /></a></li>
</ol>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a></li>
<li><a href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Permanent Link: Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</title>
		<link>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/</link>
		<comments>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 02:28:32 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=977</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Block Windows Live Messenger From Part 11: HTTP Filtering, you learn about HTTP filtering concept. Now let&#8217;s apply it with a [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a></li>
<li><a href='http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering'>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</a></li>
<li><a href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-977"></span></p>
<h3>Block Windows Live Messenger</h3>
<p>From <a href="http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/">Part 11: HTTP Filtering</a>, you learn about HTTP filtering concept. Now let&#8217;s apply it with a real world example, <strong>Windows Live Messenger</strong>. On this post, I show you how to block Windows Live Messenger on ISA Server 2006. </p>
<p><!--adsense#Square--></p>
<p>Windows Live Messenger is a popular instant messaging application, many people using it regularly. But sometimes, people use it at work place and unintentionally receive a file containing virus. Then, they execute it, so the virus spread on the network. Therefore, it is a task of an IT staff to secure the system and prevent this issue. The best and effective solution is to enforce strictly firewall policy. But sometimes, you cannot do that. For example, users on research department want access to any websites (HTTP) because they do not know what websites they want to access until they need. Then, you have to create an access rule to allow HTTP to from Internal to External for these users. Now they can use Windows Live Messenger because Windows Live Messenger communicates with its servers through either of these ports:</p>
<ul>
<li>MSN Messenger protocol (TCP: 1863).</li>
<li>HTTP protocol (TCP: 80).</li>
</ul>
<p>If you block only MSN Messenger protocol, users still can use Windows Live Messenger through HTTP protocol. Now what should you do? Block HTTP protocol? Doing that will also block users to access websites so you cannot do that. Here it comes, HTTP filtering. You can block only Windows Live Messenger on ISA Server without blocking the HTTP protocol if you know the signature. HTTP header is also the signature.</p>
<p>So what is the signature of Windows Live Messenger? I have sniffed HTTP packets while I signing to Windows Live Messenger. Here are the signature and protocol port of Windows Live Messenger:</p>
<ul>
<li>The client communicates with the server of Windows Live Messenger using <strong>TCP outbound port 1863</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_1.png" width="200" height="49" alt="Windows Live Messenger TCP Packets" title="Windows Live Messenger TCP Packets"  /></a></li>
<li>While the client requesting information from the server (request header), one signature of it is <strong>User-Agent: Windows Live Messenger</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_2.png" width="200" height="51" alt="User-Agent: Windows Live Messenger HTTP packet" title="User-Agent: Windows Live Messenger HTTP packet"  /></a></li>
</ul>
<p>Now I show you how to configure to block Windows Live Messenger on ISA Server 2006.</p>
<h3>Step-by-step</h3>
<ol>
<li>Create an access rule to block TCP outbound port 1863. ISA Server 2006 already has pre-defined this port as <strong>MSN Messenger</strong> protocol. I am not going to show detail steps on creating an access rule. You can review them at <a href="http://localhost/wordpress/2009/07/29/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/">Part 7: Create DNS Lookup Rule</a> and <a href="http://localhost/wordpress/2009/07/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/">Part 8: Create Web Access Rule</a>.
<ul>
<li>Rule Name: <strong>Block Windows Live Messenger</strong></li>
<li>Action: <strong>Deny</strong></li>
<li>Protocol: <strong>MSN Messenger</strong></li>
<li>From: <strong>Internal</strong></li>
<li>To: <strong>External</strong></li>
<li>Condition: <strong>All Users</strong></li>
</ul>
<p><a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_3.png" width="200" height="123" alt="Create Access Rule to Block MSN Messenger Protocol" title="Create Access Rule to Block MSN Messenger Protocol"  /></a></li>
<li>Next, configure HTTP filtering to block the signature of Windows Live Messenger. Right click on <strong>&#8220;Allow HTTP, HTTPS for Linglom&#8221;</strong> and select <strong>Configure HTTP</strong>.<br />
<em><strong>Note:</strong></em> This menu option available on an access rule that contains HTTP protocol only.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_4.png" width="200" height="114" alt="Configure HTTP" title="Configure HTTP"  /></a></li>
<li>On <strong>Configure HTTP policy for rule</strong>, click on <strong>Signatures</strong> tab and click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_5.png" width="200" height="222" alt="Add Signature to Rule" title="Add Signature to Rule"  /></a></li>
<li>On <strong>Signature</strong>, enter these information below to block Windows Live Messenger and then click <strong>OK</strong>.
<ul>
<li>Name: <strong>Blocks Windows Live Messenger</strong> or any name as you want.</li>
<li>Search in: <strong>Request headers</strong></li>
<li>HTTP header: <strong>User-Agent:</strong></li>
<li>Signature: <strong>Windows Live Messenger</strong></li>
</ul>
<p><em><strong>Note:</strong></em> Don&#8217;t forget semi-colon (:) after <strong>User-Agent</strong> text.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_6.png" width="200" height="204" alt="The Signature of Windows Live Messenger" title="The Signature of Windows Live Messenger"  /></a></li>
<li>Back to <strong>Configure HTTP policy for rule</strong>, you see the signature has been created for this rule. You also can disable the signature by un-check it. On this example, leave it as checked to enable the signature. Click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_7.png" width="200" height="222" alt="Blocks Windows Live Messenger" title="Blocks Windows Live Messenger"  /></a></li>
<li>Don&#8217;t forget to click <strong>Apply</strong> to update the configuration.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_8.png" width="200" height="114" alt="Apply Configurations" title="Apply Configurations"  /></a></li>
<li>Let&#8217;s try to sign in Windows Live Messenger on the client computer, you see that I cannot sign in any more.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_9.png" width="200" height="263" alt="Can't Sign in on Windows Live Messenger" title="Can't Sign in on Windows Live Messenger"  /></a></li>
</ol>
<h3>Summary</h3>
<p>Now You have reach the end of <strong>Getting started with Microsoft ISA Server 2006</strong> series. This series contains 12 parts: it gives you an introduction of ISA Server 2006, how to install and configure ISA Server 2006 on simple environment, how to create an access rule, and how to use some useful features on ISA Server 2006. I hope you get what you want on this series. If you have any comment or suggestion, feel free to leave it below.</p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a></li>
<li><a href='http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering'>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</a></li>
<li><a href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</title>
		<link>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/</link>
		<comments>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 02:58:03 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=975</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. HTTP Filtering From Part 10: Logging, you learn how to configure and use logging on ISA Server 2006. Now, you will [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a></li>
<li><a href='http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger'>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-975"></span></p>
<h3>HTTP Filtering</h3>
<p>From <a href="http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/">Part 10: Logging</a>, you learn how to configure and use logging on ISA Server 2006. Now, you will learn about HTTP filtering.</p>
<p><!--adsense#Square--></p>
<p>Have you ever want to block users using MSN or Yahoo messenger, or deny them to using free email services, or block them to post anything on web boards, or block them to use bit-torrent to download files? This post will answer these questions with Microsoft ISA Server 2006.</p>
<p>HTTP traffic is a data packet using HTTP protocol on the network which is used by most applications. On each packet of HTTP traffic, there is a header which contains information about server and client that are communicating each other at the time. These header information are such as:</p>
<ul>
<li>Request Methods. For example, GET, POST, CONNECT.</li>
<li>User-Agent, such as Mozilla/4.0, Mozilla/5.0, Firefox</li>
<li>Content-Type. The mime type of the body of the request, such as application/x-www-form-urlencoded, application/xml, image/jpeg, text/xml.</li>
<li>Host. The domain name of the server, for example, www.bing.com, www.linglom.com.</li>
</ul>
<p>For more information about HTTP, see these links from wiki.org: </p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/HTTP" target="_blank rel="nofollow">Hypertext Transfer Protocol</a></li>
<li><a href="http://en.wikipedia.org/wiki/List_of_HTTP_headers" target="_blank rel="nofollow">Lists of HTTP headers</a></li>
</ul>
<p>So why learn about these HTTP headers? You can use these HTTP headers information to block or allow specific application on ISA Server 2006. Still not get it? Let&#8217;s see some examples of real HTTP traffic.</p>
<p>You can use some sniffer program to capture data packets that pass in/out through a network interface card on a computer. On this example, I use <a href="http://www.ethereal.com/" target="_blank" rel="nofollow">Ethereal</a>. I install it on the same server as ISA Server 2006 but you can install and test on any computer as you want. Then, I start capturing packets on the network interface card that connects to the Internet and browse to http://www.bing.com using Internet Explorer.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_1.png" width="200" height="150" alt="Browse to Bing.com" title="Browse to Bing.com"  /></a></p>
<p>After that, I see these HTTP traffics on ethereal. First, My computer sends a HTTP request to the web server (www.bing.com).<br />
<strong>Detail:</strong> Request Method is <strong>GET</strong>. User-Agent is Mozilla/4.0 (compatible: MSIE 6.0). HOST is <strong>www.bing.com</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_2.png" width="200" height="54" alt="HTTP Request" title="HTTP Request"  /></a></p>
<p>Second, the web server has send HTTP response back to the client. The response packet looks similar as the figure below.<br />
<strong>Detail:</strong> Response Code is <strong>200 (OK)</strong>. Content-Type is <strong>text/html</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_3.png" width="200" height="97" alt="HTTP Response" title="HTTP Response"  /></a></p>
<h3>What&#8217;s Next?</h3>
<p>Now you learn some concepts about HTTP and its header. Next, I will show how to use these information to block Windows Live Messenger on ISA Server 2006. See <a href="http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/">Part 12: Block Windows Live Messenger</a>. </p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a></li>
<li><a href='http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger'>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 10: Logging</title>
		<link>http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/</link>
		<comments>http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 09:04:25 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=973</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Logging From Part 9: Client Configuration, you learn how to configure a client computer. On this post, I will show how [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><a name="top"></a><br />
This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-973"></span></p>
<h3>Logging</h3>
<p>From <a href="http://www.linglom.com/2009/11/25/getting-started-with-microsoft-isa-server-2006-part-9-client-configuration/">Part 9: Client Configuration</a>, you learn how to configure a client computer. On this post, I will show how to use logging to observe usage which is a feature on ISA Server 2006 which keeps track any usage on ISA Server 2006. </p>
<p><!--adsense#Square--></p>
<p>When there is a communication between networks (Internal, External, Localhost, etc.) on the ISA Server, it will generate log. The log shows the log time, source IP address, destination IP address and port, action, rule applied to, etc. You can configure what fields that you want to log. There are three log storage formats supported on ISA Server 2006: MSDE database, SQL database and file.</p>
<p>The benefits of logging:</p>
<ul>
<li>Track usage on certain users, groups.</li>
<li>Troubleshoot issues on the ISA Server.</li>
<li>Keep as Internet access log. In some countries, it is require to keep the Internet access log in order to comply with the law.</li>
</ul>
<h3>Step-by-step</h3>
<h4>Logging Configuration</h4>
<p>Actually, there is no need to configure logging on ISA Server 2006 because the configuration works great on default settings already. </p>
<ol>
<li>Open Logging by expand <strong>Arrays</strong> -> <strong>BKKISA001</strong> -> <strong>Monitoring</strong>. Click on <strong>Logging</strong> tab.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_1.png" width="200" height="127" alt="ISA Server Logging" title="ISA Server Logging"  /></a></li>
<li>To configure firewall logging, select <strong>Tasks</strong> -> <strong>Configure Firewall Logging</strong>.<br />
<em><strong>Note: </strong></em>You also can configure web proxy logging by click on <strong>Configure Web Proxy Logging</strong>. The configuration is the same as firewall logging so I will not repeat it.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_2.png" width="200" height="142" alt="Configure Firewall Logging" title="Configure Firewall Logging"  /></a></li>
<li>On <strong>Firewall Logging Properties</strong>, you can choose to keep log on MSDE, SQL Server or a file. The default configuration is MSDE database and the default location is C:\Program Files\Microsoft ISA Server\ISALogs. Let&#8217;s click on <strong>Options</strong> next to MSDE database to see what can be configured for MSDE database.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_3.png" width="200" height="222" alt="Firewall Logging Properties" title="Firewall Logging Properties"  /></a></li>
<li>On <strong>Options</strong>, you see that you can change location to store the log files and the log file storage limitation. You can limit the size of log files, maintain disk space by deleting the older log files or discard new entries and whether you want to delete log files after period of time.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_4.png" width="200" height="248" alt="Log MSDE Database Options" title="Log MSDE Database Options"  /></a></li>
<li>Back to <strong>Firewall Logging Properties</strong>, there is another tab, <strong>Fields</strong>. Here you can customize which fields you want to keep or discard on log files. Normally, you don&#8217;t have to modify these configuration. It works perfect by default.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_5.png" width="200" height="222" alt="Log Fields" title="Log Fields"  /></a></li>
</ol>
<h4>Observe Logging</h4>
<ol>
<li>On <strong>Logging</strong>, click on <strong>Start Query</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_6.png" width="200" height="137" alt="Start Query" title="Start Query"  /></a></li>
<li>Generate some traffic by access the Internet on the client computer. Open web browser and browse to www.google.com.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_7.png" width="200" height="150" alt="Access the Internet" title="Access the Internet"  /></a></li>
<li>Now you see some logs on the ISA Server 2006.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_8.png" width="200" height="137" alt="Logging on ISA Server 2006" title="Logging on ISA Server 2006"  /></a></li>
<li>You can filter logging on ISA Server 2006 by click on <strong>Edit Filter</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_9.png" width="200" height="137" alt="Open Edit Filter" title="Open Edit Filter"  /></a></li>
<li>On <strong>Edit Filter</strong>, modify columns and conditions as you want. Then, click <strong>Start Query</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/10.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_10.png" width="200" height="178" alt="Edit Filter" title="Edit Filter"  /></a></li>
<li>This is an example of the filtered logs on ISA Server 2006.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/11.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-10/_11.png" width="200" height="136" alt="The Filtered Result" title="The Filtered Result"  /></a></li>
</ol>
<h3>What&#8217;s Next?</h3>
<p>Now you learn how to observe logging on ISA Server 2006. It is a useful feature which allow you to troubleshoot issues most of the time. Next, I will show more advance topic, HTTP filtering. See <a href="http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/">Part 11: HTTP Filtering</a>.</p>
</div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[Solved] ActiveX component can&#8217;t create object: &#8216;SQLDMO.SQLServer&#8217; on SQL Server 2008</title>
		<link>http://www.linglom.com/2010/01/13/solved-activex-component-cant-create-object-sqldmo-sqlserver-on-sql-server-2008/</link>
		<comments>http://www.linglom.com/2010/01/13/solved-activex-component-cant-create-object-sqldmo-sqlserver-on-sql-server-2008/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 04:22:38 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL-DMO]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=1129</guid>
		<description><![CDATA[Problem If you execute a vb script which use SQL-DMO on SQL Server 2008, you will notice that the script doesn&#8217;t work at all. You will see the error message as similar to this one when you execute the vb script: Error: ActiveX component can&#8217;t create object: &#8216;SQLDMO.SQLServer&#8217; Code: 800A01AD Source: Microsoft VBScript runtime error [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Problem</h3>
<p>If you execute a vb script which use SQL-DMO on SQL Server 2008, you will notice that the script doesn&#8217;t work at all. </p>
<p><span id="more-1129"></span></p>
<p>You will see the error message as similar to this one when you execute the vb script:</p>
<blockquote><p>Error: ActiveX component can&#8217;t create object: &#8216;SQLDMO.SQLServer&#8217;<br />
Code: 800A01AD<br />
Source: Microsoft VBScript runtime error</p></blockquote>
<p><a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_1.png" width="250" height="97" alt="ActiveX component can't create object: 'SQLDMO.SQLServer'" title="ActiveX component can't create object: 'SQLDMO.SQLServer'"  /></a></p>
<h3>Cause</h3>
<p>This is because SQLDMO is deprecated since SQL Server 2005. But SQLDMO is installed on SQL Server 2005 by default so you can run a vb script which uses SQLDMO without any error on SQL Server 2005. On SQL Server 2008, SQLDMO is not installed by default . If you want to use SQLDMO, you have to install it manually.</p>
<p><!--adsense#Square--></p>
<h3>Solution</h3>
<p>To use SQL-DMO on SQL Server 2008, you need to download and install <strong>Microsoft SQL Server 2005 Backward Compatibility Components</strong> to solve the problem. You can go to <a href="http://www.microsoft.com/downloads" target="_blank" rel="nofollow">Microsoft Download Center</a> and search for &#8220;Microsoft SQL Server 2008 Feature Pack&#8221; and sort by Release Date to find the latest version. Or you can download at <a href="http://forum.linglom.com/index.php?topic=692" target="_blank">Linglom&#8217;s Download Page</a>.</p>
<h3>Step-by-step</h3>
<ol>
<li>Download <strong>Microsoft SQL Server 2005 Backward Compatibility Components</strong>. Next, execute the setup file.</li>
<li>On <strong>Welcome to the Install Wizard for Microsoft SQL Server 2005 Backward compatibility Setup</strong>, click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_2.png" width="250" height="188" alt="Microsoft SQL Server 2005 Backward compatibility Setup" title="Microsoft SQL Server 2005 Backward compatibility Setup"  /></a></li>
<li>On <strong>License Agreement</strong>, select &#8216;<strong>I accept the terms in the license agreement</strong>&#8216;. Then, click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_3.png" width="250" height="188" alt="License Agreement" title="License Agreement"  /></a></li>
<li>On <strong>Registration Information</strong>, enter your personal information. Then, click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_4.png" width="250" height="188" alt="Registration Information" title="Registration Information"  /></a></li>
<li>On <strong>Feature Selection</strong>, ensure that <strong>SQL Distributed Management Objects</strong> is selected. Then, click <strong>Next</strong>.<br />
<em><strong>Note:</strong></em> SQL-DMO is the feature that is require to run a vb script that uses DMO.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_5.png" width="250" height="188" alt="Feature Selection - SQL Distributed Management Objects (SQL-DMO)" title="Feature Selection - SQL Distributed Management Objects (SQL-DMO)"  /></a></li>
<li>On <strong>Ready to Install the Program</strong>, click <strong>Install</strong>.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_6.png" width="250" height="188" alt="Ready to Install the Program" title="Ready to Install the Program"  /></a></li>
<li>Installing Microsoft SQL Server 2005 Backward compatibility.<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_7.png" width="250" height="188" alt="Installing Microsoft SQL Server 2005 Backward compatibility" title="Installing Microsoft SQL Server 2005 Backward compatibility"  /></a></li>
<li>On <strong>Completing the Microsoft SQL Server 2005 Backward compatibility Setup</strong>, click <strong>Finish</strong>. Now try to run vb script again, the problem should be gone!<br />
<a href="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/SQL-Server/SQLDMO.SQLServer-on-SQL-2008/_8.png" width="250" height="188" alt="Completing the Microsoft SQL Server 2005 Backward compatibility Setup" title="Completing the Microsoft SQL Server 2005 Backward compatibility Setup"  /></a></li>
</ol>
<h3>Reference</h3>
<p><a href="http://blogs.msdn.com/dtjones/archive/2008/08/28/where-the-heck-is-dmo.aspx" target="_blank" rel="nofollow">Where the Heck is DMO?</a></p>
</div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2010/01/13/solved-activex-component-cant-create-object-sqldmo-sqlserver-on-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 9: Client Configuration</title>
		<link>http://www.linglom.com/2009/11/25/getting-started-with-microsoft-isa-server-2006-part-9-client-configuration/</link>
		<comments>http://www.linglom.com/2009/11/25/getting-started-with-microsoft-isa-server-2006-part-9-client-configuration/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 08:21:30 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=971</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Client Configuration From Part 8: Create Sample Access Rule, you have created an access rule on ISA Server 2006. Now, it [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/01/27/getting-started-with-microsoft-isa-server-2006-part-iv-configure-client-type/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part IV: Configure Client Type'>Getting started with Microsoft ISA Server 2006, Part IV: Configure Client Type</a></li>
<li><a href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><a name="top"></a><br />
This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-971"></span></p>
<h3>Client Configuration</h3>
<p>From <a href="http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/">Part 8: Create Sample Access Rule</a>, you have created an access rule on ISA Server 2006. Now, it is time to configure the client computer. There are three types of client that you can choose: <strong>SecureNAT</strong>, <strong>Firewall client</strong> and <strong>Web Proxy</strong>. Each type has a different features, see the table below for the comparison.</p>
<p>On this example, I configure the client computer as firewall client type. But you will see how to configure all types of client.</p>
<p><!--adsense#Square--></p>
<h4>Section</h4>
<ul>
<li><a href="#1">Client Types</a></li>
<li><a href="#2">SecureNAT client</a></li>
<li><a href="#3">Firewall client</a></li>
<li><a href="#4">Web Proxy client</a></li>
</ul>
<p><a name="1"></a></p>
<h4>Client Types</h4>
<p>The table below compares the ISA Server clients.</p>
<table border="1" cellspacing="1" cellpadding="0">
<tr>
<th width="25%">Feature Client types</th>
<th width="25%">SecureNAT client</th>
<th width="25%">Firewall client</th>
<th width="25%">Web Proxy client</th>
</tr>
<tr>
<td>Installation required</td>
<td>No, but some network configuration changes may be required</td>
<td>Yes</td>
<td>No, Web browser configuration required</td>
</tr>
<tr>
<td>Operating system support</td>
<td>Any operating system that supports Transmission Control Protocol/Internet Protocol (TCP/IP)</td>
<td>Only Windows platforms</td>
<td>All platforms, but by way of Web application</td>
</tr>
<tr>
<td>Protocol support</td>
<td>Application filters for multiple connection protocols required</td>
<td>All Winsock applications</td>
<td>Hypertext Transfer Protocol (HTTP), Secure HTTP (HTTPS), File Transfer Protocol (FTP), and Gopher</td>
</tr>
<tr>
<td>User-level authentication</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Server applications</td>
<td>No configuration or installation required</td>
<td>Configuration file required</td>
<td>Not applicable</td>
</tr>
</table>
<p><a href="#top">Back to top</a></p>
<p><a name="2"></a></p>
<h4>SecureNAT client</h4>
<ol>
<li>To configure client as SecureNAT client type, set the default gateway of the network interface card on client to the ISA Server.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_1.png" width="200" height="225" alt="Set Default Gateway" title="Set Default Gateway"  /></a></li>
<li>If you are using DHCP, you can configure by add <strong>Router</strong> scope option to the ISA Server.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_2.png" width="200" height="105" alt="Router Scope Option" title="Router Scope Option"  /></a></li>
</ol>
<p><a href="#top">Back to top</a></p>
<p><a name="3"></a></p>
<h4>Firewall client</h4>
<ol>
<li>Download <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=05C2C932-B15A-4990-B525-66380743DA89&#038;displaylang=en" target="_blank" rel="nofollow">Firewall Client for ISA Server</a> from Microsoft.</li>
<li>Install <strong>Microsoft Firewall Client</strong> on the client computer.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_3.png" width="200" height="154" alt="Setup Microsoft Firewall Client" title="Setup Microsoft Firewall Client"  /></a></li>
<li>On <strong>ISA Server Computer Selection</strong>, select <strong>Connect to this ISA Server computer</strong> and type the ISA Server host name.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_4.png" width="200" height="153" alt="ISA Server Computer Selection" title="ISA Server Computer Selection"  /></a></li>
<li>After the installation completes, you will see the firewall client&#8217;s icon on the task bar.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_5.png" width="200" height="154" alt="Firewall Client's Icon" title="Firewall Client's Icon"  /></a></li>
<li>You can view and modify configuration by double-click on the icon and select <strong>Settings</strong> tab. Also, you can click on <strong>Apply Default Settings Now</strong> for other users on this computer can use this configuration.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_6.png" width="200" height="225" alt="Settings on Microsoft Firewall Client for ISA Server" title="Settings on Microsoft Firewall Client for ISA Server"  /></a></li>
</ol>
<p><a href="#top">Back to top</a></p>
<p><a name="4"></a></p>
<h4>Web Proxy client</h4>
<ol>
<li>Open your web browser. On this example, I use Internet Explorer.</li>
<li>On <strong>Menu bar</strong>, Click on <strong>Tools</strong> -> <strong>Internet Options</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_7.png" width="200" height="150" alt="Open Internet Options" title="Open Internet Options"  /></a></li>
<li>On <strong>Internet Options</strong>, Select <strong>Connections</strong> tab and click on <strong>LAN settings</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_8.png" width="200" height="252" alt="Open LAN settings" title="Open LAN settings"  /></a></li>
<li>On <strong>Local Area Network (LAN) Settings</strong>, check the box <strong>Use a proxy server for your LAN</strong> and type the ISA Server address and port.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-9/_9.png" width="200" height="177" alt="Configure ISA Server as proxy server" title="Configure ISA Server as proxy server"  /></a></li>
</ol>
<p><a href="#top">Back to top</a></p>
<h3>What&#8217;s Next</h3>
<p>Now I have done the basic configuration on both ISA Server 2006 and the client computer. Next, it is time to test accessing the Internet from the client through the ISA Server. See <a href="http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/">Part 10: Logging</a>.</p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/01/27/getting-started-with-microsoft-isa-server-2006-part-iv-configure-client-type/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part IV: Configure Client Type'>Getting started with Microsoft ISA Server 2006, Part IV: Configure Client Type</a></li>
<li><a href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2009/11/25/getting-started-with-microsoft-isa-server-2006-part-9-client-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 8: Create Web Access Rule</title>
		<link>http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/</link>
		<comments>http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 03:06:51 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=969</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Create Firewall Policy Rule From Part 7: Create DNS Lookup Rule, you have create an access rule to allow DNS look [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/01/07/getting-started-with-microsoft-isa-server-2006-part-iii-create-firewall-policy-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule'>Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule</a></li>
<li><a href='http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 7: Create DNS Lookup Rule'>Getting started with Microsoft ISA Server 2006, Part 7: Create DNS Lookup Rule</a></li>
<li><a href='http://www.linglom.com/2009/10/27/getting-started-with-microsoft-isa-server-2006-part-6-configure-network-layout/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout'>Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-969"></span></p>
<h3>Create Firewall Policy Rule</h3>
<p>From <a href="http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/">Part 7: Create DNS Lookup Rule</a>, you have create an access rule to allow DNS look up from the internal network to the external DNS addresses. But you do not have any web access rule for users. So now, I will show how to create an access rule on ISA Server 2006 to allow HTTP and HTTPS protocols for a user to access the Internet.</p>
<p><!--adsense#Square--></p>
<h3>Step-by-step</h3>
<ol>
<li>On <strong>ISA Server Management</strong>, open <strong>Firewall Policy</strong> by expand <strong>Arrays</strong> -> <strong>BKKISA001</strong> -> <strong>Firewall Policy (BKKISA001)</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_1.png" width="200" height="120" alt="Open Firewall Policy" title="Open Firewall Policy"  /></a></li>
<li>On <strong>Firewall Policy</strong>, select <strong>Tasks</strong> and click on <strong>Create Access Rule</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_2.png" width="200" height="120" alt="Create Access Rule" title="Create Access Rule"  /></a></li>
<li>On <strong>Welcome to the New Access Rule Wizard</strong>, type a name for the access rule. On this example, I type &#8220;<strong>Allow HTTP, HTTPS for Linglom</strong>&#8221; and click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_3.png" width="200" height="153" alt="Welcome to the New Access Rule Wizard" title="Welcome to the New Access Rule Wizard"  /></a></li>
<li>On <strong>Rule Action</strong>, select <strong>Allow</strong> and click Next.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_4.png" width="200" height="153" alt="Set Action for Rule" title="Set Action for Rule"  /></a></li>
<li>On <strong>Protocols</strong>, you have to choose which protocols will be applied to this rule.
<ul>
<li>Select <strong>Selected protocols</strong> and click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_5.png" width="200" height="153" alt="Add Protocols to Rule" title="Add Protocols to Rule"  /></a></li>
<li>On <strong>Add Protocols</strong>, expand <strong>Common Protocols</strong> and double-click on <strong>HTTP</strong> and <strong>HTTPS</strong>. Then, click <strong>Close</strong> and click <strong>Next</strong> to continue.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_6.png" width="200" height="129" alt="Add HTTP and HTTPS to Rule" title="Add HTTP and HTTPS to Rule"  /></a></li>
</ul>
</li>
<li>On <strong>Access Rule Sources</strong>, select the source network for this rule.
<ul>
<li>Click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_7.png" width="200" height="153" alt="Add Source to Rule" title="Add Source to Rule"  /></a></li>
<li>On <strong>Add Network Entities</strong>, expand <strong>Network</strong> and double-click on <strong>Internal</strong>. Click <strong>Close</strong> and click <strong>Next</strong> to continue.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_8.png" width="200" height="129" alt="Add Internal Network as Source to Rule" title="Add Internal Network as Source to Rule"  /></a></li>
</ul>
</li>
<li>On <strong>Access Rule Destinations</strong>, do the same as the previous step but select <strong>External</strong> network as a destination.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_9.png" width="200" height="129" alt="Add External Network as Destination to Rule" title="Add External Network as Destination to Rule"  /></a></li>
<li>On <strong>User Sets</strong>, you have to select which users and groups are applied to this access rule. On this example, I want this rule apply to only a domain user account &#8211; <strong>linglom</strong>.
<ul>
<li>Remove <strong>All Users</strong> by click on <strong>Remove</strong> and add a new User Sets by click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/10.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_10.png" width="200" height="153" alt="Remove All Users" title="Remove All Users"  /></a></li>
<li>On <strong>Add Users</strong>, you see existing user sets available. There is no user set that I want so I will create a new one. Click <strong>New</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/11.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_11.png" width="200" height="311" alt="New User Set" title="New User Set"  /></a></li>
<li>On <strong>Welcome to the New User Set Wizard</strong>, type the name of a new user set that you want and click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/12.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_12.png" width="200" height="153" alt="New User Set Wizard" title="New User Set Wizard"  /></a></li>
<li>On <strong>Users</strong>, click <strong>Add</strong> -> <strong>Windows users and groups</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/13.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_13.png" width="200" height="148" alt="Add Windows Users" title="Add Windows Users"  /></a></li>
<li>On <strong>Select Users or Groups</strong>, select the users or groups that you want to add to this new user set. On this example, I select the domain user &#8211; linglom. Then, click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/14.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_14.png" width="200" height="106" alt="Select a User" title="Select a User"  /></a></li>
<li>You see that the user has been added to a new user set. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/15.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_15.png" width="200" height="153" alt="The User is Added to New User Set" title="The User is Added to New User Set"  /></a></li>
<li>On <strong>Completing the New User Set Wizard</strong>, click <strong>Finish</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/16.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_16.png" width="200" height="153" alt="Finish Create New User Set" title="Finish Create New User Set"  /></a></li>
<li>A new user set is created. The, select on it and click <strong>Add</strong> to add the new user set to this rule.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/17.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_17.png" width="200" height="311" alt="Add User Set to Rule" title="Add User Set to Rule"  /></a></li>
<li>Now the user set is added to the rule. So this rule will be apply to only this user &#8211; Linglom. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/18.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_18.png" width="200" height="153" alt="User Set is Added to Rule" title="User Set is Added to Rule"  /></a></li>
</ul>
</li>
<li>On <strong>Completing the New Access Rule Wizard</strong>, click <strong>Finish</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/19.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_19.png" width="200" height="153" alt="Completing the New Access Rule Wizard" title="Completing the New Access Rule Wizard"  /></a></li>
<li>Don&#8217;t forget to save the changes that you have made by click on <strong>Apply</strong> at the top.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/20.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_20.png" width="200" height="120" alt="Apply the Configuration" title="Apply the Configuration"  /></a></li>
<li>The changes have been saved. Click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/21.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_21.png" width="200" height="86" alt="Saving Configuration Changes" title="Saving Configuration Changes"  /></a></li>
<li>Now you see the rule that you have created.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/22.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-8/_22.png" width="200" height="107" alt="The New Access Rule" title="The New Access Rule"  /></a></li>
</ol>
<h3>What&#8217;s Next</h3>
<p>You have some access rules on ISA Server 2006. That&#8217;s it for the basic configuration on the sever. Next, I will start configure client to access the Internet through ISA Server 2006. See <a href="http://www.linglom.com/2009/11/25/getting-started-with-microsoft-isa-server-2006-part-9-client-configuration/">Part 9: Client Configuration</a>.</p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/01/07/getting-started-with-microsoft-isa-server-2006-part-iii-create-firewall-policy-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule'>Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule</a></li>
<li><a href='http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 7: Create DNS Lookup Rule'>Getting started with Microsoft ISA Server 2006, Part 7: Create DNS Lookup Rule</a></li>
<li><a href='http://www.linglom.com/2009/10/27/getting-started-with-microsoft-isa-server-2006-part-6-configure-network-layout/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout'>Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting started with Microsoft ISA Server 2006, Part 7: Create DNS Lookup Rule</title>
		<link>http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/</link>
		<comments>http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 08:14:12 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[ISA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=967</guid>
		<description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Create DNS Lookup Rule From Part 6: Configure Network Layout, you have configured network environment of the ISA Server 2006. Now [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/01/07/getting-started-with-microsoft-isa-server-2006-part-iii-create-firewall-policy-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule'>Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule</a></li>
<li><a href='http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 8: Create Web Access Rule'>Getting started with Microsoft ISA Server 2006, Part 8: Create Web Access Rule</a></li>
<li><a href='http://www.linglom.com/2009/10/27/getting-started-with-microsoft-isa-server-2006-part-6-configure-network-layout/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout'>Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p>
<p><span id="more-967"></span></p>
<h3>Create DNS Lookup Rule</h3>
<p>From <a href="http://www.linglom.com/2009/10/27/getting-started-with-microsoft-isa-server-2006-part-6-configure-network-layout/">Part 6: Configure Network Layout</a>, you have configured network environment of the ISA Server 2006. Now let&#8217;s create some access rules on ISA Server 2006. </p>
<p><!--adsense#Square--></p>
<p>On this example, I have internal and external DNS servers as I have shown the network diagram in <a href="http://www.linglom.com/2009/09/28/getting-started-with-microsoft-isa-server-2006-part-2-environment-setup/">Part 2: Environment Setup</a>. The internal DNS server should work fine since it is on the same network with clients &#8211; the Internal network. But the external DNS servers (or my ISP&#8217;s DNS servers) are on the external network. And currently, ISA Server 2006 blocks all network access so clients from the internal network cannot request any DNS look up from the external DNS servers. This would be a problem if some clients want to use the Internet. Therefore, I will create an access rule to allow DNS look up for clients on the internal network to the external DNS servers. The external DNS servers are 203.144.255.71 and 203.144.255.72.</p>
<h3>Step-by-step</h3>
<ol>
<li>On <strong>ISA Server Management</strong>, open Firewall Policy by expand <strong>Arrays</strong> -> <strong>BKKISA001</strong> -> <strong>Firewall Policy (BKKISA001)</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_1.png" width="200" height="131" alt="Open Firewall Policy" title="Open Firewall Policy"  /></a></li>
<li>Create a new access rule by click on <strong>Tasks</strong> tab -> <strong>Create Access Rule</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_2.png" width="200" height="131" alt="Create Access Rule" title="Create Access Rule"  /></a></li>
<li>On <strong>Welcome to the New Access Rule Wizard</strong>, type the access rule name. On this example, I type <strong>&#8220;Allow DNS Lookup&#8221;</strong> and click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_3.png" width="200" height="153" alt="Set Access Rule Name" title="Set Access Rule Name"  /></a></li>
<li>On <strong>Rule Action</strong>, you can select allow or deny on this rule. Select <strong>Allow</strong> and click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_4.png" width="200" height="153" alt="Set Rule Action to Allow" title="Set Rule Action to Allow"  /></a></li>
<li>On <strong>Protocols</strong>, you can select the protocols this rule applied to.
<ul>
<li>Choose <strong>Select protocols</strong> from a drop down menu and click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_5.png" width="200" height="153" alt="Add Protocol to Rule" title="Add Protocol to Rule"  /></a></li>
<li>On <strong>Add Protocols</strong>, expand <strong>Common Protocols</strong> and double-click on <strong>DNS</strong>. Click <strong>Close</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_6.png" width="200" height="163" alt="Add HTTP and HTTPS to Rule" title="Add DNS protocol to Rule"  /></a></li>
<li>Back to <strong>Protocols</strong>, now the DNS protocol is added to the rule. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_7.png" width="200" height="153" alt="The DNS protocol is added to the Rule" title="The DNS protocol is added to the Rule"  /></a></li>
</ul>
</li>
<li>On <strong>Access Rule Sources</strong>, you can specify source networks for this rule.
<ul>
<li>Click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_8.png" width="200" height="153" alt="Add Source Network" title="Add Source Network"  /></a></li>
<li>On <strong>Add Network Entities</strong>, expand <strong>Networks</strong> and double-click on <strong>Internal</strong>. Click <strong>Close</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_9.png" width="200" height="153" alt="Add Internal Network as Source" title="Add Internal Network as Source"  /></a></li>
<li>Back to <strong>Access Rule Sources</strong>, now the <strong>Internal</strong> network is added as access rule source. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/10.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_10.png" width="200" height="153" alt="The Internal Network is added as Source" title="The Internal Network is added as Source"  /></a></li>
</ul>
</li>
<li>On <strong>Access Rule Destination</strong>, you can specify destination networks for this rule.
<ul>
<li>Click <strong>Add</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/11.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_11.png" width="200" height="153" alt="Add Destination" title="Add Destination"  /></a></li>
<li>On <strong>Add Network Entities</strong>, click on <strong>New</strong> -> <strong>Address Range</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/12.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_12.png" width="200" height="311" alt="Add New Address Range" title="Add New Address Range"  /></a></li>
<li>On <strong>New Address Range Rule Element</strong>, type the name and specify the IP address range. On this example, I name it as <strong>&#8220;External DNS Addresses&#8221;</strong> and the IP address range is 203.144.255.71 to 203.144.255.72. Click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/13.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_13.png" width="200" height="157" alt="New Address Range Rule Element" title="New Address Range Rule Element"  /></a></li>
<li>Back to <strong>Add Network Entities</strong>, there is a new address range that I have just created so double-click on it to add to the rule and click <strong>Close</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/14.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_14.png" width="200" height="159" alt="Add an Address Range to Rule" title="Add an Address Range to Rule"  /></a></li>
<li>Back to <strong>Access Rule Destination</strong>, now the <strong>&#8220;External DNS Addresses&#8221;</strong> is added to the rule as access rule destination. Click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/15.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_15.png" width="200" height="153" alt="The Address Range is added to Rule as Destination" title="The Address Range is added to Rule as Destination"  /></a></li>
</ul>
</li>
<li>On <strong>User Sets</strong>, you can specify the user sets for the rule. On this example, I leave it as <strong>All Users</strong> and click <strong>Next</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/16.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_16.png" width="200" height="153" alt="Select All Users for Rule" title="Select All Users for Rule"  /></a></li>
<li>On <strong>Completing the New Access Rule Wizard</strong>, click <strong>Finish</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/17.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_17.png" width="200" height="153" alt="Finishing Create an Access Rule" title="Finishing Create an Access Rule"  /></a></li>
<li>To save changes that you have made, you must click on <strong>Apply</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/18.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_18.png" width="200" height="131" alt="Save Changes and Update Configuration" title="Save Changes and Update Configuration"  /></a></li>
<li>On <strong>Saving Configuration Changes</strong>, click <strong>OK</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/19.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_19.png" width="200" height="86" alt="Saving Configuration Changes" title="Saving Configuration Changes"  /></a></li>
<li>Now you have completed create an access rule to allow DNS look up from internal network to the external DNS server.<br />
<a href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/20.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-7/_20.png" width="200" height="126" alt="Access Rule is Created" title="Access Rule is Created"  /></a></li>
</ol>
<h3>What&#8217;s Next?</h3>
<p>You have created your first access rule for DNS look up. Now clients will be able to resolve name on the Internet. But there is no access rule for Internet access yet. So next, I will create another access rule for clients to access the Internet. See <a href="http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/">Part 8: Create Web Access Rule</a>.</p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/01/07/getting-started-with-microsoft-isa-server-2006-part-iii-create-firewall-policy-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule'>Getting started with Microsoft ISA Server 2006, Part III: Create Firewall Policy Rule</a></li>
<li><a href='http://www.linglom.com/2009/11/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 8: Create Web Access Rule'>Getting started with Microsoft ISA Server 2006, Part 8: Create Web Access Rule</a></li>
<li><a href='http://www.linglom.com/2009/10/27/getting-started-with-microsoft-isa-server-2006-part-6-configure-network-layout/' rel='bookmark' title='Permanent Link: Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout'>Getting started with Microsoft ISA Server 2006, Part 6: Configure Network Layout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2009/11/09/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
