<?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>[LINICKX].com</title>
	<atom:link href="http://www.linickx.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hacking Cisco ISE UDI</title>
		<link>http://www.linickx.com/3550/hacking-cisco-ise-udi</link>
		<comments>http://www.linickx.com/3550/hacking-cisco-ise-udi#comments</comments>
		<pubDate>Tue, 07 Feb 2012 10:06:06 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[ISE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3550</guid>
		<description><![CDATA[The back story&#8230; you&#8217;ve deployed your ISE appliance and the world is great! Your management need you to make a change &#8220;right now&#8221; but that virtual machine in the lab you have been using for testing is 91 days old &#8230; <a href="http://www.linickx.com/3550/hacking-cisco-ise-udi">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2012/02/ISE-CAM-VM-CLEAN.png" rel="lightbox[3550]"><img src="http://www.linickx.com/files/2012/02/ISE-CAM-VM-CLEAN-150x150.png" alt="ISE Virtual Machine that thinks it a CAM" title="ISE-CAM-VM-CLEAN" width="150" height="150" class="alignright size-thumbnail wp-image-3552" /></a><br />
The back story&#8230; you&#8217;ve deployed your <a href="http://www.cisco.com/go/ise">ISE appliance</a> and the world is great! Your management need you to make a change &#8220;right now&#8221; but that virtual machine in the lab you have been using for testing is 91 days old and the eval no longer works. You raise a case to get budget and a PO over to Cisco for a lab ISE appliance or license but this change is critical, if only there was a way to use your appliance license on your VM?</p>
<p>Perhaps you should log into your ISE appliance and make a note of the Product Identifier (PID), Version Identifier (VID) and the Serial Number (SN).</p>
<p>What you might want to do now is shutdown your ISE VM and mount the disk&#8230; I always have a <a href="http://centos.org/">CentOS</a> server kicking around for this kind of thing, so if I was to do this, I would mount the ISE virtual disk as an extra disk that CentOS has access to.</p>
<p>From within CentOS you can use fdisk -l to view the hard drive partitions&#8230; When you&#8217;re hacking a VM you mount as many of the ISE partitions as you can (<em>some will fail</em>) to see what&#8217;s there. On my test machine <code>/dev/sdb7</code> was the partition of interest as it had an <code>/opt</code> directory (<em>cisco always install stuff in opt</em>).</p>
<p>Inside <code>mount-point/opt/system/bin/</code> you might find a file called <code>cars_udi_util</code>, that&#8217;s the puppy that the license is bound to.</p>
<p>What you might want to do is rename that file and replace it with something that always gives the &#8220;right&#8221; answer. Attached is <a href="http://www.linickx.com/files/2012/02/cars_udi_util.txt">cars_udi_util.txt</a>, a shell script I have been testing, edit the top of the file and insert the PID/VID/SN you found earlier.</p>
<p>Now save the <a href="http://www.linickx.com/files/2012/02/cars_udi_util.txt">cars_udi_util.txt</a> to <code>mount-point/opt/system/bin/cars_udi_util</code>, that&#8217;s right <b>remember to remove the <code>.txt</code>!</b></p>
<p>Unmount the disk, shutdown Centos and boot up ISE. </p>
<p>Now I&#8217;ve been hacking my machine and after this change the services wouldn&#8217;t start (<code>show application status ise</code>) to fix that I ran <code>application reset-config ise</code> from the ISE CLI Shell, rebooted and Voila! &#8230;The machine booted up with a blank default config.</p>
<p>After changing the default admin password (<em>from cisco</em>) it would now be possible for you to use your proper appliance license on your VM&#8230; of course this is only a temporary thing and I fully expect &amp; recommend you undo these changes as soon as your new license arrives from Cisco.</p>
<p>Happy Hacking!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3550/hacking-cisco-ise-udi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is_blog</title>
		<link>http://www.linickx.com/3546/is_blog</link>
		<comments>http://www.linickx.com/3546/is_blog#comments</comments>
		<pubDate>Tue, 24 Jan 2012 16:42:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[is_blog]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3546</guid>
		<description><![CDATA[Since moving to a static front page I&#8217;ve noticed google is indexing /blog rather than individual posts&#8230;. this little addition to my header.php should fix it! You may notice that WordPress doesn&#8217;t appear to be an is_blog function which would &#8230; <a href="http://www.linickx.com/3546/is_blog">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since moving to <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">a static front page</a> I&#8217;ve noticed google is indexing <a href="http://www.linickx.com/blog">/blog</a> rather than individual posts&#8230;. this little addition to my <a href="http://codex.wordpress.org/Designing_Headers">header.php</a> should fix it!</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
                DO NOT INDEX /blog
        */

        if ( (!is_front_page()) &amp;&amp; (!is_page()) &amp;&amp; (!is_single()) &amp;&amp; (!is_archive()) ) {
                echo '&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot;&gt;' . &quot;\n&quot;;
        }
?&gt;
</pre>
<p>You may notice that WordPress doesn&#8217;t appear to be an <a href="http://core.trac.wordpress.org/ticket/10158">is_blog</a> function which would do the same thing.</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3546/is_blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>password-less ssh login to JunOS</title>
		<link>http://www.linickx.com/3537/password-less-ssh-login-to-junos</link>
		<comments>http://www.linickx.com/3537/password-less-ssh-login-to-junos#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:35:05 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[id_rsa]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[JunOS]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3537</guid>
		<description><![CDATA[Juniper (JunOS) SRX&#8217;s support ssh public key authentication. No-one likes to type passwords! Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have &#8230; <a href="http://www.linickx.com/3537/password-less-ssh-login-to-junos">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2012/01/junos_login.png" rel="lightbox[3537]"><img src="http://www.linickx.com/files/2012/01/junos_login.png" alt="" title="junos_login" width="471" height="234" class="aligncenter size-full wp-image-3538" /></a></p>
<p>Juniper (JunOS) SRX&#8217;s support ssh public key authentication.</p>
<pre class="brush: plain; title: ; notranslate">
nick&gt; show configuration system login | display set
set system login user nick uid 2001
set system login user nick class super-user
set system login user nick authentication ssh-rsa &quot;PASTE_KEY&quot;
nick&gt;
</pre>
<p>No-one likes to type passwords!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3537/password-less-ssh-login-to-junos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OCFS2 issues</title>
		<link>http://www.linickx.com/3528/ocfs2-issues</link>
		<comments>http://www.linickx.com/3528/ocfs2-issues#comments</comments>
		<pubDate>Mon, 09 Jan 2012 10:36:12 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[DRBD]]></category>
		<category><![CDATA[OCFS2]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3528</guid>
		<description><![CDATA[This morning I&#8217;ve had issues with my linickx.com cluster, the file system on both nodes went to read-only and I ended up in a world of pain. What made this odd is that running fsck.ocfs2 as suggested made no difference, &#8230; <a href="http://www.linickx.com/3528/ocfs2-issues">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This morning I&#8217;ve had issues with my linickx.com cluster, the file system on both nodes went to read-only and I ended up in a world of pain.</p>
<pre class="brush: plain; title: ; notranslate">
[root@georgia ~]# sudo /etc/init.d/httpd start
Starting httpd:
[root@georgia ~]# tail -f /var/log/messages
Jan  9 09:48:35 georgia kernel: [  474.259265] (httpd,1712,0):ocfs2_reserve_clusters_with_limit:1190 ERROR: status = -22
Jan  9 09:48:35 georgia kernel: [  474.259271] (httpd,1712,0):ocfs2_lock_allocators:2546 ERROR: status = -22
Jan  9 09:48:35 georgia kernel: [  474.259276] (httpd,1712,0):ocfs2_write_begin_nolock:1732 ERROR: status = -22
Jan  9 09:48:35 georgia kernel: [  474.259282] (httpd,1712,0):ocfs2_write_begin:1856 ERROR: status = -22
Jan  9 09:49:31 georgia kernel: [  530.660071] o2net: no longer connected to node amy (num 1) at 10.176.128.7:7777
Jan  9 09:49:31 georgia kernel: [  530.661856] ocfs2: Unmounting device (147,0) on (node 2)
Jan  9 09:59:46 georgia kernel: [ 1145.772174] o2dlm: Nodes in domain E9447DBE28154DAEA1B988CEC573EB64: 2
Jan  9 10:01:05 georgia kernel: [ 1223.911192] o2net: connected to node amy (num 1) at 10.176.128.7:7777
Jan  9 10:01:09 georgia kernel: [ 1227.933348] o2dlm: Nodes in domain E9447DBE28154DAEA1B988CEC573EB64: 1 2
Jan  9 10:01:09 georgia kernel: [ 1227.938693] ocfs2: Mounting device (147,0) on (node 2, slot 1) with ordered data mode.
Jan  9 10:02:35 georgia kernel: [ 1314.467741] OCFS2: ERROR (device drbd0): ocfs2_validate_gd_self: Group descriptor #419328 has bit count 32256 but claims that 45941 are free
Jan  9 10:02:35 georgia kernel: [ 1314.467754] File system is now read-only due to the potential of on-disk corruption. Please run fsck.ocfs2 once the file system is unmounted.
Jan  9 10:02:35 georgia kernel: [ 1314.467764] (httpd,2389,0):ocfs2_search_chain:1729 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467771] (httpd,2389,0):ocfs2_claim_suballoc_bits:1902 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467778] (httpd,2389,0):__ocfs2_claim_clusters:2185 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467783] (httpd,2389,0):ocfs2_local_alloc_new_window:1204 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467790] (httpd,2389,0):ocfs2_local_alloc_slide_window:1306 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467798] (httpd,2389,0):ocfs2_reserve_local_alloc_bits:695 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467803] (httpd,2389,0):ocfs2_reserve_clusters_with_limit:1190 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467809] (httpd,2389,0):ocfs2_lock_allocators:2546 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467814] (httpd,2389,0):ocfs2_write_begin_nolock:1732 ERROR: status = -22
Jan  9 10:02:35 georgia kernel: [ 1314.467821] (httpd,2389,0):ocfs2_write_begin:1856 ERROR: status = -22
Jan  9 10:02:36 georgia kernel: [ 1315.046965] OCFS2: ERROR (device drbd0): ocfs2_validate_gd_self: Group descriptor #419328 has bit count 32256 but claims that 45941 are free
^C
[root@georgia ~]#
</pre>
<p>What made this odd is that running <code>fsck.ocfs2</code> as suggested made no difference, as the output said that the disk was clean.</p>
<pre class="brush: plain; title: ; notranslate">
[root@georgia ~]# fsck.ocfs2 /dev/drbd0
fsck.ocfs2 1.4.4
Checking OCFS2 filesystem in /dev/drbd0:
  Label:              linickxcluster
  UUID:               E9447DBE28154DAEA1B988CEC573EB64
  Number of blocks:   1048535
  Block size:         4096
  Number of clusters: 1048535
  Cluster size:       4096
  Number of slots:    4

/dev/drbd0 is clean.  It will be checked after 20 additional mounts.
[root@georgia ~]#
</pre>
<p>I learn that in fact the above output was a lie! For any future googlers seeing the same issue, run:</p>
<p><b><code>fsck.ocfs2 -fy /dev/drbd0</code></b></p>
<p>The f &amp; y force a check and fix any found issues, the force on my filesystem found the errors and we appear to be back online <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3528/ocfs2-issues/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blue Coat Proxy, iPhone&#8217;s multiple authentication issues.</title>
		<link>http://www.linickx.com/3520/blue-coat-proxy-iphones-multiple-authentication-issues</link>
		<comments>http://www.linickx.com/3520/blue-coat-proxy-iphones-multiple-authentication-issues#comments</comments>
		<pubDate>Wed, 04 Jan 2012 07:59:18 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[bluecoat]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3520</guid>
		<description><![CDATA[Recently a colleague pointed me at the following Blue Coat KB about NTLM issues as basically the iPhones on the corp network were getting multiple authentication challenges even though the username &#038; password are saved in the connection profile! To &#8230; <a href="http://www.linickx.com/3520/blue-coat-proxy-iphones-multiple-authentication-issues">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently a colleague pointed me at the following Blue Coat <a href="https://kb.bluecoat.com/index?page=content&#038;id=KB4741">KB about NTLM issues</a> as basically the iPhones on the corp network were getting multiple authentication challenges even though the username &#038; password are saved in the connection profile!</p>
<p>To resolve we created a second authentication realm on the bluecoat with Kerberos &#038; NTLM authentication disabled (<em> i.e. only basic auth</em>), we then created an authentication rule which matches user agent strings and authenticates against the new basic-only realm. Below is some command lines to point you in the right direction:</p>
<pre class="brush: plain; title: ; notranslate">
!- BEGIN authentication
security iwa create-realm uk 10.10.10.10 16101
security iwa edit-realm uk ;mode
alternate-server 10.10.10.11 16101
exit
security iwa create-realm ukBasicAuth 10.10.10.10 16101
security iwa edit-realm ukBasicAuth ;mode
alternate-server 10.10.10.11 16101
credentials-kerberos disable
credentials-ntlm disable
exit
</pre>
<p>I should point out that the KB is out of date; upon implementing we noticed a lot of windows users getting unwanted authentication challenges therefore I suggest you only match against <code>iphone</code> &amp; <code> ipad</code>&#8230; in-fact I stuck <code>Macintosh</code> in as well and my macbook is getting less challenges too!</p>
<p>Enjoy the CPL goodness below!</p>
<pre class="brush: plain; title: ; notranslate">
;; Description: BlueCoat KB4741
define condition __CondList1BasicUserAgents
        request.header.User-Agent=&quot;iphone&quot;
        request.header.User-Agent=&quot;ipad&quot;
        request.header.User-Agent=&quot;Macintosh&quot;
        request.header.User-Agent=&quot;CFNetwork&quot;
end condition __CondList1BasicUserAgents

define condition BasicUserAgents
        condition=__CondList1BasicUserAgents
end condition BasicUserAgents

&lt;Proxy&gt;
        condition=BasicUserAgents authenticate(ukBasicAuth)  authenticate.force(no) authenticate.mode(proxy)    ; KB4741
        authenticate(uk)  authenticate.force(yes) authenticate.mode(proxy)      ; All Internet Traffic
</pre>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3520/blue-coat-proxy-iphones-multiple-authentication-issues/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NYr2012</title>
		<link>http://www.linickx.com/3515/nyr2012</link>
		<comments>http://www.linickx.com/3515/nyr2012#comments</comments>
		<pubDate>Mon, 02 Jan 2012 11:29:23 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[nyr2012]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3515</guid>
		<description><![CDATA[I&#8217;m not big on New Year&#8217;s Resolutions but this year I can feel a couple brewing. Better Communication I&#8217;m going to move to text only email, not because I&#8217;m an advocate&#8230; actually the opposite, I think RTF/HTML email can bring &#8230; <a href="http://www.linickx.com/3515/nyr2012">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not big on New Year&#8217;s Resolutions but this year I can feel a couple brewing.</p>
<p><b>Better Communication</b><br />
I&#8217;m going to move to text only email, not because I&#8217;m an advocate&#8230; actually the opposite, I think RTF/HTML email can bring clarity to text&#8230; anyway &#8230; reason being I think that my communication could be improved. If I remove the luxury of bold/italic/etc then my text has to stand alone for what it is, hopefully this will lead to better text.</p>
<p><b>Social Networks</b><br />
I fall in and out of love with <a href="http://twitter.com/linickx">my twitter</a> &#038; <a href="http://facebook.com/nick.bettison">facebook account</a> but FB&#8217;s move to disable the auto-magic import of linickx.com posts has forced me to think about this. My basic requirement is that, LINICKX.com is my source of noise and I need an elegant way to broadcast <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><b><em>Happy New yr to All!</em></b></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3515/nyr2012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>root-cookie 1.6, two years in the making?</title>
		<link>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making</link>
		<comments>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making#comments</comments>
		<pubDate>Thu, 22 Dec 2011 22:02:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[root-cookie]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3495</guid>
		<description><![CDATA[No taking two years to release an update is not good, but in my defence root-cookie is so simple that there are very few issues and complaints Actually a two year wait isn&#8217;t strictly true, those watching the dev log &#8230; <a href="http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/12/screenshot-1.png" rel="lightbox[3495]"><img class="alignright size-thumbnail wp-image-3501" title="Root Cookie Admin Screen Shot" src="http://www.linickx.com/files/2011/12/screenshot-1-150x150.png" alt="" width="150" height="150" /></a>No taking two years to release an update is not good, but in my defence root-cookie is so simple that there are very few issues and complaints <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Actually a two year wait isn&#8217;t strictly true, those watching <a href="http://www.linickx.com/tag/root-cookie">the dev log</a> would have seen I&#8217;ve pushed the odd update here and there.</p>
<p>So what prompts this release, well I&#8217;ve noticed that in WP3.3 that the cookie functions have changed, so to ensure future compatibility (<em>and minimal issues for me</em>) I have updated this plugin to be aligned to the core source.</p>
<p>The usual blurb&#8230;</p>
<ul>
<li>Download: <a href="http://wordpress.org/extend/plugins/root-cookie/download/">http://wordpress.org/extend/plugins/root-cookie/download/</a></li>
<li>Support: <a href="https://wordpress.org/tags/root-cookie?forum_id=10#postform">https://wordpress.org/tags/root-cookie?forum_id=10#postform</a></li>
<li>Bugs: <a href="http://plugins.trac.wordpress.org/newticket?component=root-cookie&amp;owner=linickx">http://plugins.trac.wordpress.org/newticket?component=root-cookie&amp;owner=linickx</a></li>
</ul>
<p><strong>ChangeLog</strong></p>
<ul>
<li>Contextual Help</li>
<li>Bug fix &#8220;undefined method WP_Error::get_items&#8221;</li>
<li>Logout Enhancement</li>
<li>WP 3.3 Compatability</li>
<li><a href="http://www.linickx.com">Donation Link</a> (<em>it&#8217;s good for your karma</em>)</li>
</ul>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start with the ReadMe</title>
		<link>http://www.linickx.com/3487/start-with-the-readme</link>
		<comments>http://www.linickx.com/3487/start-with-the-readme#comments</comments>
		<pubDate>Mon, 19 Dec 2011 12:00:18 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rsdns]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3487</guid>
		<description><![CDATA[I haven&#8217;t written much on here about RSDNS as I&#8217;m trying to keep everything in the github ecosystem. Currently there is no web-page-documentation, forums or wiki&#8217;s. RSDNS usage is all documented in the README.md which should be the fist place &#8230; <a href="http://www.linickx.com/3487/start-with-the-readme">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written much on here about RSDNS as I&#8217;m trying to keep everything in the github ecosystem.</p>
<p><a href="http://www.linickx.com/files/2011/12/rsdns_screenshot.png" rel="lightbox[3487]"><img src="http://www.linickx.com/files/2011/12/rsdns_screenshot.png" alt="" title="rsdns_screenshot" width="660" height="219" class="aligncenter size-full wp-image-3488" /></a></p>
<p>Currently there is no web-page-documentation, forums or wiki&#8217;s. RSDNS usage is all documented in the <b><a href="https://github.com/linickx/rsdns/blob/master/README.md">README.md</a></b> which should be the fist place to look if you want to get started. If you have a problem post <a href="https://github.com/linickx/rsdns/issues">an issue</a>, if you can fix a problem <a href="https://github.com/linickx/rsdns/pulls">raise a pull request</a>.</p>
<p>All community contributions are greatly appreciated, happy RackSpace DNS everyone!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3487/start-with-the-readme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP to solve problems</title>
		<link>http://www.linickx.com/3484/php-to-solve-problems</link>
		<comments>http://www.linickx.com/3484/php-to-solve-problems#comments</comments>
		<pubDate>Sat, 17 Dec 2011 11:05:43 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3484</guid>
		<description><![CDATA[PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to? Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised &#8230; <a href="http://www.linickx.com/3484/php-to-solve-problems">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to?</p>
<p>Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised that I can get scripts to work for me. I&#8217;ve started to post a few <a href="https://gist.github.com/1309388">PHP network functions</a> to github which I&#8217;ve been using.</p>
<p>Here&#8217;s an example: I have a nokia firewall, the routing table in voyager is shown in the following format -</p>
<pre class="brush: plain; title: ; notranslate">
Network / CIDR Mask , Gateway
10.0.0.0 / 8 , 10.0.0.1
</pre>
<p>I need that same routing in a Cisco ASA format -</p>
<pre class="brush: plain; title: ; notranslate">
Network , Mask , Gateway
10.0.0.0, 255.0.0.0, 10.0.0.1
</pre>
<p>Now this is not a problem for a few routes but the firewall I&#8217;m looking at now has 177 static routes, which I don&#8217;t want to convert manually.</p>
<p><b>Roll in PHP!</b><br />
Save the original routing table as a .csv file. ColA = ip/mask , ColB = gateway. </p>
<p>Save this a route_conv.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	/**

		Change the below to your CSV File.

	**/

	$firewall_csv = &quot;./routes_cdr.csv&quot;; 

	/**

		Function to convert CIDRs such as &quot;23&quot; to decimall dotted like &quot;255.255.254.0&quot;
		I've got more of these: https://gist.github.com/1309388

	**/

	function cidr2mask($netmask) {

		$netmask_result=&quot;&quot;;
		for($i=1; $i &lt;= $netmask; $i++) {
		  $netmask_result .= &quot;1&quot;;
		}

		for($i=$netmask+1; $i &lt;= 32; $i++) {
		    $netmask_result .= &quot;0&quot;;
		}

		$netmask_ip_binary_array = str_split( $netmask_result, 8 );

		$netmask_ip_decimal_array = array();
		foreach( $netmask_ip_binary_array as $k =&gt; $v ){
		    $netmask_ip_decimal_array[$k] = bindec( $v ); // &quot;100&quot; =&gt; 4
		}

		$subnet = join( &quot;.&quot;, $netmask_ip_decimal_array );

		return $subnet;

	}

	ini_set('auto_detect_line_endings', true); // detect CR

	if (file_exists($firewall_csv)) {

		$file = fopen($firewall_csv, 'r');

		$counter = 0; // array counter

		while (($data = fgetcsv($file)) !== FALSE) {

			list($ip, $netmask) = split( &quot;/&quot;, $data[0] ); // SPLIT Col A into IP &amp; Mask

			$netmask = cidr2mask($netmask); // Covert Mask

			$gateway = $data[1]; // Col B

			/**
				This echo is the CSV style output, but you could change this to echo &quot;route add $ip $mask $ gateway \n&quot; for unix style output.
			**/

			echo $ip . &quot;,&quot; . $netmask . &quot;,&quot; . $gateway . &quot;\n&quot;;

		}

		fclose($file);

	} else {

		echo &quot;404: $firewall_csv \n&quot;; // FILE NOT FOUND.

	}
?&gt;
</pre>
<p>from your CLI run &#8220;<code>php route_conv.php</code>&#8221; and enjoy the output!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3484/php-to-solve-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>port install ipcalc</title>
		<link>http://www.linickx.com/3476/port-install-ipcalc</link>
		<comments>http://www.linickx.com/3476/port-install-ipcalc#comments</comments>
		<pubDate>Wed, 14 Dec 2011 13:39:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PICS]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[ipcalc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3476</guid>
		<description><![CDATA[Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have any concerns with the content of this feed you may contact me here.WP &#8230; <a href="http://www.linickx.com/3476/port-install-ipcalc">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/12/ipcalc.png" rel="lightbox[3476]"><img src="http://www.linickx.com/files/2011/12/ipcalc.png" alt="" title="ipcalc" width="625" height="369" class="aligncenter size-full wp-image-3477" /></a></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3476/port-install-ipcalc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.365 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-08 04:48:26 -->

