<?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>Cored Techblog</title>
	<atom:link href="http://www.cored.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.cored.net</link>
	<description>made by a geek, for geeks</description>
	<lastBuildDate>Wed, 07 Sep 2011 21:27:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Enabling multicontext mode on the Cisco ASA 5500 series</title>
		<link>http://www.cored.net/?p=52</link>
		<comments>http://www.cored.net/?p=52#comments</comments>
		<pubDate>Fri, 02 Sep 2011 08:29:09 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[multicontext]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=52</guid>
		<description><![CDATA[Enabling multicontext mode on the Cisco ASA 5500 series is simple. You simply type &#8220;mode multiple&#8221; in config terminal mode. This command will completely change the behaviour of your device, and likely scrap alot of your config. So I would suggest doing the proper reading on it before attempting to do this. The device will [...]]]></description>
			<content:encoded><![CDATA[<p>Enabling multicontext mode on the Cisco ASA 5500 series is simple. You simply type &#8220;<strong>mode multiple</strong>&#8221; in config terminal mode. This command will completely change the behaviour of your device, and likely scrap alot of your config. So I would suggest doing the proper reading on it before attempting to do this. The device will reboot immediately after confirming that you actually want to proceed.</p>
<div class="codesnip-container" >lab-asa(config)# mode multiple<br />
WARNING: This command will change the behavior of the device<br />
WARNING: This command will initiate a Reboot<br />
Proceed with change mode? [confirm]<br />
Convert the system configuration? [confirm]<br />
!<br />
The old running configuration file will be written to flash</p>
<p>The admin context configuration will be written to flash</p>
<p>The new running configuration file was written to flash<br />
Security context mode: multiple</p>
<p>&nbsp;</p>
<p>***<br />
*** &#8212; SHUTDOWN NOW &#8212;<br />
***<br />
*** Message to all terminals:<br />
***<br />
***   change mode</p></div>
<p>After the boot, you will enter the admin context of the device upon SSHing to the usual management interface IP. You can now start creating multiple contexts (if you have the proper licence) The base config and context config of the device can be edited from the system context (&#8220;<strong>changeto context system</strong>&#8220;)</p>
<p>You can scrap your multiple context mode and revert to single context by doing &#8220;<strong>mode single</strong>&#8221; whenever you like. Both of these commands will change your config and the behaviour of your firewall, so make sure you make the appropriate config backups before you do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=52</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to a RS-232 serial device with &#8216;cu&#8217; with Linux or MacOS</title>
		<link>http://www.cored.net/?p=45</link>
		<comments>http://www.cored.net/?p=45#comments</comments>
		<pubDate>Fri, 21 Jan 2011 16:57:05 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[rs232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=45</guid>
		<description><![CDATA[Ever wanted a simple Linux or MacOS command line utility to connect to RS-232 based devices? Search no more. For MacOS it is natively shipped with the OS, but for Linux you probably need a UUCP source file or a repository install (I know it exists for Ubuntu atleast) Here is the command to connect [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted a simple Linux or <a href="http://www.apple.com/macosx/" target="_blank">MacOS</a> command line utility to connect to RS-232 based devices? Search no more. For <a href="http://www.apple.com/macosx/" target="_blank">MacOS</a> it is natively shipped with the OS, but for Linux you probably need a UUCP source file or a repository install (I know it exists for <a href="http://packages.ubuntu.com/maverick/cu" target="_blank">Ubuntu</a> atleast) Here is the command to connect to &#8220;ttyS0&#8243; (requires superuser):</p>
<div class="codesnip-container" >enigma:~ vidarst$ sudo cu -l /dev/ttyS0 -s 9600</div>
<p><strong>PS!</strong> You need to investigate which serial device is the proper name for your own. Doing &#8220;dmesg | grep serial&#8221;, or investigating &#8220;/proc&#8221;  should help you out. Or just <a href="http://www.lmgtfy.com/?q=finding+your+serial+device+name+linux" target="_blank">Google it!</a>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling telnet login in IOS on Cisco Catalyst series</title>
		<link>http://www.cored.net/?p=32</link>
		<comments>http://www.cored.net/?p=32#comments</comments>
		<pubDate>Mon, 17 Jan 2011 08:51:49 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[ios]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=32</guid>
		<description><![CDATA[It is not too often you have to enable telnet on modern Catalyst switches, as SSHv2 is more and more used due to its higher level of security. But every now and then, I blow dust off old switches with a non crypto OS and deploy them before I upgrade the IOS. So how do [...]]]></description>
			<content:encoded><![CDATA[<p>It is not too often you have to enable telnet on modern Catalyst switches, as SSHv2 is more and more used due to its higher level of security. But every now and then, I blow dust off old switches with a non crypto OS and deploy them before I upgrade the IOS. So how do I get them &#8220;on the air&#8221; with telnet to access them remotely? First of all, you need a management IP or L3 interface to telnet to. Please note that the following config will render your login password in <strong><em>cleartext</em></strong> on older IOS releases (that doesn&#8217;t support password-encryption), which is considered as highly insecure and bad.</p>
<p>Then do the following config:</p>
<div class="codesnip-container" >my-switch#config terminal<br />
my-switch(config)#line vty 0 4<br />
my-switch(config-line)#login<br />
my-switch(config-line)#transport input telnet<br />
my-switch(config-line)#password somepassword<br />
my-switch(config-line)#line vty 5 15<br />
my-switch(config-line)#login<br />
my-switch(config-line)#transport input telnet<br />
my-switch(config-line)#password somepassword</div>
<p>(Please note that VTY chunks may differ on your own setup, so you might have to change the &#8220;line vty X X&#8221; syntax)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=32</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone/iPad &#8220;forgets&#8221; some wireless network passwords</title>
		<link>http://www.cored.net/?p=28</link>
		<comments>http://www.cored.net/?p=28#comments</comments>
		<pubDate>Sat, 08 Jan 2011 22:19:32 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=28</guid>
		<description><![CDATA[For quite a time, I had this weird problem with my iPhone(3G) where it would randomly &#8220;forget&#8221; some networks, but work just fine elsewhere. When I tried to enter the password again, it would say &#8220;Network Unavailable&#8221;, which it wasn&#8217;t.. The most annoying place this happened, was at home where I definitly use my iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>For quite a time, I had this weird problem with my iPhone(3G) where it would randomly &#8220;forget&#8221; some networks, but work just fine elsewhere. When I tried to enter the password again, it would say &#8220;Network Unavailable&#8221;, which it wasn&#8217;t.. The most annoying place this happened, was at home where I definitly use my iPhone the most. I bypassed and ignored the problem for quite some time, as enabling Flightmode and disabling it &#8211; would temporarily fix the problem. Another weird thing, was that my friend had the exact same iPhone model, and never had a problem with my home wifi network. However, after some time, I have had enough and decided to investigate. After googling around for a bit, the majority of posts I found suggested me to buy an AirPort Express which &#8220;worked on both macbooks and iphones&#8221;. Well my oh my, I would be suprised if Apple&#8217;s own products didn&#8217;t work on their own products! I also tried changing encryption on my Linksys WRT router, which didn&#8217;t change anything. However, changing both the SSID and wifi password on my router, fixed the problem &#8211; for that specific phone..</p>
<p>After recieving my new <a href="http://www.apple.com/iphone/" target="_blank">iPhone4</a> I was litterally in heaven as it would replace my rather slow and outdated (Yes, thank you Apple for stabbing your first european iPhone customers in their back!) Soon I noticed that I began having the same problem with this iPhone as well, and even worse &#8211; with other networks as well. Then it struck me, after quite a bit of puzzling of details. I realised that my iPhone 3G had been restored by a backup from my first iPhone 3G (as well as my iPhone4), which I had replaced because of a malfunction. After that, the problem evolved. My friend had never restored his iPhone 3G, and never had the problem.. Maybe there is a glitch in <a href="http://www.apple.com" target="_blank">Apple</a>&#8216;s restore mechanism, which cause WiFi settings to get corrupt?</p>
<p>So I tried a very simple fix:</p>
<p><strong><em>Settings → General → Reset → Reset Network Configuratio</em>n</strong></p>
<p>(<strong>PS!</strong> This will completely wipe out any network configuration, i.e networks, passwords&#8230; anything)</p>
<p>After re-adding the same networks once again, I&#8217;ve never had the same problem again. I did the same with my <a href="http://www.apple.com/ipad/" target="_blank">iPad</a> with the same problem, and it is also working fine now! I hope this article helps out other lost souls with the same problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=28</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clearing DNS cache in MacOS v10.6.5</title>
		<link>http://www.cored.net/?p=17</link>
		<comments>http://www.cored.net/?p=17#comments</comments>
		<pubDate>Fri, 07 Jan 2011 08:13:16 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[flush]]></category>
		<category><![CDATA[hosts]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=17</guid>
		<description><![CDATA[So the other day, I was too lazy to wait for my DNS host to cron update my domains zone file. So what to do? You guessed right. I can do an oldschool hosts file hack. But wait, I already tried looking up the domain &#8211; and the earlier resolved IP is still in my [...]]]></description>
			<content:encoded><![CDATA[<p>So the other day, I was too lazy to wait for my DNS host to cron update my domains zone file. So what to do? You guessed right. I can do an <a href="http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/" target="_blank">oldschool hosts file hack</a>. But wait, I already tried looking up the domain &#8211; and the earlier resolved IP is still in my DNS cache.</p>
<p>How to clear MacOS v10.6.5&#8242;s DNS cache? The following way (requires superuser, and your password):</p>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;">enigma:~ vidarst$ <span class="kw2">sudo</span> dscacheutil <span class="re5">-flushcache</span><br />
enigma:~ vidarst$</div>
</div>
<p>And that&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code Snippet test</title>
		<link>http://www.cored.net/?p=4</link>
		<comments>http://www.cored.net/?p=4#comments</comments>
		<pubDate>Thu, 06 Jan 2011 23:16:42 +0000</pubDate>
		<dc:creator>vidar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cored.net/?p=4</guid>
		<description><![CDATA[Lets see how CodeSnippet works! #include &#60;stdio.h&#62; &#160; int main&#40;void&#41; &#123; &#160; &#160; printf&#40;&#34;hello, world\n&#34;&#41;; &#160; &#160; return 0; &#125;]]></description>
			<content:encoded><![CDATA[<p>Lets see how CodeSnippet works!</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="co2">#include &lt;stdio.h&gt;</span><br />
&nbsp;<br />
<span class="kw4">int</span> main<span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span class="kw3">printf</span></a><span class="br0">&#40;</span><span class="st0">&quot;hello, world<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="nu0">0</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cored.net/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

