<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Server Monkey &#187; Windows</title>
	<atom:link href="http://server-monkey.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://server-monkey.com</link>
	<description></description>
	<lastBuildDate>Sat, 22 Jan 2011 18:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Server 2003 &amp; 2008 &#8211; DHCP Mac Address Filtering</title>
		<link>http://server-monkey.com/2011/01/22/server-2003-2008-dhcp-mac-address-filtering/</link>
		<comments>http://server-monkey.com/2011/01/22/server-2003-2008-dhcp-mac-address-filtering/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 18:58:18 +0000</pubDate>
		<dc:creator>Quinntin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=146</guid>
		<description><![CDATA[Hello everyone! One thing I wanted to post about today was mac address filtering using DHCP on Windows Server 2003. The Microsoft DHCP team has a utility just for this called the Mac Filter Callout. It is essentially a DLL file, a .txt file and some registry settings that allow you to administer the DHCP filtering [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone! One thing I wanted to post about today was mac address filtering using DHCP on Windows Server 2003. The Microsoft DHCP team has a utility just for this called the Mac Filter Callout. It is essentially a DLL file, a .txt file and some registry settings that allow you to administer the DHCP filtering on your server. While MAC addresses can be spoofed &#8211; I think this is a good first step or even a good step depending on your environment (personally I am a fan of RADIUS authentication).</p>
<p>The tool is downloadable here <a href="http://blogs.technet.com/cfs-file.ashx/__key/CommunityServer-Components-PostAttachments/00-02-09-83-36/MacFilterCalloutInstaller.zip">http://blogs.technet.com/cfs-file.ashx/__key/CommunityServer-Components-PostAttachments/00-02-09-83-36/MacFilterCalloutInstaller.zip</a> It will install several files in the following locations MacFilterCallout.dll and SetupDHCPMacFilter.rtf to %SystemRoot\%system32 on a 32bit system and %SystemRoot%\SysWOW64 on a 64bit system.</p>
<p>Make the following registry changes:</p>
<p>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DHCPServer\Parameters</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="175">Key Name</td>
<td width="120">Key Type</td>
<td width="324">Description</td>
</tr>
<tr>
<td width="175">CalloutDlls</td>
<td width="120">REG_MULTI_SZ</td>
<td width="324">The location of the MacFilterCallout.dll</td>
</tr>
<tr>
<td width="175">CalloutEnabled</td>
<td width="120">DWORD</td>
<td width="324">0 = Disable MacFilterCallout<br />
1 = Enable MacFilterCallout</td>
</tr>
<tr>
<td width="175">CalloutErrorLogFile</td>
<td width="120">REG_MULTI_SZ</td>
<td width="324">Log path. If this registry key is not specified, callout dll will output errors %WINDIR%\System32\Log.txt</td>
</tr>
<tr>
<td width="175">CalloutInfoLogFile</td>
<td width="120">REG_MULTI_SZ</td>
<td width="324">Info log path. If this key is not present, no information messages will be logged.</td>
</tr>
<tr>
<td width="175">CalloutMACAddressListFile</td>
<td width="120">REG_MULTI_SZ</td>
<td width="324">This is the name and location of the MAC filtering list you&#8217;re going to be creating next.</td>
</tr>
</tbody>
</table>
<p> </p>
<p>Mac Address List format:</p>
<p>#MACList.txt</p>
<p>MAC_ACTION = {ALLOW / DENY}</p>
<p>#List of MAC Addresses:</p>
<p>000a0c0d1254     #lab-server1</p>
<p>000d0c4a6723     #lab-server2</p>
<ul>
<li>File supports comments. Comments can be entered following a ‘#’ sign. Any text followed by ‘#’ till the end of line is treated as a comment.</li>
<li>First line in the file (excluding comments) should specify the action. Action can be either ALLOW or DENY
<ul>
<li>When action is specified as ALLOW, all requests from MAC address present in this list will be served by DHCP servers. All requests originating from MAC address not present in this list will be ignored.</li>
<li>When action is specified as DENY, all request from MAC address present in the list will be ignored by DHCP servers. All requests from MAC addresses not present in this list will be severed by DHCP server.</li>
<li>Only one action out of ALLOW or DENY can be specified in MAC Address List File</li>
</ul>
</li>
<li>MAC address should be specified in format XXXXXXXXXXXX (where X can be hex digit 0 – F).There should not any delimiter such as -, : in MAC address. Each MAC address should be specified in separate line.</li>
<li>If there is any error in MAC Address List File, it will be logged into CalloutErrorLogFile or default error log file. Following is expected behavior of dll in cases of errors
<ul>
<li>If the action is not specified correctly, then DHCP server will function as if there is no callout dll i.e. none of the requests will be ignored.</li>
<li>If one or more MAC addresses are not specified correctly, then in this case those MAC address entries will be ignored. Error for the same will be logged in error log file.</li>
</ul>
</li>
</ul>
<p>Once you are ready to start using the Mac Address filtering and you have your registry changes and Mac Address List filled out the way you like go ahead and perform the following:</p>
<p>Stop the DHCP Servive</p>
<p>Start the DHCP service. When DHCP server is started, event 1033 will be logged if Callout DLL is loaded correctly by the DHCP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2011/01/22/server-2003-2008-dhcp-mac-address-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess to redirect domain to subfolder</title>
		<link>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/</link>
		<comments>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 22:47:06 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=74</guid>
		<description><![CDATA[Here&#8217;s a quick htaccess edit that will redirect your domain to a subfolder; RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick htaccess edit that will redirect your domain to a subfolder;</p>
<blockquote><p><strong>RewriteEngine On</strong></p>
<p><strong>Options +FollowSymlinks</strong></p>
<p><strong>RewriteBase /</strong></p>
<p><strong>RewriteCond %{HTTP_HOST} www.domainname [OR]</strong></p>
<p><strong>RewriteCond %{HTTP_HOST} domainname</strong></p>
<p><strong>RewriteCond %{REQUEST_URI} !subfolder/</strong></p>
<p><strong>RewriteRule ^(.*)$ subfolder/$1 [L]</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep your clocks in sync</title>
		<link>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/</link>
		<comments>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:13:32 +0000</pubDate>
		<dc:creator>Thor Erik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=59</guid>
		<description><![CDATA[An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230; Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol. Setting it up is easy: on RHEL/Fedora/CentOS: centos ~ # yum install ntp on Debian and debian based distributions: debian ~ [...]]]></description>
			<content:encoded><![CDATA[<p>An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230;</p>
<p>Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol.</p>
<p>Setting it up is easy:</p>
<p>on RHEL/Fedora/CentOS:</p>
<p>centos ~ # <em>yum install ntp</em></p>
<p>on Debian and debian based distributions:</p>
<p>debian ~ # <em>apt-get install ntp</em></p>
<p>(everything is root of course)</p>
<p>on debian you are done now, NTPD should be started, of course if you want to specify your own NTP server or NTP pool, you just edit /etc/ntp.conf</p>
<p>on RHEL it&#8217;s just a few more steps:</p>
<p><em>chkconfig ntpd on</em></p>
<p><em>ntpdate pool.ntp.org</em></p>
<p><em>/etc/init.d/ntpd start</em></p>
<p>and that should be it, please do know that if it&#8217;s a VPS forget about NTP, the system time is inherited from the host, unless you run it on a windows host(ex. Windows 2008 or in my debian server&#8217;s case, Windows 2008 R2 and using Hyper-V)</p>
<p>The error you get will be something like this:</p>
<p><em>ntpdate[18411]: step-systime: Operation not permitted</em></p>
<p>after trying to run <em>ntpdate pool.ntp.org</em></p>
<p>On Windows it&#8217;s all a hell lot easier(in gui that is)</p>
<p>Right click on the clock and choose Adjust time and date</p>
<p>go to the Internet time tab.</p>
<p>then click the button saying Change settings.</p>
<p>make sure the checkbox is checked, and if you prefer a different ntp server, change it from time.microsoft.com (but it&#8217;s good as well, NTP takes latency into account when setting clock)</p>
<p>Windows does not support ntp pools, so please define a proper NTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>.htaccess Generator</title>
		<link>http://server-monkey.com/2009/07/26/htaccess-generator/</link>
		<comments>http://server-monkey.com/2009/07/26/htaccess-generator/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 03:29:22 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=15</guid>
		<description><![CDATA[Simple script I made the other day that will generate the exact code you need to password protect a directory. Path is set for a plesk user&#8217;s httpdocs folder but can be modified as needed. http://server-monkey.com/htaccessgenerator]]></description>
			<content:encoded><![CDATA[<p>Simple script I made the other day that will generate the exact code you need to password protect a directory. Path is set for a plesk user&#8217;s httpdocs folder but can be modified as needed.</p>
<p><a href="http://server-monkey.com/htaccessgenerator">http://server-monkey.com/htaccessgenerator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/htaccess-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Plesk Admin Password from Shell</title>
		<link>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/</link>
		<comments>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 02:53:15 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=11</guid>
		<description><![CDATA[./ch_admin_passwd is Plesk&#8217;s utility to set the admin password. &#8220;Gets password from the environment variable PSA_PASSWORDPassword should be from 5 to 16 symbols and should not contain login name, whitespace, quotes or national characters&#8221; [root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’ [root@ServerMonkey bin]# echo $PSA_PASSWORD newpass [root@ServerMonkey bin]# ./ch_admin_passwd [root@ServerMonkey bin]# export PSA_PASSWORD= [root@ServerMonkey bin]# cat /etc/psa/.psa.shadow newpass [...]]]></description>
			<content:encoded><![CDATA[<p>./ch_admin_passwd is Plesk&#8217;s utility to set the admin password.</p>
<p>&#8220;<span style="font-weight: bold;">Gets password from the environment variable PSA_PASSWORD</span><br style="font-weight: bold;" /><span style="font-weight: bold;">Password should be from 5 to 16 symbols and should not contain login name,</span><span style="font-weight: bold;"> whitespace, quotes or national characters&#8221;</span></p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’</p>
<p>[root@ServerMonkey bin]# echo $PSA_PASSWORD</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]# ./ch_admin_passwd</p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=</p>
<p>[root@ServerMonkey bin]# cat /etc/psa/.psa.shadow</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]#</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

