<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lojic Technologies &#187; network</title>
	<atom:link href="http://blog.lojic.com/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lojic.com</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 22:49:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.lojic.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lojic Technologies &#187; network</title>
		<link>http://blog.lojic.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.lojic.com/osd.xml" title="Lojic Technologies" />
	<atom:link rel='hub' href='http://blog.lojic.com/?pushpress=hub'/>
		<item>
		<title>Ubuntu Linux 8.04 &#8211; Wake on LAN</title>
		<link>http://blog.lojic.com/2008/09/03/ubuntu-804-linux-wake-on-lan/</link>
		<comments>http://blog.lojic.com/2008/09/03/ubuntu-804-linux-wake-on-lan/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 05:23:57 +0000</pubDate>
		<dc:creator>Brian Adkins</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/2008/09/03/ubuntu-804-wake-on-lan/</guid>
		<description><![CDATA[Now that I&#8217;ve switched to a Macbook Pro with OSX Leopard as my primary desktop, I&#8217;ve located my Ubuntu machine in another part of the house to be accessible to my children. Not wanting to walk to the room where it&#8217;s located just to flip the power switch, I researched how to get &#8220;wake on [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.lojic.com&#038;blog=47773631&#038;post=129&#038;subd=lojicdotcom&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Now that I&#8217;ve switched to a Macbook Pro with OSX Leopard as my primary desktop, I&#8217;ve located my Ubuntu machine in another part of the house to be accessible to my children. Not wanting to walk to the room where it&#8217;s located just to flip the power switch, I researched how to get &#8220;wake on LAN&#8221; working, so I could power it up remotely.</p>
<p><strong>1.</strong> Enable the appropriate setting in your BIOS. Mine had something to do with wake on PCI device.</p>
<p><strong>2.</strong> Install ethtool if you don&#8217;t already have it.</p>
<pre>
sudo apt-get install ethtool
cd /etc/init.d
sudo vim wakeonlanconfig
</pre>
<p>Add the following lines to that file:</p>
<pre>
#!/bin/bash
ethtool -s eth0 wol g
</pre>
<p>Install the script:</p>
<pre>
sudo update-rc.d -f wakeonlanconfig defaults
</pre>
<p>Run the script:</p>
<pre>
sudo /etc/init.d/wakeonlanconfig
</pre>
<p><strong>3.</strong> Keep the network interface alive after shut down.</p>
<pre>
sudo vim /etc/init.d/halt
</pre>
<p>Change the following line:</p>
<pre>
halt -d -f -i $poweroff $hddown
</pre>
<p>to the following line (i.e. remove the -i)</p>
<pre>
halt -d -f $poweroff $hddown
</pre>
<p><strong>4.</strong> Get the MAC address</p>
<pre>
ifconfig | grep HW
</pre>
<p><strong>5.</strong> Send the magic packet via the following Ruby program:</p>
<pre>
require 'socket'
mac_addr = "x21x53x39xB3x90x42"
s = UDPSocket.new
s.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, 1)
s.send("xff"*6 + mac_addr*16, Socket::SO_BROADCAST, '10.0.0.255', 7)
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lojicdotcom.wordpress.com/129/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lojicdotcom.wordpress.com/129/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lojicdotcom.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lojicdotcom.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.lojic.com&#038;blog=47773631&#038;post=129&#038;subd=lojicdotcom&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.lojic.com/2008/09/03/ubuntu-804-linux-wake-on-lan/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3aeb549012715133bf4a8f43d47fab9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lojicwp</media:title>
		</media:content>
	</item>
		<item>
		<title>Surf Securely Using SSH</title>
		<link>http://blog.lojic.com/2007/08/02/surf-securely-using-ssh/</link>
		<comments>http://blog.lojic.com/2007/08/02/surf-securely-using-ssh/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 05:28:15 +0000</pubDate>
		<dc:creator>Brian Adkins</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://lojic.com/blog/?p=98</guid>
		<description><![CDATA[This is so easy, you&#8217;re gonna love it! Thanks Tyler Pedersen. Motivation I&#8217;ve been using my laptop more frequently at wifi hotspots. Many web sites I visit encrypt traffic with SSL for authentication, but after that they send traffic in the clear which means the cookies that are used for authentication purposes are sent in [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.lojic.com&#038;blog=47773631&#038;post=85&#038;subd=lojicdotcom&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is <strong>so</strong> easy, you&#8217;re gonna love it! Thanks Tyler Pedersen.</p>
<p><strong>Motivation</strong></p>
<p>I&#8217;ve been using my laptop more frequently at wifi hotspots. Many web sites I visit encrypt traffic with SSL for authentication, but after that they send traffic in the clear which means the cookies that are used for authentication purposes are sent in the clear, so anyone with a sniffer within range of my laptop could easily intercept the traffic, steal my cookies and impersonate me on the web site. Not good! So, I went looking for a simple solution, and found a <a href="http://www.surfssl.com/?p=20">great article</a> about using ssh for this purpose. Ya gotta love open source software <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Prerequisites</strong></p>
<p>I&#8217;ll assume the following:</p>
<ol>
<li>You&#8217;ve used ssh before</li>
<li>You have access to a remote host running sshd</li>
</ol>
<p><strong>How To</strong></p>
<p>Issue the following command on your local computer:</p>
<p><code>ssh -Nf username@hostname.com -D 1080</code></p>
<p>replace username@hostname.com with the appropriate information. Look at the man page for ssh, or read the article linked above for an explanation of the options.</p>
<p>The next step is to configure Firefox to use the SOCKS proxy you setup with the above command. I&#8217;m using Firefox 2.0.0.6 on Ubuntu 7.04 Linux.</p>
<p><code>Edit | Preferences | Advanced | Settings</code></p>
<p>Pulls up the following dialog:</p>
<p><img src='http://lojic.com/blog/wp-content/uploads/2007/08/socks.png' alt='socks.png' /></p>
<p>Notice how I&#8217;ve switched from &#8220;Direct connection to the Internet&#8221; to &#8220;Manual proxy configuration&#8221;. I&#8217;ve also set the SOCKS Host to be &#8216;localhost&#8217; and the port to be &#8217;1080&#8242;.</p>
<p>I can now surf and have encrypted traffic between my local computer and the remote host I ssh&#8217;d to. The traffic between my remote host and the destination web site will be unencrypted, but hopefully that traffic is harder to sniff without being detected.</p>
<p>At this point, I tested it out and everything worked fine. I then killed my local ssh process and Firefox complained about the connection being reset, so I knew it was in fact sending data over the ssh tunnel.</p>
<p>The final step is optional, but if you want to avoid having the bad guys detect your DNS requests (or possibly redirect them &#8211; d&#8217;oh!), you can configure Firefox to route DNS requests through the proxy.</p>
<ol>
<li>Type <code>about:config</code> in the Firefox address bar.</li>
<li>Look for network.proxy.socks_remote_dns and set the value to true</li>
</ol>
<p>Is that easy or what? Thanks again Tyler.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lojicdotcom.wordpress.com/85/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lojicdotcom.wordpress.com/85/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lojicdotcom.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lojicdotcom.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.lojic.com&#038;blog=47773631&#038;post=85&#038;subd=lojicdotcom&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.lojic.com/2007/08/02/surf-securely-using-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3aeb549012715133bf4a8f43d47fab9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lojicwp</media:title>
		</media:content>

		<media:content url="http://lojic.com/blog/wp-content/uploads/2007/08/socks.png" medium="image">
			<media:title type="html">socks.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
