<?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>Carlos&#039; Corner &#187; Exchange</title>
	<atom:link href="http://cars.lostroncos.org/category/exchange/feed/" rel="self" type="application/rss+xml" />
	<link>http://cars.lostroncos.org</link>
	<description>The tired geek-dad in the corner</description>
	<lastBuildDate>Wed, 12 May 2010 19:46:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simulating a more interesting environment with Vyatta and VMware ESXi &#8211; pt 3</title>
		<link>http://cars.lostroncos.org/2010/03/27/simulating-a-more-interesting-environment-with-vyatta-and-vmware-pt-3/</link>
		<comments>http://cars.lostroncos.org/2010/03/27/simulating-a-more-interesting-environment-with-vyatta-and-vmware-pt-3/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 07:21:33 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[vyatta]]></category>
		<category><![CDATA[esx3i]]></category>
		<category><![CDATA[esx4i]]></category>
		<category><![CDATA[esxi]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=446</guid>
		<description><![CDATA[Background
<p>[consider this fair warning that this post is a bit long]</p>
<p>In the first part of this series I planned out my &#8220;enterprise&#8221; environment for an Exchange 2003 to 2010 upgrade. In the second part I built the internal router and verified it was working with directly connected subnets. At this point I have something resembling [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p><em>[consider this fair warning that this post is a bit long]</em></p>
<p>In the<a href="http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/"> first part of this series</a> I planned out my &#8220;enterprise&#8221; environment for an Exchange 2003 to 2010 upgrade. In the <a href="http://cars.lostroncos.org/2010/02/18/a-more-interesting-environment-with-vyatta-and-vmware-pt2/">second part</a> I built the internal router and verified it was working with directly connected subnets. At this point I have something resembling the following.<br />
<a href="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga1.png"><img class="alignnone size-full wp-image-447" title="Environment to date" src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga1.png" alt="Environment to date" width="401" height="188" /></a></p>
<p>In this entry I&#8217;ll work on adding the DMZ router, enabling the firewall on one of its interfaces and adding static routers to it and<strong><em> rtr-home</em></strong> so that it&#8217;s reachable from my home LAN (essentially the stuff in the red box below). There are two phases to this.<a href="#configuringrouter"> The first phase</a> consists of setting up the router and verifying that it is able to reach hosts on the respective subnets it&#8217;s  directly attached to. As part of this I&#8217;ll also  set up static routing between<strong><em> rtr-dmz</em></strong> and <strong><em>rtr-home</em></strong> so that we can pass traffic from one subnet to another traversing both routers. <a href="#configuringfirewall">In the second phase</a> we&#8217;ll set up a very simple firewall ruleset to limit traffic coming out of the DMZ.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga2.png" alt="" /></p>
<p><a name="configuringrouter"></a></p>
<h2>Configuring the router</h2>
<p>To start I need to create new router rtr-dmz (much as I did in Part 2), with three interfaces. One interface will be on the intranet to DMZ network/VLAN (192.168.4.1/30), another on the DMZ to internet VLAN (192.168.5.1/30)) and the third connected to the DMZ network itself(192.168.254.254/24).</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga3.png" alt="" /></p>
<p>After starting up the VM I assign the IP addresses and enable ssh.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga4.png" alt="" /></p>
<p>Now I want to verify that I can ping devices on the two interface that are connected to the DMZ subnet(192.168.254.254) and the DMZ to intranet switch (192.168.4.1). I could also check the  DMZ to internet interface but don&#8217;t have anything else on that side yet whereas I do have a machine in the DMZ and rtr-home is also on the DMZ-to-intranet switch.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga5.png" alt="" /></p>
<p>Now turning to my PC back on the &#8220;Home&#8221; LAN I can try to ping the interface of the new dmz router….</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga6.png" alt="" /></p>
<p>Oops! that didn&#8217;t work. .. As before I need to add a route on my PC so that it know how to get traffic to that interface through  rtr-home.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga7.png" alt="" /></p>
<p>Now let my try again….</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga8.png" alt="" /></p>
<p>Still no joy… what does traceroute say?</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga9.png" alt="" /></p>
<p>Ok it looks as if traffic is headed in the right direction.</p>
<p>For grins lets ping the DMZ to intranet interface of rtr-home…</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga10.png" alt="" /></p>
<p>Ok so that works and we can see from the traceroute that it&#8217;s starting its journey headed in the right direction.  The issue is that much like my PC the <strong><em>rtr-dmz</em></strong> needs to know where to send packets destined to come back to a subnet it&#8217;s not attached to. To fix this I need to add a static route on <strong><em>rtr-dmz</em></strong> back to my PC.  I also need to add routes to  the HQ and Remote LANs as well.  I&#8217;ll start by adding the route to the router:</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga11.png" alt="" /></p>
<p>Now if I try to ping  the router from my PC it works as we would expect it to.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga12.png" alt="" /></p>
<p>With that working its time to add the routes for the HQ and Remote LANs as well.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga13.png" alt="" /></p>
<p>Now if I look at what I have configured again I&#8217;m noticing that <strong><em>rtr-home</em></strong> will also need to have a static route added to get to the DMZ and the DMZ to Internet network (red-lines). This is also true of my PC.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga14.png" alt="" /><br />
After adding the static routes to<strong><em> rtr-home</em></strong> using 192.168.4.1 as the gateway I&#8217;m now able to ping a machine in the DMZ from <strong><em>rtr-home</em></strong>.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga15.png" alt="" /></p>
<p><em><span style="color: #ff0000;"><strong>Note: Typically for the scenario I&#8217;m trying to simulate there would be two sets of traffic flows. One between hosts on the &#8220;internet&#8221; and &#8220;DMZ&#8221; and the other between the DMZ and the intranet (HQ and Remote LANs).  This means I wouldn&#8217;t normally have any traffic coming across  rtr-home headed to/thru the 192.168.5.1 interface and so wouldn&#8217;t need to add a route for it to rtr-home. But since this my home lab and I prefer being able to ssh/RDP to hosts in the Internet directly rather than using the VM console(s) I&#8217;m going to go ahead and add it.</strong></span></em></p>
<p>After doing the same on my PC ( this time using 192.168.1.254 as the gateway) I&#8217;m also able to ping the machine in the DMZ.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga16.png" alt="" /><br />
Because machines in the DMZ and on the HQ and Remote LANs will use the rtr-dmz and rtr-home as their default gateways we don&#8217;t need to add manual routes to those machines.</p>
<p><span id="more-446"></span></p>
<p><a name="configuringfirewall"></a></p>
<h2>Setting up the internal firewall</h2>
<h3>Planning</h3>
<p>While I want to use the firewall  capability in Vyatta to simulate my production environment,  I also want to keep things simple.  Since I&#8217;m really more interested in the Exchange 2010 portion of the environment I&#8217;m going to take a few liberties with the rules. I&#8217;m planning on ending up with two different machines in the DMZ.  An Exchange 2003 server providing Outlook Web Access (OWA) functionality, and a box running Forefront  Threat Management Gateway (TMG).  The Exchange 2003 server would ordinarily need to have a number of ports opened up back to the domain controller(s) and other Exchange servers to be able to function properly.  Since I&#8217;ve got the Exchange 2003 server and the Domain Controller for each site installed on a single machine, I&#8217;m going to opt to let the  OWA server free access to each combined machine by IP address and not worry about specifying ports.  For the TMG box I&#8217;ll limit it to being able to communicate with the new Exchange 2010 servers by ports (443/80).  I&#8217;ll also want to make sure that I can connect to the DMZ boxes via RDP/Terminal Services.</p>
<p>My preliminary ruleset will look something like:</p>
<ol>
<li>OWA:* to 2K3-HQ:* [OWA to the combined DC/Exchange server in the HQ Lan]</li>
<li>OWA:* to 2K3-Remote:* [OWA to the combined DC/Exchange server in the Remote Lan]</li>
<li>DMZLAN:3389 to HOMELAN:*  [Traffic from any machine/port combination in the Home Lan bound for/coming  the RDP port of any machine in the DMZ]</li>
<li>TMG:* to E2KX-HQ:80 [</li>
<li>
<div>TMG:* to E2KX-HQ:443</div>
</li>
</ol>
<p>I&#8217;ll also need to add rules for traffic coming from the &#8220;Internet&#8221; but will tackle that when I build the Internet LAN.</p>
<p>A rule in Vyatta requires a minimum of three pieces of information.</p>
<ol>
<li>An action: accept packet, reject packet or drop the packet.</li>
<li>A destination (Network, host, range, etc)</li>
<li>A source (network, host, range, etc)</li>
</ol>
<p>In some of the rules I&#8217;ll be adding to the rule set I will also be specifying ports. (ex: 443 for HTTPS, 3389 for RDP, etc). Vyatta allows me to specify which interface I&#8217;ll apply a particular ruleset to, as well as what direction the traffic it&#8217;ll be applied to is going(inbound from outside the router or outbound through the interface) . In this case  I&#8217;ll apply the rules to inbound traffic on the interface attached to the DMZ subnet and not worry about restricting traffic coming into the DMZ LAN since the inbound rules will prevent a reply. I bring this up because Its important to make a decision before I start  about which traffic flow (inbound or outbound) I&#8217;ll be applying because that affects how the rules get written, specifically the source and destination parts.  For inbound traffic, the host in the DMZ will always be the source.</p>
<h3>The actual configuration</h3>
<p>To start the process I need to &#8220;create&#8221; a new ruleset.  To do this I give it a name (line 1).  Then I&#8217;ll add a description (Line 2) so that I&#8217;ll have clue as to what it does when I come back in a few months and look at it again.</p>
<p>Once the ruleset is created I can start to add individual rules by using the &#8220;modify&#8221; keyword to modify the ruleset. I start the first rule by specifying an action(Line 3), in this case it&#8217;s &#8220;accept&#8221; since we want to pass this particular traffic through.  Again I&#8217;ll add a description to this particular rule (Line 4) for allowing the OWA server to connect to the combined DC/Exchange 2003 server in the HQ LAN.   Next I&#8217;ll specify the packet source I want the rule to apply to(Line 5). In this case it&#8217;s the OWA server itself so I&#8217;ll use the IP address of the OWA server as the source.  Then I need to specify the destination (Line 6), the combined server, by IP address as well.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ Ruleset<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset description <span style="color: #ff0000;">&quot;Rule to allow OWA Server to communicate with DC/E2KX3 boxes&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">1</span> action accept<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">1</span> description <span style="color: #ff0000;">&quot;Allow OWA to HQ DC/E2K3&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">source</span> address 192.168.254.10<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">1</span> destination address 192.168.2.10</div></td></tr></tbody></table></div>
<p>The second rule which allows OWA traffic to the DC/E2K3 server in the Remote LAN  differs from rule 1 only in the destination.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">2</span> action accept<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">2</span> description <span style="color: #ff0000;">&quot;Allow &nbsp;OWA to Remote DC/E2K3&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">source</span> address 192.168.254.10<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">2</span> destination address 192.168.2.10</div></td></tr></tbody></table></div>
<p>The third rule, to allow RDP traffic to anything in the DMZ from the Home Lan, is a little bit different from the first two in that it&#8217;s one for which I a) specify a port and b) specify networks for the source and destination.  As before I start with the action (Line 1) and a description  (Line2). Then because I&#8217;m going to specify a port I also need to specify a protocol, here it&#8217;s TCP (Line3).  Because the source can be any machine in the network I specify a network (192.168.254.0) and netmask( 255.255.255.0  a.k.a /24).  I then add the port (Line 5). For the destination I specify the Home Lan network and appropriate netmask, 192.168.1.0/24  (Line 6).</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> action accept<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> description <span style="color: #ff0000;">&quot;Allow RDP traffic back to Home LAN&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> protocol tcp<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">source</span> address 192.168.254.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">source</span> port <span style="color: #000000;">3389</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">3</span> destination address 192.168.1.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span></div></td></tr></tbody></table></div>
<p>The fourth rule specifies an IP address for both the source and destination like rules 1 and 2, but also incorporates a port option like rule 3.  The only difference between Rules 4 and  5 is that the specified port changes.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> action accept<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> description <span style="color: #ff0000;">&quot;TMG HTTP to &nbsp;E2KX-HQ&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> protocol tcp<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> <span style="color: #7a0874; font-weight: bold;">source</span> address 192.168.254.20<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> destination address 192.168.2.20<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">4</span> destination port <span style="color: #000000;">80</span></div></td></tr></tbody></table></div>
<p>Rule 5</p>
<div class="codecolorer-container bash blackboard codecolorer-noborder" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> action accept<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> description <span style="color: #ff0000;">&quot;TMG HTTPS to &nbsp;E2KX-HQ&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> protocol tcp<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> <span style="color: #7a0874; font-weight: bold;">source</span> address 192.168.254.20<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> destination address 192.168.2.20<br />
<span style="color: #000000; font-weight: bold;">set</span> firewall name DMZ-Ruleset rule <span style="color: #000000;">5</span> destination port <span style="color: #000000;">443</span></div></td></tr></tbody></table></div>
<h3>How I go about things</h3>
<p>Rather than entering all the rules at once, I like to commit each rule  to the running Vyatta configuration so that I can test it before I start the next rule.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga18.png" alt="" /></p>
<p>Above I&#8217;ve create the first rule. Now to I need to actually apply the ruleset to the DMZ facing interface .  This is done using the set interfaces command similar to when I assign an IP Address to an interface.  In this case I&#8217;ll be assigning the ruleset to the eth1 ethernet interface for inbound traffic.  I can then run the show firewalls command  to verify its in effect.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga19.png" alt="" /></p>
<p>Now I want do a simple test and ping the one box I should be able to reach as well as one I shouldn&#8217;t (on the Remote LAN). I do this by logging into the OWA server in the DMZ.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga20.png" alt="" /></p>
<p>Because I&#8217;m paranoid and want to make sure it&#8217;s a valid test, I&#8217;ll try to ping both the HQ and Remote servers from my desktop PC as well.  I would expect both of these pings to succeed.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga21.png" alt="" /></p>
<p>And they&#8217;re both successful. Just for good measure I&#8217;ll try to ping the OWA server in the DMZ from my desktop as well.</p>
<p><strong><span style="color: #ff0000;">Note &#8211; Because I&#8217;ve chose to take a simplistic approach to my firewalls it helps to understand what&#8217;s actually happening.  If I ping the OWA server from my desktop  I expect the ping to fail as show below.</span></strong></p>
<p><strong><span style="color: #ff0000;"> </span></strong><strong><span style="color: #ff0000;"><img src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga22.png" alt="" /></span></strong></p>
<p><strong><span style="color: #ff0000;">What is happening here is that because there isn&#8217;t an outbound rule on dmz-rtr&#8217;s DMZ interface the packet from my PC to the OWA server is actually making it to the OWA server.  It&#8217;s the returning traffic that&#8217;s getting blocked by the firewall.</span></strong></p>
<p><a href="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga17.png"> <strong><span style="color: #ff0000;"><img class="alignnone size-full wp-image-440" title="032810_0720_Simulatinga17.png" src="http://cars.lostroncos.org/wp-content/uploads/2010/03/032810_0720_Simulatinga17.png" alt="032810_0720_Simulatinga17.png" width="272" height="436" /></span></strong></a></p>
<p><strong><span style="color: #ff0000;">In a production environment you&#8217;d probably want to control the outbound traffic to the DMZ as well as traffic coming in from it.</span></strong></p>
<p>I can test the first and second rules using a couple of different methods. Since these rules govern traffic from the OWA server to the DCs simply trying to join it to the domain would be a good test if it hasn&#8217;t already been joined. If it has ensuring that I can still log on to the domain from it would tell me things seem to be working. Some more manual options would include ping, nslookup against the DNS server on the DC, an LDAP browser etc. The third rule I can test by trying to connect to the server via the Terminal Services client from my desktop PC.   The fourth and fifth rules I can simply test using a browser.</p>
<h2>Summary</h2>
<p>With this initial set of rules in place I now have my two internal networks and DMZ connected together with a  rudimentary firewall in place. Though I&#8217;ve taken some liberties with how laxly I&#8217;ve put the firewall together it sufficient to have the end result that I&#8217;ll want as I go through this process of migrating from Exchange 2003 to 2010.  In the next entry I&#8217;ll add the &#8220;Internet&#8221; and another simple firewall configuration. I&#8217;ll also need to further modify the firewall ruleset on <strong><em>rtr-dmz</em></strong> for communication between the DMZ and &#8220;Internet&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2010/03/27/simulating-a-more-interesting-environment-with-vyatta-and-vmware-pt-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulating a more interesting environment with Vyatta and VMware ESXi</title>
		<link>http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/</link>
		<comments>http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:05:08 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vyatta]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=300</guid>
		<description><![CDATA[<p>[Part 2 of this series which involves the actual configuration of the Vyatta routers is now up here -crt]</p>
<p>At work we&#8217;ve recently made the decision to migrate to Exchange 2010 from Exchange 2003. While we do have an environment that we can use for some testing of the migration it doesn&#8217;t mimic our production environment [...]]]></description>
			<content:encoded><![CDATA[<p><em>[Part 2 of this series which involves the actual configuration of the Vyatta routers is</em><a href="http://cars.lostroncos.org/2010/02/18/a-more-interesting-environment-with-vyatta-and-vmware-pt2/"><em> now up here</em></a><em> -crt]</em></p>
<p>At work we&#8217;ve recently made the decision to migrate to Exchange 2010 from Exchange 2003. While we do have an environment that we can use for some testing of the migration it doesn&#8217;t mimic our production environment closely enough for me to be comfortable using it as the sole test area. Given the changes in how Exchange 2010 (E2KX) works vs 2003 I wanted to be able to simulate multiple (2) Active Directory sites (i.e. subnets), a DMZ, and the &#8220;Internet&#8221; including some really simple firewalls.</p>
<p>I wanted to use virtual machines to go through this exercise so that I could take snapshots and repeat the various steps and/or variations of them if necessary. In order to do this I utilized the Vyatta Community Edition based routers to help create my virtual &#8220;enterprise&#8221; environment. I&#8217;ve talked about<a href="http://cars.lostroncos.org/2008/09/18/using-vyatta-with-vmware/" target="_blank"> Vyatta before in this article</a>. In this post I&#8217;ll talk a little about the process I went through to get to my final configuration (shown below).  In subsequent articles I&#8217;ll go  through the actual router and VMware configuration process.</p>
<div id="attachment_299" class="wp-caption alignnone" style="width: 830px"><a rel="lightbox[8]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8.png"><img class="size-large wp-image-299" title="Final Environment" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8-1024x477.png" alt="Final Environment" width="820" height="382" /></a><p class="wp-caption-text">The final environment as laid out on two interconnected servers</p></div>My lab environment at home consists of two Dell PowerEdge servers (one a PE2850, the other a 2950 each with 8Gigs of RAM). Both servers are running ESXi 4.0. Since the 2850 can&#8217;t run 64 bit VMs I was going to install the Exchange 2003 servers and Windows 2003 DCs on it. Then I&#8217;d install VMs running Server 2008R2 on the 2950 with Exchange 2010. Both servers are connected to my home network and since I was going to be using both I wanted to have some way for VMs on each host to be able to communicate with others without necessarily having all the traffic come across my home network. Since both Dells have multiple NICs I connected them with a crossover cable ending up with something like this:</p>
<p><div class="wp-caption alignnone" style="width: 504px"><img title="A physical view" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga1.png" alt="" width="494" height="384" /><p class="wp-caption-text">Physical view of the network </p></div>
<p>In initially penciling out a plan for what I wanted to do I had nine VMs scattered across four subnets.</p>
<div class="wp-caption alignnone" style="width: 706px"><a rel="lightbox[2]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga2.png"><img title="Multi-gateway subnets" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga2.png" alt="" width="696" height="332" /></a><p class="wp-caption-text">Isolated environment with multiple gateways per subnet</p></div>Considering my limited resources and my need to keep some other unrelated VMs up and running while I&#8217;m testing, I trimmed this down to 7 by combining the Domain Controllers and Exchange 2003 servers together in the HQ and Remote subnets.</p>
<p><div class="wp-caption alignnone" style="width: 443px"><img title="Consolidating functions to reduce # of VMs" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga3.png" alt="" width="433" height="387" /><p class="wp-caption-text">Consolidating functions to reduce # of VMs</p></div>
<p>In further looking at this from a networking perspective, I was hit with the realization the initial configuration with two routers attached to the HQ and DMZ subnets would require me to manage routing on<strong><em> each individual VM</em></strong> in each of those subnets as well as on each of the routers. As an example one can look at the Exchange 2010 server in the HQ site/subnet.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga4.png" alt="" /></p>
<p><span id="more-300"></span></p>
<p>In this particular case the Exchange server would need to be able to route some traffic to the DMZ via 192.168.2.253 and other traffic to the &#8220;Remote&#8221; site via 192.168.2.254. (If the server was going to communicate directly with machines in our fake &#8220;Internet&#8221; I&#8217;d have to add yet another routing entry.) I can of course configure a default gateway when configuring the NIC, but still have to manually add a route for the other gateway. This process then has to be repeated on each machine. It then gets more complicated if I want to be able to use Terminal Services (RDP) to connect to the VMs rather than using the VM remote console because I now have to figure out how to connect the virtual routers to my home network and potentially add yet another routing entry.</p>
<p>I decided I&#8217;d rather have a single gateway on each subnet (so I only had to specify a default gateway on each VM) and then rely on the routers to do all the routing. I considered a couple of different ways to do this. One option was do something &#8220;meshy&#8221; where the router for each subnet was connected to common shared subnet.</p>
<p><a rel="lightbox[5]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga5.png"><img title="A &quot;mesh-y&quot; solution" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga5.png" alt="" width="591" height="378" /></a></p>
<p>This would have had the desired effect a single gateway for each subnet regardless of where traffic was going, but would have required 5 virtual routers which seemed a little excessive. Going in the other direction, another option was to have a single router connected to everything.</p>
<div class="wp-caption alignnone" style="width: 626px"><a rel="lightbox[6]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga6.png"><img title="Single-router solution" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga6.png" alt="" width="616" height="336" /></a><p class="wp-caption-text">Single-router solution</p></div><a rel="lightbox[6]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga6.png"><br />
</a></p>
<p>I ended up with a solution somewhere between the &#8220;mesh&#8221; and the single mongo router. It employs three routers. I decided on this partly because I wanted to keep things relatively simple especially since I was going to be enabling the firewall functionality between the DMZ and Internet (and wanting to limit the damage I could do to myself when working late at night).<br />
<a rel="lightbox[7]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga7.png"><br />
<img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga7.png" alt="" width="649" height="317" /></a></p>
<p>Again, when all was said and done the environment I ended up with looks like the one below. In the next couple of entries I&#8217;ll go through the actual process of building the networking side of this.</p>
<p><div class="wp-caption alignnone" style="width: 784px"><a href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8.png"><img title="Physical/Logical view" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8.png" alt="" width="774" height="361" /></a><p class="wp-caption-text">Physical/Logical view</p></div>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Generating an ATOM feed from an Exchange 2007/10 calendar</title>
		<link>http://cars.lostroncos.org/2010/01/25/generating-an-atom-feed-from-an-exchange-calendar/</link>
		<comments>http://cars.lostroncos.org/2010/01/25/generating-an-atom-feed-from-an-exchange-calendar/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 06:58:43 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[ExchangeWebServices]]></category>
		<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[ATOM]]></category>
		<category><![CDATA[EWS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[wsdl]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=262</guid>
		<description><![CDATA[<p>I was in a meeting a little while back where we had a brief discussion regarding the ability to get data out of Exchange 2007/2010 from a non-Windows OS. The example thrown out was the ability to get an RSS feed from Google Calendar for use elsewhere. I&#8217;ve know about Exchange Web Services (EWS) for [...]]]></description>
			<content:encoded><![CDATA[<p>I was in a meeting a little while back where we had a brief discussion regarding the ability to get data out of Exchange 2007/2010 from a non-Windows OS. The example thrown out was the ability to get an RSS feed from Google Calendar for use elsewhere. I&#8217;ve know about Exchange Web Services (EWS) for a while and always wanted to look into using it in a project just to get some familiarity with it. With Exchange 2010 coming out this seemed like a good opportunity to try to see if I could generate an RSS feed from my calendar in a lab environment using a non-.Net language on Linux. I decided to try doing this using PHP, (incorrectly) assuming that there&#8217; be some easily discoverable examples I could download and tweak to do what I wanted.</p>
<p>I did discover some snippets and information that helped point me in the right direction, but no simple complete &#8220;here run this&#8221; kind of examples. I initially came across an article by Thomas Rabaix on using SOAP PHP and NTLM authentication (<a href="http://rabaix.net/en/articles/2008/03/13/using-soap-php-with-ntlm-authentication">http://rabaix.net/en/articles/2008/03/13/using-soap-php-with-ntlm-authentication</a> ). This code used cURL to help handle NTLM authentication to an IIS server. That then led me to an article by Erik Cederstrand <a href="http://www.howtoforge.com/talking-soap-with-exchange">http://www.howtoforge.com/talking-soap-with-exchange</a> that built on Thomas&#8217; work. Between them these two extend the PHP SOAPClient and then override some of the methods to use curl to handle the NTLM authentication that EWS uses by default. Using these examples as a starting point and some other bits of info I&#8217;ve come across I&#8217;ve been able to put together a couple of scripts that will generate an ATOM based feed using a user&#8217;s calendar. What I&#8217;ve managed to cobble together works but is not something I&#8217;d describe as robust. The solution is briefly described below. I&#8217;m hoping to follow up with a few other posts that go into a bit more detail about how all the pieces work. <em>[the code is available <a href="http://cars.lostroncos.org/wp-content/uploads/2010/01/ews-cal-rss.tar.gz"> from here </a> or from <a href="code.google.com/p/exchange-calendar-rss/">Google Code</a> ]</em></p>
<h2>The scripts in action</h2>
<p>In my example Exchange environment I&#8217;ve created a user called (imaginatively enough)<em> ctronco</em>. Opening up Outlook for the user I can see the following events on this weeks calendar.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga1.png" alt="" /></p>
<p>Turning now to the Ubuntu box where I&#8217;ve installed the PHP scripts. Firing up a browser and pointing it to the correct URL (http://192.168.1.175/ewscalendarfeed/getfeed/ctronco) I get the following results in Firefox, Internet Explorer and Opera (Chrome doesn&#8217;t appear to like feeds so I haven&#8217;t included it).</p>
<table border="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Output in Firefox</strong></td>
<td style="text-align: center;"><strong>Output in Internet Explorer</strong></td>
<td style="text-align: center;"><strong>Output in Opera</strong></td>
</tr>
<tr>
<td><a href="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga2.png" target="_blank"><img class="aligncenter size-medium wp-image-253" title="Firefox Output" src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga2-226x300.png" alt="Firefox Output" width="226" height="300" /></a></td>
<td><a href="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga3.png" target="_blank"><img class="aligncenter size-medium wp-image-254" title="Output in IE" src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga3-229x300.png" alt="Output in IE" width="229" height="300" /></a></td>
<td><a href="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga4.png" target="_blank"><img class="aligncenter size-medium wp-image-255" title="Output in Opera" src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga4-220x300.png" alt="Output in Opera" width="220" height="300" /></a></td>
</tr>
</tbody>
</table>
<p><span id="more-262"></span><br />
Clicking on the link of any of the individual entries will return a web a page with the same information about the individual appointment as well:</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga5.png" alt="" /></p>
<h2>How it works (at a high level)?</h2>
<p>Rather than keeping each user&#8217;s credentials around I decided to use a non-privileged account. This means that that account has to have <strong>Reviewer</strong> permissions for every calendar that will have a feed generated for it. Adding permissions for the account is a relatively straightforward proposition if you&#8217;re using Outlook. It can also be done via EWS for non-Outlook folks, I just haven&#8217;t gotten that piece done yet.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga6.png" alt="" /></p>
<p>The configuration file for the scripts has a list of known calendar &#8220;names&#8221; and the identifying information to retrieve the calendar from Exchange. Each accessible calendar has to have a unique name as far as the scripts are concerned. This is because each user can have more than one calendar available for generating a feed and I wanted to be able to support showing more than one per user.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga7.png" alt="" /></p>
<p>The naming convention you use will be up to you. Using the four calendars shown above in my test user&#8217;s mailbox either of the following example schemes would work for creating unique name for each of the calendars.</p>
<div>
<table border="1">
<tbody>
<tr>
<td>Original &#8220;Outlook&#8221; name</td>
<td>+1 scheme</td>
<td>descriptive</td>
</tr>
<tr>
<td>Calendar</td>
<td>ctronco</td>
<td>ctronco-calendar</td>
</tr>
<tr>
<td>Calendar2</td>
<td>ctronco1</td>
<td>ctronco-calendar2</td>
</tr>
<tr>
<td>Cal-sub-1</td>
<td>ctronco2</td>
<td>ctronco-cal-sub-1</td>
</tr>
<tr>
<td>fed</td>
<td>ctronco3</td>
<td>ctronco-fed</td>
</tr>
</tbody>
</table>
</div>
<p>In addition to the unique name the configuration file also needs to be given the unique Folder Id and Changekey values from EWS to retrieve them. These values aren&#8217;t easily accessible via Outlook (as far as I can tell)so I&#8217;ve included a web form (list_calendars.html) which will prompt for a user&#8217;s credentials and then list the calendars in their mailbox as well as the associated <strong>Folder Id</strong> and <strong>ChangeKey.</strong> Example output is shown:</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga8.png" alt="" /></p>
<p><em>If you install the package php5-cli, list_calendars.php (the script called by the html file) can also be run from a shell on the Ubuntu box by passing the username and password as parameters.</em></p>
<h2>Setting things up</h2>
<h3>Exchange</h3>
<p>The first thing I had to do was set up Windows 2008 and Exchange 2007 in my home lab (at the time I had hardware that wouldn&#8217;t support 64-bit VMs so I couldn&#8217;t do Exchange 2010). I set up a single machine as both an AD Domain Controller and an Exchange server with the HUB, CAS, and Mailbox roles on it. Based on my initial testing this will also work just fine with Exchange 2010.</p>
<h3>Ubuntu</h3>
<p>For my test PHP environment I set up another VM running Ubuntu 9.10 Server with the LAMP option chosen at installation.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga9.png" alt="" /></p>
<p>Once the OS install was complete I also had to install the<strong><em> libcurl3</em></strong> and <strong><em>php5-curl</em></strong> packages.</p>
<p>The initial version of the source code is available<a href="http://cars.lostroncos.org/wp-content/uploads/2010/01/ews-cal-rss.tar.gz"> here as a zip file</a>. In addition I&#8217;ve created a<a href="http://code.google.com/p/exchange-calendar-rss/" target="_blank"> project on Google Code </a>where the most recent versions can be retrieved as I work on it further.</p>
<p>To install it simply unzip the tar file in a location where apache (or the web server of your choice) can read the files. It will uninstall into a directory called ews-cal-rss. You&#8217;re welcome to change this to whatever you desire.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/01/012610_0657_Generatinga10.png" alt="" /></p>
<p>In the example I&#8217;ve also changed the ownership of the directory so that it&#8217;s owned by the same login the web server runs under.</p>
<p>In the directory where the extracted files are you&#8217;ll find cfg_options.php. This contains almost all the configurable values. The following values need to be defined:</p>
<ul>
<li>$cfg_option['user'] &#8211; Login Id of the non-privileged account that will used to read all the calendars</li>
<li>$cfg_option[''] -</li>
<li>$cfg_option['authmethod'] &#8211; the scripts support both Basic and NTLM authentication when talking to EWS. NTLM required installation of curl</li>
<li>$cfg_option['wsdl'] &#8211; path to the appropriate Exchange Web Services WSDL file.</li>
<li>$cfg_option['installpath'] &#8211; full path to the scripts</li>
<li>$cfg_option['urlpath'] &#8211; URL for the scripts. If the script URL is http://host/ews-cal-rss/getfeed.php this would be &#8220;/ews-cal-rss&#8221;</li>
<li>You also need to populate the variable $PFIDs using the list_calendars.html file as shown above.</li>
</ul>
<p>In addition you need to modify the appropriate WSDL file for your environment. WSDL files are included for both Exchange 2007 and 2010. They are in<em><strong> &lt;installdir&gt;/e2k7_wsdl</strong></em> or <strong><em>&lt;installdir&gt;/e2kx_wsdl</em></strong> respectively. The services.wsdl needs to be modified to point to your Exchange server. At the end of the services.wsdl file you&#8217;ll find the following:</p>
<div class="codecolorer-container xml blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:operation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:binding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wsdl:service</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ExchangeServices&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wsdl:port</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ExchangeServicePort&quot;</span> <span style="color: #000066;">binding</span>=<span style="color: #ff0000;">&quot;tns:ExchangeServiceBinding&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;soap:address</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;https://exchange.company.com/EWS/Exchange.asmx&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:service<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:definitions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>You need to modify the soap:address entry to point to your Exchange server. In my case that would be</p>
<div class="codecolorer-container xml blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:operation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:binding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wsdl:service</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ExchangeServices&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wsdl:port</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ExchangeServicePort&quot;</span> <span style="color: #000066;">binding</span>=<span style="color: #ff0000;">&quot;tns:ExchangeServiceBinding&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;soap:address</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;https://e2k7.exchange.lostroncos.org/EWS/Exchange.asmx&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:service<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wsdl:definitions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<h2>A few miscellaneous notes:</h2>
<ul>
<li>It is also possible to use calendars in a public folder to generate the feeds. However listing them is slightly more involved than it is for a users calendars.</li>
</ul>
<ul>
<li>Re: the use of NTLM. It is also possible to modify the Exchange server&#8217;s web server configuration to enable the use of &#8216;Basic&#8217; authentication in addition to NTLM. Since by default communication with the Exchange server takes place over HTTPS this may or may not be acceptable in your environment. Using basic authentication gets you out of having to install the cURL bits, but may or may not be acceptable from a security perspective depending on your environment.</li>
<li>This is a test to see if this works better than the 32 bit version of IE does in full screen visual mode with wordpress&#8230;.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2010/01/25/generating-an-atom-feed-from-an-exchange-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
