<?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>Elvenhome eller no</title>
	<atom:link href="http://elvenhome.no/feed" rel="self" type="application/rss+xml" />
	<link>http://elvenhome.no</link>
	<description>tulletanker i tulleverden</description>
	<lastBuildDate>Tue, 27 Apr 2010 15:03:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>gotchas from likewise @ubuntu</title>
		<link>http://elvenhome.no/gotchas-from-likewise-ubuntu</link>
		<comments>http://elvenhome.no/gotchas-from-likewise-ubuntu#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:03:52 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://elvenhome.no/?p=73</guid>
		<description><![CDATA[Today I learned that to get likewise5 working on ubuntu, you should:

sudo aptitude install likewise-open5 likewise-open5-lsass
sudo joe /etc/samba/lwiauthd.confadd the line winbind use default domain = yes  so you can login without specifying domain in the domainname slash fashion.
sudo joe /etc/sudoersadd %DOMAIN.dns.NAME\\Group^name ALL=(ALL) ALL at the bottom to allow logins
sudo lw-update-dns
registerns the dns name with [...]]]></description>
			<content:encoded><![CDATA[<p>Today I learned that to get likewise5 working on ubuntu, you should:</p>
<ol>
<li><code>sudo aptitude install likewise-open5 likewise-open5-lsass</code></li>
<li><code>sudo joe /etc/samba/lwiauthd.conf</code><br/>add the line <br/><code>winbind use default domain = yes</code><br/>  so you can login without specifying domain in the domainname slash fashion.</li>
<li><code>sudo joe /etc/sudoers</code>add <code>%DOMAIN.dns.NAME\\Group^name ALL=(ALL) ALL</code><br/> at the bottom to allow logins</li>
<li><code>sudo lw-update-dns</code><br/><br />
registerns the dns name with you logonserver</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/gotchas-from-likewise-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fileupdater.vbs</title>
		<link>http://elvenhome.no/fileupdatervbs</link>
		<comments>http://elvenhome.no/fileupdatervbs#comments</comments>
		<pubDate>Mon, 30 Mar 2009 18:21:06 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policies]]></category>
		<category><![CDATA[VBscript]]></category>

		<guid isPermaLink="false">http://elvenhome.no/?p=59</guid>
		<description><![CDATA[
I mentioned earlier that I&#8217;m using a loginscript to sync the pac files to the local drive, but didn&#8217;t upload it at the time. Here it is anyhow &#8211; it&#8217;s probably not the most elegant solution, nor the one with least code; but it works for me. Used with a GPO that sets the path [...]]]></description>
			<content:encoded><![CDATA[<p><img class="ngg-singlepic ngg-right alignright" src="http://elvenhome.no/wp/wp-content/gallery/screencaps/localproxypac.png" alt="localproxypac.png" width="384" height="332" /><br />
I mentioned earlier that I&#8217;m using a loginscript to sync the pac files to the local drive, but didn&#8217;t upload it at the time. Here it is anyhow &#8211; it&#8217;s probably not the most elegant solution, nor the one with least code; but it works for me. Used with a <acronym title="Group Policy Object">GPO</acronym> that sets the path locally, it&#8217;s a fairly flexible way of controlling internet access.</p>
<p>Basically, you call it like this:</p>
<p>fileupdater.vbs /i:input.txt /o:target.txt</p>
<p>The locations can be anything the vbScript FileSystemObject is able of accessing with the credentials running it &#8211; both local drives and unc-paths.</p>
<p><a href="http://elvenhome.no/wp/wp-content/uploads/2009/03/fileupdater.vbs">fileupdater.vbs</a><br />
I also use the script to push any changes in the PAC file into the netlogon directory (runas domain admin):</p>
<pre>C:\scripting&gt;fileupdater.vbs /v /i:C:\conf\proxy.pac /o:\\%USERDNSDOMAIN%\netlogon\proxypriv.pac
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

output file created: 27.03.2009 11:04:17 modified: 27.03.2009 11:17:15
input file created: 16.12.2008 03:24:19 modified: 28.03.2009 14:54:51
updating file</pre>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/fileupdatervbs/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>applying gpo based IE settings &#8211; and all that jazz</title>
		<link>http://elvenhome.no/applying-gpo-based-ie-settings-and-all-that-jazz</link>
		<comments>http://elvenhome.no/applying-gpo-based-ie-settings-and-all-that-jazz#comments</comments>
		<pubDate>Fri, 27 Mar 2009 16:31:49 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policies]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[nettverk]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://elvenhome.no/?p=29</guid>
		<description><![CDATA[So back in the late nineties, with Microsoft releasing Windows 2000 server and Workstation, they&#8217;d got the news that administrators needed a way of keeping check of users&#8217; computer settings and such. So they make Group Policy Objects and ADM templates available for deployment in Active Directory. A GPO contains Computer and User settings and [...]]]></description>
			<content:encoded><![CDATA[<p>So back in the late nineties, with Microsoft releasing Windows 2000 server and Workstation, they&#8217;d got the news that administrators needed a way of keeping check of users&#8217; computer settings and such. So they make Group Policy Objects and ADM templates available for deployment in Active Directory. A <acronym title="Group Policy Object">GPO</acronym> contains Computer and User settings and are read from %Logonserver%\SysVol\%userdnsdomain%\Policies\, parsed and showed into the registry.
<a href="http://elvenhome.no/wp/wp-content/gallery/screencaps/standard-gpo2.png" title="" class="shutterset_singlepic4" >
	<img class="ngg-singlepic ngg-right" src="http://elvenhome.no/wp/wp-content/gallery/cache/4__x_standard-gpo2.png" alt="standard-gpo2.png" title="standard-gpo2.png" />
</a>
 Computer settings go under HKEY_LOCAL_MACHINE\SOFTWARE\Policies and user settings reside in HKEY_CURRENT_USER\Software\Policies. You can apply <acronym title="Group Policy Object">GPO</acronym>&#8217;s to particular Organizational Units in <acronym title="Active Directory">AD</acronym>, decide what groups should have access to them and filter based on <acronym title="Windows Management Instrumentation">WMI</acronym>. When you first create your <acronym title="Active Directory">AD</acronym>-forest, each domain are asigned a couple of standard GPOs, &#8220;Default Domain Policy&#8221; and &#8220;Default Domain Controllers Policy&#8221;. They contain <acronym title="Microsoft">MS</acronym>&#8217; standard settings for computers and <acronym title="Domain Controller">DC</acronym>&#8217;s. The first are linked to the root of your domain, while the other is linked to the Domain Controllers OU.</p>
<p>The standard way <acronym title="Microsoft">MS</acronym> have these settings exposed, it what you see above. And it works pretty well, what the radio buttons do is rather self-explanatory. As long as the policy is either &#8220;Not Configured&#8221; or &#8220;Disabled&#8221;, the sub-items are disabled and can&#8217;t be set. You even have a &#8220;Explain&#8221; tab to the right there, that goes into detail about what the ramifications of using this particular option is.</p>
<h2>Now, enter the stinking pile of turd, that is <acronym title="Internet Explorer">IE</acronym>-profiles.</h2>
<p>Thing is, you see, <acronym title="Group Policy Object">GPO</acronym>&#8217;s can be done as above &#8211; or they might be extended with com-objects, dlls or probably pretty much anything. The reason why this is a setup for epic failure is because this makes for controls that don&#8217;t behave as expected, or might very well leave behind junk in <acronym title="Group Policy Object">GPO</acronym>&#8217;s &#8211; <a title="MS' knowledgebase 286251" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;286251" target="_blank">that basically can&#8217;t be deleted</a>! Now, couple that with this: <a title="MS' knowledgebase 910201" href="http://support.microsoft.com/kb/910201" target="_blank">The Default Domain Policy also cannot be deleted</a>!<br />

<a href="http://elvenhome.no/wp/wp-content/gallery/screencaps/empty ieak.png" title="" class="shutterset_singlepic9" >
	<img class="ngg-singlepic ngg-right" src="http://elvenhome.no/wp/wp-content/gallery/cache/9__301x142_empty ieak.png" alt="empty ieak.png" title="empty ieak.png" />
</a>
</p>
<p>Yay &#8211; you&#8217;ve got yourself a real super-ghost-gpo-setting.. To check for this überpolicy, look for the folder %Logonserver%\SysVol\%userdnsdomain%\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\USER\MICROSOFT\IEAK\.</p>
<p>Solution to this issue? I&#8217;ve looked quite a bit, and the closest I came was <a title="dcGpoFix: Group Policies" href="http://technet.microsoft.com/en-us/library/cc772811.aspx" target="_blank">this tool made by ms called dcgpofix</a>. Basically, it b0rkes the policy of choice (either one of them, or both), and creates a new with the defaults. <a title="MS' knowledgebase 833783" href="http://support.microsoft.com/kb/833783" target="_blank">Then it applies the security policies that youd normally have after a blank adprep</a>. In other words: all security-settings you might have made on the server before initiating the domain will be lost. In most cases this won&#8217;t matter much, but be sure to write down any specifics you might have so you can manually apply them afterwards. Ms advices against using this tool, unless it&#8217;s the very last resort. I&#8217;ve used it on a domain that thankfully didn&#8217;t have many changes made to it other than the ghost-proxy-thingie &#8211; in Default Domain policy.
<a href="http://elvenhome.no/wp/wp-content/gallery/screencaps/gpo fuckup ie settings.png" title="" class="shutterset_singlepic10" >
	<img class="ngg-singlepic ngg-left" src="http://elvenhome.no/wp/wp-content/gallery/cache/10__372x167_gpo fuckup ie settings.png" alt="gpo fuckup ie settings.png" title="gpo fuckup ie settings.png" />
</a>
</p>
<h2>Things to consider:</h2>
<p><strong>Never ever</strong>, shall you make changes to &#8220;Default Domain Policy&#8221; nor &#8220;Default Domain Controllers Policy&#8221; beyond the ones that&#8217;s defined by default. They <strong>cannot</strong> be reset, undone or fixed in any practical way, should the setting do unexpected stuff. And as stated above, <acronym title="Group Policy Object">GPO</acronym>&#8217;s might be extended to do unexpected things when you least want it to. For instance, both some <acronym title="Internet Explorer">IE</acronym> settings as well as the Wlan settings parts of <acronym title="Group Policy Object">GPO</acronym> rely partially on external programs/tools to function. You might also experience that working on a <acronym title="Group Policy Object">GPO</acronym> <a title="Local settings affected by GPO editing" href="http://www.gpoguy.com/FAQs/tabid/57/agentType/ViewType/PropertyTypeID/8/Default.aspx#20" target="_blank">suddenly changes local settings</a> &#8211; now wth? Again: be extremly careful when editing these gpo&#8217;s, leave the defaults alone unless you have to alter the already defined settings.</p>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/applying-gpo-based-ie-settings-and-all-that-jazz/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pac files &#8211; automatic proxy configuration from hell</title>
		<link>http://elvenhome.no/pac-files-automatic-proxy-configuration-from-hell</link>
		<comments>http://elvenhome.no/pac-files-automatic-proxy-configuration-from-hell#comments</comments>
		<pubDate>Tue, 16 Dec 2008 20:15:18 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[nettverk]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://elvenhome.no/pac-files-automatic-proxy-configuration-from-hell</guid>
		<description><![CDATA[A pac file is a javascript-file written to automatically configure browsers for use with proxies. It was primarily intended for use in larger networks, but is also useful for laptops that roam several locations. This file is also used as a WPAD-file, short for Web Proxy Autodiscovery Protocol.
The file might reside either on the network, [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://en.wikipedia.org/wiki/Proxy_auto-config">pac file</a> is a javascript-file written to automatically configure browsers for use with proxies. It was primarily intended for use in larger networks, but is also useful for laptops that roam several locations. This file is also used as a <acronym title="Web Proxy Autodiscovery Protocol">WPAD</acronym>-file, short for <a href="http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol" target="_blank">Web Proxy Autodiscovery Protocol</a>.</p>
<p>The file might reside either on the network, on a local  disk or in the case of being used as <acronym title="Web Proxy Autodiscovery Protocol">WPAD</acronym>, on a webserver. The use of dns and <acronym title="Dynamic Host Configuration Protocol">dhcp</acronym> for locating proxy settings requires the browser to have &#8220;Automatically detect settings&#8221; selected. Going this route is problematic in several ways, both because of the way clients attempt to locate the pac file and because of the time involved locating settings in this fashion.</p>
<p>The browser will first check if <acronym title="Dynamic Host Configuration Protocol">dhcp</acronym>-option 252 is configured and use the string provided. If there is no such entry the next check is against the primary dns, looking for the wpad host (in several iterations based on primary dns-suffix). If found, it then continues to retrieve wpad.dat from the host over http, expecting the mime-type of &#8220;application/x-ns-proxy-autoconfig&#8221;. (<a href="http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol#Requirements">details</a>)</p>
<p>This method is both error prone as well as it leaves quite a bit wanting in terms of <a href="http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol#Security">security </a>(what happens if someone checks in a host to your network with a malicious file?). When we outsourced the scanning of mail- and web-content at work lately we chose to go another route, because of these insufficiencies.</p>
<p>The use of pac-files is intriguing, because of the flexibility they present in choosing how to connect to the web. As we don&#8217;t want to put our pac online on a webserver for anyone to access, nor are we interested in the time needed to fetch it, we opted for placing the pac locally on the computer.</p>
<p>To distribute the settings at work I used a combination of <acronym title="Group Policy Object">GPO</acronym>&#8217;s, a vbscript that updates the pac, and the NETLOGON fileshare on our <acronym title="Domain Controller">DC</acronym>&#8217;s. The <acronym title="Group Policy Object">GPO</acronym> configures Internet connection settings for <acronym title="Internet Explorer">IE</acronym>, and launches a vbscript upon logon that updates the local copy of the pac-file if the network version have a newer modify-stamp than the local file have.</p>
<p>The pac file itself have a few predefined functions and variables exposed, where I the most useful ones these:</p>
<ul>
<li><strong>host</strong> &#8211; host being connected to.</li>
<li><strong>url</strong> &#8211; address to be retrieved.</li>
<li><strong>myIpAddress()</strong> &#8211; returns the <acronym title="Internet Protocol">IP</acronym> address (in integer-dot format) of the network adapter <span style="text-decoration: underline;"><em><strong> that have the highest priority on the host</strong></em></span>, that the browser is running on.</li>
<li><strong>isInNet(</strong>host, network, subnet<strong>)</strong> &#8211; determines if the given host resides on the specified network.</li>
<li><strong>dnsDomainIs(</strong>host, dns-suffix<strong>)</strong> &#8211; attempts to decide if host belongs to domain.</li>
<li><strong>isPlainHostName(</strong>host<strong>) </strong>- returns true if host doesn&#8217;t contain any dots.</li>
</ul>
<p>Basically, what I needed from my pac, was for it to decide what network segment the client resided on (if any), and connect to the appropriate proxy (if not accessing a resource on the Intranet).</p>
<p><span style="text-decoration: line-through;">To archive this, my pac-file ended up more or less like this:</span></p>
<ul>
<li><strong>UPDATE:</strong> Symantec MessageLabs provides an excellent solution for solving content filtering and viral threats from the net, and I&#8217;ve had a very positive experience using their services. Building on their template pac, the following is now what is in use. It should be fairly easy to customize it for an enviroment without them too;)</li>
</ul>
<pre>// ********************************************************************
// template.txt: Version 3.1
// slight edits for clarity
//
// Proxy Auto-Config (PAC) template file for web browser and roaming
// users. Follow the instruction through this configuration file to
// update for your specific environment.
//
// Notes:
// - "host" refers to the host portion of the <acronym title="Uniform Resource Locator">URL</acronym> being requested (i.e.
//	everything after the :// at the beginning of the <acronym title="Uniform Resource Locator">URL</acronym> up to the
//	first colon (:) or slash (/) (e.g. www.example.com).
// - "url" refers to the entire <acronym title="Uniform Resource Locator">URL</acronym> being requested. This includes
//	the protocol and file (e.g. http://www.example.com/index.html).
// - Microsoft <acronym title="Internet Explorer">IE</acronym> processes the PAC file once per hostname and caches
//	the result. You cannot have different behaviour for the same
//	hostname (e.g. http://www.example.com/index.html must be
//	directed to the same proxy as http://www.example.com/foo.html).
// - isInNet will perform a <acronym title="Domain Name Server">DNS</acronym> lookup for non <acronym title="Internet Protocol">IP</acronym> addresses. Ensure the
//	host is a raw <acronym title="Internet Protocol">IP</acronym> before using this function.
// - For debugging, set the debug variable to true.
// ********************************************************************

function FindProxyForURL(url, host)
{
	var debug = true;
	var direct = "DIRECT";

	// Proxy addresses by region.
	var proxy1_eu = "PROXY proxy1.eu.webscanningservice.com:3128";
	var proxy1_us = "PROXY proxy1.us.webscanningservice.com:3128";
	var proxy2_us = "PROXY proxy2.us.webscanningservice.com:3128";
	var proxy1_ap = "PROXY proxy1.ap.webscanningservice.com:3128";
	var proxy1_hk = "PROXY proxy1.hk.webscanningservice.com:3128";

	// *****************************************************************
	// Proxy address for roaming users, specify the appropriate region
	// *****************************************************************
	var roaming1_eu = "PROXY roaming1.eu.webscanningservice.com:80";
	var roaming1_us = "PROXY roaming1.us.webscanningservice.com:80";
	var roaming2_us = "PROXY roaming2.us.webscanningservice.com:80";
	var roaming1_ap = "PROXY roaming1.ap.webscanningservice.com:80";
	var roaming = roaming1_eu;

	// *****************************************************************
	// Specify your CSP address if applicable, one line for each
	// distinct company subnet.
	// *****************************************************************
	var site1 = "PROXY 192.168.2.10:3128";
	var site3 = "PROXY 192.168.105.20:3128";
	var site2 = "PROXY 192.168.1.3:8080";

	// Source <acronym title="Internet Protocol">IP</acronym> address.
	var myIp = myIpAddress();
	var anet = "255.0.0.0"
	var bnet = "255.255.0.0"
	var cnet = "255.255.255.0"	

	// If the host is this computer, connect directly
	if ((host == "localhost") ||
		 (host == "localhost.localdomain") ||
		 (host == "127.0.0.1"))
	{
		if (debug) alert("PAC: DIRECT: localhost: " + host);
		return direct;
	}

	// If host name is local (i.e. contains no dots), connect directly.
	if (isPlainHostName(host))
	{
		if (debug) alert("PAC: DIRECT: plain host: " + host);
		return direct;
	}

	// If host name is part of the IANA private <acronym title="Internet Protocol">IP</acronym> address ranges, connect
	// directly.
	if (/^\d+\.\d+\.\d+\.\d+$/.test(host) &amp;&amp;
			(isInNet(host, "10.0.0.0", anet) ||
			 isInNet(host, "169.0.0.0", anet) ||
			 isInNet(host, "172.16.0.0", "255.240.0.0") ||
			 isInNet(host, "192.168.0.0", bnet)))
	{
		if (debug) alert("PAC: DIRECT: IANA private network: " + host);
		return direct;
	}

	// *****************************************************************
	// Specify remote URLs that are trusted and don't require proxying
	// and should be bypassed when roaming.
	// *****************************************************************
	if (shExpMatch(host, "*.download.microsoft.com") ||
		 shExpMatch(host, "*.windowsupdate.com") ||
		 shExpMatch(host, "*.windowsupdate.microsoft.com") ||
		 shExpMatch(host, "windowsupdate.microsoft.com") ||
		 shExpMatch(host, "*.update.microsoft.com") ||
		 shExpMatch(host, "update.microsoft.com"))
	{
		if (debug) alert("PAC: BYPASS: Windows Update: " + host);
		roaming = direct;
	}

	// *****************************************************************
	// Specify VPN ranges, one line for each VPN range.
	// When using a VPN, proxying is done through roaming proxy.
	// *****************************************************************
	// if (isInNet(myIp, "&lt;VPN <acronym title="Internet Protocol">IP</acronym> 1&gt;", "&lt;VPN Mask&gt;" )) { if(debug) alert("PAC: ROAMING: VPN1: " + host); return roaming; }
	// if (isInNet(myIp, "&lt;VPN <acronym title="Internet Protocol">IP</acronym> 2&gt;", "&lt;VPN Mask&gt;" )) { if(debug) alert("PAC: ROAMING: VPN1: " + host); return roaming; }

	// *****************************************************************
	// Specify local FQDNs which do not require proxying, one line per
	// expression. Shell expression patterns can be used.
	// *****************************************************************
	// if (shExpMatch(host, "&lt;Local FQDN 1&gt;")) { if(debug) alert("PAC: ROAMING: Local FQDN 1: " + host); return direct; }
	// if (shExpMatch(host, "&lt;Local FQDN 2&gt;")) { if(debug) alert("PAC: ROAMING: Local FQDN 1: " + host); return direct; }

	// *****************************************************************
	// Specify company subnet source <acronym title="Internet Protocol">IP</acronym> address ranges which require
	// proxying, one line per expression. Specify adequate proxy region
	// or CSP address for each range.
	// *****************************************************************
	// if (isInNet(myIp, "&lt;Subnet <acronym title="Internet Protocol">IP</acronym> 1&gt;", "&lt;Subnet Mask&gt;")) { if(debug) alert("PAC: ROAMING: Subnet 1: " + host); return &lt;proxy_region1&gt;; }
	if (isInNet(myIp,"192.168.2.0",	cnet)) 				{if(debug) alert("PAC: proxy site 1: " + host); 			return site1; }
	if (isInNet(myIp,"192.168.112.0",	cnet)) 				{if(debug) alert("PAC: site without local proxy: " + host); 		return roaming;}
	if (isInNet(myIp,"192.168.104.0",	cnet)) 				{if(debug) alert("PAC: proxy site2: " + host);	 		return site2; }
	if (isInNet(myIp,"192.168.105.0",	cnet)) 				{if(debug) alert("PAC: proxy site3: " + host); 				return site3; }

	// When outside company subnet, connect to roaming proxy.
	if (debug &amp;&amp; roaming != direct) alert("PAC: ROAMING: Default: " + host);
	return roaming;
}</pre>
<p>To recap, pac files are good for determining what proxy to use, as long as:</p>
<ul>
<li>your confident that the network adapter priority is sane. For me this means this from the top down: Cisco VPNvirtual interface, Wired Lan, Wireless Lan, RAS and last the RNDIS-connector from windows mobile (to set this up, go to control panel-&gt;Network Connections-&gt;Advanced Menu in windows explorer-&gt;Advanced Setting, from there select the nic and use the up/down arrows)</li>
<li>You don&#8217;t use Google Chrome</li>
<li>Deploy config using some other method than dns/<acronym title="Dynamic Host Configuration Protocol">dhcp</acronym> &#8211; they are both slow an insecure.</li>
</ul>
<p>references/sources:</p>
<p><a href="http://nscsysop.hypermart.net/proxypac.html" target="_blank">page with several examples</a></p>
<p><a href="http://www.mercenary.net/blog/index.php?/archives/42-HOWTO-WPAD.html" target="_blank">mercenary blog on subject</a></p>
<p><a href="http://www.microsoft.com/technet/prodtechnol/ie/ieak/techinfo/deploy/60/en/corpexjs.mspx?mfr=true" target="_blank"><acronym title="Microsoft">MS</acronym> example page</a></p>
<p><a href="http://blog.freyguy.com/archives/2006/03/01/proxy-auto-detect-ie-and-firefox/" target="_blank">freyguy blog on subject</a></p>
<p><a title="someone set up a domain detailing much of the same stuff" href="http://www.findproxyforurl.com/" target="_blank">http://www.findproxyforurl.com/</a></p>
<p><a href="http://www.wrec.org/Drafts/draft-cooper-webi-wpad-00.txt">Web Proxy Auto-Discovery Protocol                     draft-cooper-webi-wpad-00.txt </a></p>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/pac-files-automatic-proxy-configuration-from-hell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>babelfish + serverkrasj + kinesere som ikke kan engelsk = lawl</title>
		<link>http://elvenhome.no/babelfish-serverkrasj-kinesere-som-ikke-kan-engelsk-lawl</link>
		<comments>http://elvenhome.no/babelfish-serverkrasj-kinesere-som-ikke-kan-engelsk-lawl#comments</comments>
		<pubDate>Sun, 03 Aug 2008 09:55:51 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[phunniez from teh webs]]></category>

		<guid isPermaLink="false">http://elvenhome.no/babelfish-serverkrasj-kinesere-som-ikke-kan-engelsk-lawl</guid>
		<description><![CDATA[AdFreak: Then we&#8217;ll grab a bite at 404 Not Found
]]></description>
			<content:encoded><![CDATA[<p><a href="http://adweek.blogs.com/adfreak/2008/07/then-well-grab.html">AdFreak: Then we&#8217;ll grab a bite at 404 Not Found</a><br /><img style="max-width: 800px;" src="http://adweek.blogs.com/adfreak/images/2008/07/10/translateservererror.jpg" /><br />
<blockquote></blockquote>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/babelfish-serverkrasj-kinesere-som-ikke-kan-engelsk-lawl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco PIX + MS IAS = using ldap credentials across the floor</title>
		<link>http://elvenhome.no/cisco-pix-ms-ias-using-ldap-credentials-across-the-floor</link>
		<comments>http://elvenhome.no/cisco-pix-ms-ias-using-ldap-credentials-across-the-floor#comments</comments>
		<pubDate>Fri, 01 Aug 2008 06:59:02 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[PIX]]></category>
		<category><![CDATA[nettverk]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://elvenhome.no/cisco-pix-ms-ias-using-ldap-credentials-across-the-floor</guid>
		<description><![CDATA[Never had the need to set up anything Radius-related before, so that&#8217;ll be a bit interesting. Theres been talk about getting some sort of SSO system into the works at my new job, so I guess this&#8217;ll be part of it.
blindhog.net » Cisco AAA login authentication with Radius (MS IAS)
]]></description>
			<content:encoded><![CDATA[<p>Never had the need to set up anything Radius-related before, so that&#8217;ll be a bit interesting. Theres been talk about getting some sort of SSO system into the works at my new job, so I guess this&#8217;ll be part of it.</p>
<p><a href="http://www.blindhog.net/cisco-aaa-login-authentication-with-radius-ms-ias/">blindhog.net » Cisco AAA login authentication with Radius (<acronym title="Microsoft">MS</acronym> IAS)</a><br />
<blockquote></blockquote>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/cisco-pix-ms-ias-using-ldap-credentials-across-the-floor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco PIX and other curiosities</title>
		<link>http://elvenhome.no/cisco-pix-and-other-curiosities</link>
		<comments>http://elvenhome.no/cisco-pix-and-other-curiosities#comments</comments>
		<pubDate>Wed, 30 Jul 2008 07:32:40 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[PIX]]></category>
		<category><![CDATA[nettverk]]></category>

		<guid isPermaLink="false">http://elvenhome.no/cisco-pix-and-other-curiosities-2</guid>
		<description><![CDATA[I recently started a new job as ICT Manager for a medium sized international company. At the core of our network here, we&#8217;ve got Cisco PIX boxen. As the need for being able of punching a hole in the firewall arises at times, I&#8217;ve got to get my head around the proparitary cisco os it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started a new job as ICT Manager for a medium sized international company. At the core of our network here, we&#8217;ve got Cisco <acronym title="Private Internet eXchange">PIX</acronym> boxen. As the need for being able of punching a hole in the firewall arises at times, I&#8217;ve got to get my head around the proparitary cisco os it&#8217;s running (nope, it&#8217;s not IOS).</p>
<p>The <a href="http://en.wikipedia.org/wiki/Cisco_PIX" target="_blank">Cisco <acronym title="Private Internet eXchange">PIX</acronym></a> product line was introduced in 1994 as a &#8220;call-center for your internets&#8221;, the abbreviation meaning &#8220;Private Internet eXchange&#8221; (playing on familiar need for a PBX (Private Branch eXchange) for telephone systems). The products have since then gone through several redesigns and iterations, before getting the final blow this January when the end-of-sales and end-of-life dates announced by Cisco. <a href="http://en.wikipedia.org/wiki/Cisco_ASA" target="_blank">Cisco ASA</a> (Adaptive Security Appliance) is the successor of <acronym title="Private Internet eXchange">PIX</acronym> (IDP 4.2k and vpn 3k concentrators) and it&#8217;s using <acronym title="Private Internet eXchange">PIX</acronym> <acronym title="Operating System">OS</acronym> 7.0 (Finesse), and later in 8.0 moves over to a linux kernel with proparitary tools and programs.</p>
<p>For starters, I&#8217;ve found a <a href="http://www.gns3.net/" target="_blank"><acronym title="Private Internet eXchange">PIX</acronym> system emulator called GNS3</a> that&#8217;ll let you fetch binary images and run them locally, to test out commands and configurations before taking down the corp network. There are a few tutorials out there, this one presumably covers the basics: <a href="http://www.secmanager.com/how_to_configure_pix_firewall_part1" target="_blank">How to configure Cisco <acronym title="Private Internet eXchange">PIX</acronym> firewall</a>. When you&#8217;ve tried that without any luck, you could even move on to <a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/overvw.html" target="_blank">The official documentation</a> (<span class="content"><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/bafwcfg.html">Basic Firewall Configuration, </a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/mngacl.html">Managing Network Access and Use, </a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/ipsecint.html">Basic VPN Configuration, </a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/sysmgmt.html"><acronym title="Private Internet eXchange">PIX</acronym> Firewall System Management, </a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/failover.html">Using <acronym title="Private Internet eXchange">PIX</acronym> Firewall Failover, </a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/upgrade.html">Upgrading <acronym title="Private Internet eXchange">PIX</acronym> Firewall Software</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/cfgforms.html">, Firewall Configuration Form</a></span> <span class="content"> Also as pdf&#8217;s:<a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/overvw.pdf">1</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/bafwcfg.pdf">2</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/mngacl.pdf">3</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/ipsecint.pdf">4</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/sysmgmt.pdf">5</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/failover.pdf">6</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/upgrade.pdf">7</a><a href="http://www.cisco.com/en/US/docs/security/pix/pix61/configuration/guide/cfgforms.pdf">8</a></span>). Oh, and then you have <a href="http://www.routergod.com/deniserichards/" target="_blank">this nsfw step-by-step guide.</a> <a href="http://www.secmanager.com/how_to_configure_pix_firewall_part1" target="_blank">This one</a>, on the other hand, is safe for work</p>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/cisco-pix-and-other-curiosities/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WindowsUpdate &#8211; how do I love thee: let me count the ways</title>
		<link>http://elvenhome.no/windowsupdate-how-do-i-love-thee-let-me-count-the-ways</link>
		<comments>http://elvenhome.no/windowsupdate-how-do-i-love-thee-let-me-count-the-ways#comments</comments>
		<pubDate>Fri, 16 May 2008 11:56:58 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://elvenhome.no/windowsupdate-how-do-i-love-thee-let-me-count-the-ways</guid>
		<description><![CDATA[I love thee for the lack of meaningful error messages.
I love thee for the confusing and misleading naming scheme of updates.
I love thee for publishing network driver updates that take down whole sites.
But most of all, I love thee for thy ways of fucking up thyself to such a degree that even your sheepherds doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I love thee for the lack of meaningful error messages.</p>
<p>I love thee for the confusing and misleading naming scheme of updates.</p>
<p>I love thee for publishing network driver updates that take down whole sites.</p>
<p>But most of all, I love thee for thy ways of fucking up thyself to such a degree that even your sheepherds doesn&#8217;t know what to do.</p>
<p>If you ever encounter a windows xp boxen that refuses to install updates, even though it finds and downloads them, then the following is for you. Turns out, <a target="_blank" href="http://windowssecrets.com/2007/09/27/03-Stealth-Windows-update-prevents-XP-repair"><acronym title="Microsoft">MS</acronym> isn&#8217;t really aware</a> what their doing nor how they are doing it. To repair windows update, you&#8217;ll have to run the following commands (just copy/paste to a cmd-window):</p>
<pre type="bash">regsvr32 /s wuapi.dll  

regsvr32 /s wuaueng1.dll  

regsvr32 /s wuaueng.dll  

regsvr32 /s wucltui.dll  

regsvr32 /s wups2.dll  

regsvr32 /s wups.dll  

regsvr32 /s wuweb.dll</pre>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/windowsupdate-how-do-i-love-thee-let-me-count-the-ways/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>noe av det beste jeg har lest på /.</title>
		<link>http://elvenhome.no/noe-av-det-beste-jeg-har-lest-pa</link>
		<comments>http://elvenhome.no/noe-av-det-beste-jeg-har-lest-pa#comments</comments>
		<pubDate>Sat, 12 Apr 2008 10:35:31 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://elvenhome.no/noe-av-det-beste-jeg-har-lest-pa</guid>
		<description><![CDATA[&#8220;In the 1980s capitalism triumphed over communism. In the 1990s it triumphed over democracy.&#8221; Naughty Bob &#8220;In the 2000s, it triumphed over common sense.&#8221; Arterion
]]></description>
			<content:encoded><![CDATA[<p>&#8220;In the 1980s capitalism triumphed over communism. In the 1990s it triumphed over democracy.&#8221; Naughty Bob <br />&#8220;In the 2000s, it triumphed over common sense.&#8221; Arterion<b></p>
<p></b></p>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/noe-av-det-beste-jeg-har-lest-pa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faen som jeg hater windows i svingene&#8230;.</title>
		<link>http://elvenhome.no/faen-som-jeg-hater-windows-i-svingene</link>
		<comments>http://elvenhome.no/faen-som-jeg-hater-windows-i-svingene#comments</comments>
		<pubDate>Thu, 13 Mar 2008 09:56:57 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://elvenhome.no/faen-som-jeg-hater-windows-i-svingene</guid>
		<description><![CDATA[For noe søppel!
Jeg jobber med å drifte det, og jo lengre jeg driver på med det, jo mer blir jeg bestemt på å bruke &#8211; og anbefale linux til alle og enhver! Det er mange grunner til å droppe windows, men før på dagen i dag ble jeg presentert med en ny og imponerende &#8220;feature&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>For noe søppel!</p>
<p>Jeg jobber med å drifte det, og jo lengre jeg driver på med det, jo mer blir jeg bestemt på å bruke &#8211; og anbefale linux til alle og enhver! Det er mange grunner til å droppe windows, men før på dagen i dag ble jeg presentert med en ny og imponerende &#8220;feature&#8221; (not a bug-  it&#8217;s a feature).</p>
<p><span style="font-weight: bold">BEHOLD!</span><br />
<img src="http://elvenhome.no/images/windows_oppdaterer_og_rebooter_uten_%C3%A5_bli_bedt_om_det.png" style="float: right; margin-top: 10px; margin-bottom: 10px; margin-left: 10px" /><br />
Det de skriver der, er i korte trekk at &#8220;jeg er nesten ferdig å oppdatere maskinen din, men trenger en omstart&#8221; (wtf lix &#8211; bare fordi de har oppdatert en del må hele startes om?). &#8220;Forresten &#8211; jeg har bestemt at hvis du ikke er innom burken din de neste ti minuttene, så antar jeg at du har lagret det du driver på med og rebooter uansett&#8221;.</p>
<p>Med andre ord: <acronym title="Microsoft">MS</acronym> har bestemt at dine ulagrede dokumenter ikke har noe verdi såfremt du ikke kommer innom craptopen din å aktivt stopper den fra å reboote. For å top-it-off, så spretter den boksen opp igjen etter ti minutter &#8211; fremdeles defaultet til &#8220;drit i brukeren &#8211; vi rebooter&#8221;.</p>
<p>Greit nok at man skal ha automagiske oppdateringer og sånn: helt med på det, og veldig enig &#8211; men man kan ikke defaulte til å ignorere brukeren av den grunn!</p>]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/faen-som-jeg-hater-windows-i-svingene/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
