<?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>108.bz &#187; Weirdnesses</title>
	<atom:link href="http://www.108.bz/posts/tag/weirdnesses/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.108.bz</link>
	<description>Wandering futilities...</description>
	<lastBuildDate>Wed, 08 Sep 2010 13:45:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>VMware issues while increasing Datastore capacity</title>
		<link>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/</link>
		<comments>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:37:37 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Weirdnesses]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=268</guid>
		<description><![CDATA[VMware vSphere Client/vCenter Server Version 4.0.0 Build 208111. We created a bunch of new LUNs, planning to increase an existing Datastore&#8217;s capacity. VMware side, the operation should be a matter of simply firing up vSphere Client, choosing a host, Configuration tab, viewing the Datastore&#8217;s properties, then clicking on the Increase button. Except that no Extent [...]]]></description>
			<content:encoded><![CDATA[<p>VMware vSphere Client/vCenter Server Version 4.0.0 Build 208111.</p>
<p>We created a bunch of new LUNs, planning to increase an existing Datastore&#8217;s capacity.<br />
VMware side, the operation should be a matter of simply firing up vSphere Client, choosing a host, <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Configuration</span> tab, viewing the Datastore&#8217;s properties, then clicking on the <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Increase</span> button. Except that no Extent device seems to be found. That&#8217;s weird because we already did (multiple times) a rescan of each Storage Adapter/HBA. Moreover, selecting &#8220;<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Add Storage</span>&#8221; as if we were to create a new Datastore, indeed shows the expected volumes.<br />
The solution turned out to be this one:</p>
<ul>
<li>Connect vSphere Client directly to the host (thus logging in as root), and not to the vCenter Server.</li>
</ul>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=268" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shared folder access from Windows CE</title>
		<link>http://www.108.bz/posts/it/shared-folder-access-from-windows-ce/</link>
		<comments>http://www.108.bz/posts/it/shared-folder-access-from-windows-ce/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:30:14 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Client]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Weirdnesses]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows CE]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=223</guid>
		<description><![CDATA[Scenario: Headquarter (HQ) connected (MPLS VPN) to some branch sites. In some of the branches, a Check Point UTM-1 Edge X (SofaWare) sits between the wireless and wired networks, enforcing security policies between them. The two networks are bridged together (Layer 2) by the firewall. The wireless LAN is used by some kind of next [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario:
<ul>
<li>Headquarter (HQ) connected (MPLS VPN) to some branch sites.</li>
<li>In some of the branches, a Check Point UTM-1 Edge X (SofaWare) sits between the wireless and wired networks, enforcing security policies between them.</li>
<li>The two networks are bridged together (Layer 2) by the firewall.</li>
<li>The wireless LAN is used by some kind of next gen Barcode Scanner: an embedded device with Windows CE .NET 4.2, also able to act as a Terminal Services client.</li>
</ul>
<p>Customer wants to install some software on the scanners, downloading it from a shared folder residing on one of HQ servers. I add the necessary (and temporary) rules on the firewalls, but the folder still cannot be reached. Windows CE complains that &#8220;The network path was not found&#8221; but the rules look good.</p>
<p>Luckily, the Edge firewalls provide a packet sniffer, allowing us to further investigate the issue. Just connect to the web based interface of UTM-1/SofaWare, go to <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Setup</span> &rarr; <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Tools</span> &rarr; <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Sniffer</span>, choose a filter string (using the familiar libpcap/tcpdump syntax), select the interface (&#8220;bridge&#8221;, in my case), and you&#8217;re set. Captured packets can then be downloaded to your PC and opened up in Wireshark.</p>
<p>We came up with a bunch of peculiar NetBIOS Name query requests/answers:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ tshark -r sniffer4.cap <br />
&nbsp; 1 &nbsp; 0.000000 &nbsp; &nbsp;192.168.2.3 &nbsp;-&gt; 192.168.1.10 &nbsp;NBNS Name query NB HQSERVER&lt;20&gt;<br />
&nbsp; 2 &nbsp; 0.028436 &nbsp; &nbsp;192.168.1.10 -&gt; 192.168.2.3 &nbsp; NBNS Name query response<br />
&nbsp; 3 &nbsp; 1.001397 &nbsp; &nbsp;192.168.2.3 &nbsp;-&gt; 192.168.2.255 NBNS Name query NB HQSERVER&lt;20&gt;<br />
&nbsp; 4 &nbsp; 1.251460 &nbsp; &nbsp;192.168.2.3 &nbsp;-&gt; 192.168.2.255 NBNS Name query NB HQSERVER&lt;20&gt;<br />
&nbsp; 5 &nbsp; 1.502820 &nbsp; &nbsp;192.168.2.3 &nbsp;-&gt; 192.168.2.255 NBNS Name query NB HQSERVER&lt;20&gt;</div></div>
<p>Some hostnames, for clarity:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; 192.168.2.3 &nbsp;: BOSCANNER<br />
&nbsp; 192.168.1.10 : HQDC1<br />
&nbsp; 192.168.1.20 : HQSERVER</div></div>
<p>The Barcode Scanner (Client) asks one of the DNS/Domain Controllers in HQ if it is called HQSERVER. But HQSERVER is the server we&#8217;re trying to connect to from the Scanner (by means of <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">\\HQSERVER\sharename</span>)! Why in the world the device should directly ask HQDC1 if it is called HQSERVER? Using an unicast NetBIOS query, too? Obviously HQDC1 answers &#8220;no, it&#8217;s not me&#8221; (Requested name does not exist)&#8230; The Scanner then broadcasts the same query to its local network segment, but since HQSERVER sits in Headquarter, it gets no answer and generates the error &#8220;The network path was not found&#8221;.<br />
Turns out that <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">\\192.168.1.20\sharename</span> causes the same dialoque, with a NetBIOS name query that seemingly asks for a server named &#8220;192.168.1.20&#8243;. It&#8217;s as if in Windows CE, UNC paths could only use names, not IP addresses.</p>
<p>Well, the Customer didn&#8217;t have enough time for me to properly solve/understand the issue but we worked around it by:
<ul>
<li>Assigning a static IP to the Windows CE device.</li>
<li>In the TCP/IP settings of Windows CE, use 192.168.1.20 (HQSERVER &#8211; where the shared folder is hosted) as DNS and WINS server.</li>
<li>Copy the needed files from the network share and revert back to DHCP.</li>
</ul>
<p>Step two makes the Client send NetBIOS name queries to HQSERVER instead of HQDC1. This allows shared folder access to work.</p>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=223" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/shared-folder-access-from-windows-ce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FortiGate/Cisco Layer 2 woes</title>
		<link>http://www.108.bz/posts/it/fortigate-cisco-layer-2-woes/</link>
		<comments>http://www.108.bz/posts/it/fortigate-cisco-layer-2-woes/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 13:41:17 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[FortiGate]]></category>
		<category><![CDATA[Layer 2]]></category>
		<category><![CDATA[MTU]]></category>
		<category><![CDATA[Weirdnesses]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=103</guid>
		<description><![CDATA[The other day I swapped a firewall with a different one, a FortiGate 60B. After having re-created the config, everything seemed to be functional but: Internet browsing &#8220;felt&#8221; a bit sluggish (I was on a 20Mbps uplink) and, here comes the weirdness, when I did &#8220;something&#8221; the whole WAN connectivity would just hang for a [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I swapped a firewall with a different one, a FortiGate 60B. After having re-created the config, everything seemed to be functional but: Internet browsing &#8220;felt&#8221; a bit sluggish (I was on a 20Mbps uplink) and, here comes the weirdness, when I did &#8220;something&#8221; the whole WAN connectivity would just hang for a couple of minutes. The issue was reproducible by trying to connect via Remote Desktop to one of the published servers (by tunneling through my Employer&#8217;s Office, and bouncing back on the Customer&#8217;s firewall) or even by opening my Flickr page (but then the cause could&#8217;ve been the poor quality of the pictures therein <img src='http://www.108.bz/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).<br />
At first, I thought about a dreadful MTU issue, maybe the firewall/router or something along the road was choking when fragmenting or reassembling packets. But, a &#8220;<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">ping <em>outside_host</em> -s 1472 -M do</span>&#8221; (or &#8220;<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">ping -f -l 1472 <em>outside_host</em></span>&#8220;, on Windows) proved that ICMP packets 1500 bytes big (1472 bytes of payload, plus 28 bytes of ICMP header) could indeed flow out and back without being fragmented: the issue was totally random.<br />
Besides that, even lowering the MTU on my PC wouldn&#8217;t change anything.<br />
After much cursing, I tried to see if anything was going on at L2 level. Firewall and router (Cisco, owned by the ISP, not accessible to me) were connected together by a crossover cable.<br />
The relevant FortiOS CLI command is the following:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">FIREWALLNAME # diagnose hardware deviceinfo nic wan1<br />
System_Device_Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wan1<br />
Link &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;up<br />
Speed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 100 Mbps full duplex<br />
FlowControl &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tx off, Rxoff<br />
MTU_Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1500</div></div>
<p>My firewall (the above example comes out from another one) was negotiating 100Mbps speed, Half Duplex. Nothing wrong with that, I tried to fix these parameters on the FortiGate but the Ethernet link would not come up. So, auto-negotiation was mandatory and I had no way to change that on the router.<br />
At some point, when Internet connectivity was stuck, it seemed to me that unplugging and plugging back in the cable between firewall/router, would allow for a faster recovery. Definitely, something was wrong at L2.<br />
The solution was to insert a 15€ DLink switch between firewall and router. No problems since then, it really looks like FortiGate and Cisco NICs don&#8217;t play well together, at least in that conditions. The Customer will call the ISP in order to tweak the settings Cisco side and see if they can get rid of the switch.<br />
The proper way to diagnose the problem would&#8217;ve been to ping the router from the outside during a connectivity stop. Since the issue was &#8220;local&#8221;, the router should answer while no traffic should pass from the firewall to the router.</p>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=103" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/fortigate-cisco-layer-2-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
