<?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>Sector 930 &#187; networking</title>
	<atom:link href="http://www.sector930.com/blog/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sector930.com/blog</link>
	<description>EVERYBODY WRITES, NOBODY QUITS.</description>
	<lastBuildDate>Fri, 10 Sep 2010 03:45:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Bad Xbox Customer Support, Bad!</title>
		<link>http://www.sector930.com/blog/2009/08/24/bad-xbox-customer-support-bad/</link>
		<comments>http://www.sector930.com/blog/2009/08/24/bad-xbox-customer-support-bad/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 19:40:17 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[930posts]]></category>
		<category><![CDATA[customer support]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://www.sector930.com/blog/?p=975</guid>
		<description><![CDATA[Microsoft, you have ONCE AGAIN proven that your ability to grind my gears is truly infinite. Submitted for your approval&#8230;one Xbox 360 with a defective wired NIC.  I knew this fact as soon as I began troubleshooting his console, because, &#8230; <a href="http://www.sector930.com/blog/2009/08/24/bad-xbox-customer-support-bad/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Microsoft, you have ONCE AGAIN proven that your ability to grind my gears is truly infinite.</p>
<p><img class="aligncenter size-full wp-image-976" title="grinds-my-gears1" src="http://www.sector930.com/blog/wp-content/uploads/2009/08/grinds-my-gears1.jpg" alt="grinds-my-gears1" width="500" height="379" /></p>
<p>Submitted for your approval&#8230;one Xbox 360 with a defective wired NIC.  I knew this fact as soon as I began troubleshooting his console, because, great gaming consoles though they may be, the quality with which they are assembled (as well as the parts used therein) is <a href="http://blog.seattlepi.com/microsoft/archives/176741.asp">abysmal</a>.</p>
<p>That&#8217;s okay.  We already know that your console&#8217;s hardware blows.  I have an Xbox 360, and I love it.  I&#8217;d buy another one.  Of course, it&#8217;s been collecting dust in my sock drawer for 3 months, because all my recent gaming has been on my MacBook Pro, but regardless, my Xbox 360 retains a special place in my heart.  Probably because I waited in line all fucking night for it.  In November 2005.  In the freezing rain.  HAPPY TIME!</p>
<p>But I digress.  The reason for my (current) displeasure with Microsoft lies in the solution provided by an Xbox 360 phone rep (CSR) when asked about the aforementioned wired NIC.</p>
<p>I am a university residential network technician.  Basically, I fix shit when it breaks.  When I was called out the other day to investigate an Xbox 360 that wasn&#8217;t connecting to the network, I knew, immediately, that the problem was not with the network, but with the NIC on the Xbox.  When an Xbox gets a network connection, much like in Windows, the Xbox OS will tell you that the physical connection is active.  The connection was working on this gentleman&#8217;s laptop, on the same port, with multiple cables.  XBox?  Multiple cables?  Nada.  No link light, no connection, nothing on the switch.  Bad wired Ethernet.</p>
<p>I am okay with CSRs assuming complete customer ignorance.  I sat and listened while my customer worked with the CSR, and went through all of the same troubleshooting steps I went through, also to no avail.  I began to assume that the CSR was going to go ahead and authorize the repair on the Xbox, when he made one last suggestion.</p>
<p>&#8220;Sir, do you have a PC nearby?&#8221;<br />
&#8220;Yes, we tried connecting it to the same port, and it was working fine.&#8221;<br />
&#8220;Can you go to your PC please and tell me the operating system?&#8221;</p>
<p>At this point, I did the raise-one-eyebrow thing.  I&#8217;m pretty good at it.</p>
<p>&#8220;Sir,&#8221; the CSR said, &#8220;can you please open your command prompt?&#8221;</p>
<p>At this point, I knew exactly what the &#8220;solution&#8221; was going to be, and sat and watched, in horror, as the CSR explained to my customer how to spoof his PC&#8217;s MAC address onto his Xbox, on my network.  I have multiple problems with this solution.</p>
<p>1: The solution didn&#8217;t work.  In fact, the computer working on the same Ethernet port that the Xbox was not getting a connection on should&#8217;ve been a red flag to the CSR, indicating that the problem was with the Xbox.  They call it the &#8220;physical&#8221; layer because you know there is something &#8220;physically&#8221; wrong with the device when it doesn&#8217;t show a &#8220;physical&#8221; connection, capice?</p>
<p>2: Our network, like many university networks, uses MAC authentication and bypassing, and trying to &#8220;fool&#8221; it causes problems.  Our equipment does not take kindly to multiple devices acting like one device, and our CSRs are not trained, nor should they be, to look for this issue if someone is being continually kicked off the network because our management server doesn&#8217;t know what the fuck, which brings me to my next and most important point.</p>
<p>3: The user doesn&#8217;t know what they&#8217;re doing.  There was no explanation on the part of Microsoft on what the user was actually doing with their actions.  If the user doesn&#8217;t understand what they&#8217;re doing in the first place, there&#8217;s no way they&#8217;re going to know how to undo it, which creates more problems than it solves.  This &#8220;solution&#8221; is actually a terrible, terrible customer service philosophy.</p>
<p>Let&#8217;s say, for example, one of my customers called Microsoft support, not knowing for some reason that they can register their device online, or call our call center, and the CSR led him through the spoofing process.  Great!  It works!  For&#8230;a few minutes.  Then he calls us because he keeps getting kicked off, and we look like crap because our CSRs cant figure out the problem, because they&#8217;re not trained to, and the customer doesn&#8217;t know or understand what he did, and ends up even more frustrated.</p>
<p>So now both companies look bad, and he has a broken Xbox, which, I think, is the price of putting a bandaid on a bullet hole.</p>
<p>4: Maybe it&#8217;s the &#8220;networking guy&#8221; part of me, but telling students to spoof their MAC addresses generally doesn&#8217;t sit right with me.  If this is really what Microsoft thinks about network security, why should I buy their products?</p>
<p>Or, maybe I&#8217;m just becoming paranoid.  Fuck it, I&#8217;m moving to Wyoming.  NOBODY CAN GET ME THERE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sector930.com/blog/2009/08/24/bad-xbox-customer-support-bad/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>That Apache-HTTP-DoS Thing.</title>
		<link>http://www.sector930.com/blog/2009/06/24/that-apache-http-dos-thing/</link>
		<comments>http://www.sector930.com/blog/2009/06/24/that-apache-http-dos-thing/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 21:50:58 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[930posts]]></category>
		<category><![CDATA[The more you know...]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.sector930.com/blog/?p=787</guid>
		<description><![CDATA[This month marks the beginning of weeks of boredom for millions of  pasty teenagers everywhere. To mark this event, some a-hole released an easy-to-use script that makes it trivially easy to bring down an Apache-based website. This script, called &#8220;Slowloris,&#8221; &#8230; <a href="http://www.sector930.com/blog/2009/06/24/that-apache-http-dos-thing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: left;">This month marks the beginning of weeks of boredom for millions of  pasty teenagers everywhere. To mark this event, some a-hole released an easy-to-use script that makes it trivially easy to bring down an Apache-based website. This script, called &#8220;<a href="http://ha.ckers.org/blog/20090617/slowloris-http-dos/">Slowloris</a>,&#8221; takes advantage of a fundamental mechanic of Apache. This is not a hack. When run, it opens as many HTTP connections as possible.  Apache servers limit the number of possible connections to prevent runaway usage of system resources. This tool opens as many connections as possible, preventing legitimate users from connecting.</div>
<div id="attachment_794" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-794" title="apache" src="http://www.sector930.com/blog/wp-content/uploads/2009/06/apache-300x225.jpg" alt="apache" width="300" height="225" /><p class="wp-caption-text">Note: Not IIS <img src='http://www.sector930.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p></div>
<p>In most large-scale production environments, there is some sort of load balancing or proxy-ing going on, which will prevent the site from becoming completely unreachable. Small and medium scale environments will probably not have this. While there are some options for lessening the impact of this attack, none are entirely effective at preventing it due to its nature. (You can read about those options <a href="http://isc.sans.org/diary.html?storyid=6613">here</a>.) While this idea is not original, the way it was packaged is bad news. This script is kind of a big deal for the following reasons:</p>
<ul>
<li>Pretty much all standard Apache installations are vulnerable</li>
<li>There is no patch, as it takes advantage of how Apache is suppose to work</li>
<li>It&#8217;s hella easy to use (enough so that &#8220;script kiddies&#8221; can use it.)</li>
<li>One person on one laptop can bring down a website. Not botnet required!</li>
</ul>
<p>The original script is written in perl. There is also a python implementation called &#8220;PyLoris&#8221; available <a href="http://motomastyle.com/pyloris-a-python-implementation-of-slowloris/">here</a>. This is a classic denial-of-service attack running over HTTP against APACHE. This means it will not affect SSH or FTP or whatever else you are running on that server. For the most part, it won&#8217;t even eat up system resources too much. For reasons beyond my knowledge, this does not affect Microsoft&#8217;s web server, IIS.</p>
<p>HOWEVER:</p>
<p>Any server running iptables (linux) can add the following lines:</p>
<pre>iptables -I INPUT -p tcp --dport 80 -m state --state NEW -m recent --set</pre>
<pre>iptables -I INPUT -p tcp --dport 80 -m state --state NEW -m recent --update --seconds 60 --hitcount 20 -j DROP</pre>
<p>These two lines drop any new connections after more than 20 connections have been made by the same source to port 80 within the last 60 seconds. These are pretty arbitrary numbers, and could take some tuning, but they prevent this attack from bringing down a website. (At least it prevents one person from doing it)</p>
<p>There is also a way to limit the number of sockets per IP in Apache, but I do not know how. That would probably be a better solution that the one proposed above. If someone know how to do it, please add to the comments.</p>
<p>A NOTE: It rankles me when people use the term &#8220;<a href="http://en.wikipedia.org/wiki/Script_kiddie">script kiddie</a>.&#8221; This term is extremely dismissive, and is used mostly by crotchety IT professionals who forgot what it&#8217;s like to have three months off. I understand that there is a difference between &#8220;script kiddies&#8221; and &#8220;teenager hackers&#8221; but for the most part, the two are lumped together. People learn by looking at the examples of others. These kids will use these scripts this summer, but next summer, or the year after, they will be writing them, and making even more work for these same &#8220;hardened&#8221; IT &#8220;professionals.&#8221; So, bored teenager: go nuts. Have fun. Learn as much as you can. Just don&#8217;t be a douche about it.</p>
<p>ANOTHER NOTE: Yes, in case you are wondering, I do make the &#8220;quotations gesture&#8221; while I talk &#8220;IRL.&#8221;</p>
<p>ONE FINAL NOTE: I fully support people writing tools like this. There is nothing wrong with a little more awareness. I do find the timing amusing though.</p>
<p>If you have anything to add, or you find something wrong with my solution, please feel free to leave a comment so that I can take your ideas as my own.</p>
<p>P.S. I tried hard, but I couldn&#8217;t find any other suitable images to put here. Sorry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sector930.com/blog/2009/06/24/that-apache-http-dos-thing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>3rd Party Router Firmware: A Brief Guide</title>
		<link>http://www.sector930.com/blog/2009/06/17/3rd-party-router-firmware-a-brief-guide/</link>
		<comments>http://www.sector930.com/blog/2009/06/17/3rd-party-router-firmware-a-brief-guide/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 01:13:09 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[930posts]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[The K'nexus]]></category>

		<guid isPermaLink="false">http://www.sector930.com/blog/?p=727</guid>
		<description><![CDATA[There is a point in many a nerds&#8217; life where he or she finds themselves constrained by their home router. For the confused, it probably looks like this: This little devices sits between your cable modem and your computer. It &#8230; <a href="http://www.sector930.com/blog/2009/06/17/3rd-party-router-firmware-a-brief-guide/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: left;">There is a point in many a nerds&#8217; life where he or she finds themselves constrained by their home router. For the confused, it probably looks like this:</div>
<div id="attachment_728" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-728" title="wireless-router" src="http://www.sector930.com/blog/wp-content/uploads/2009/06/wireless-router-300x272.jpg" alt="Look familiar?" width="300" height="272" /><p class="wp-caption-text">Look familiar?</p></div>
<p>This little devices sits between your cable modem and your computer. It basically is your &#8220;network.&#8221; Most people just plug them in, and configure only as much as it takes for it to work. These devices are, at a basic level, computers themselves, and as such have an &#8220;operating system&#8221; that provides a interfaces for you to tell the hardware what to do (like all operating systems.) Usually, you are stuck with the OS that shipped with the device.</p>
<p>Cut to June, 2003, when some neckbeards on the Linux Kernel Mailing List<strong> </strong>discovered that Linksys had included components of the Linux operating system in the firmware of their router.<strong> </strong>Due to the way those borrowed components were licensed, Linksys was legally obligated to release the entire source code for that OS. By studying this code, developers were able to create new operating systems that ran on the same hardware. Several projects aiming to replace the often-buggy stock operating system firmware sprang into existence, all adding new features. The dust has settled since then, and there are many mature firmware flavors to choose from.  I will focus on three, because I&#8217;ve used two, and Sam is currently using the third.</p>
<p><a href="http://www.dd-wrt.com/dd-wrtv3/index.php"><strong>DD-WRT</strong></a><strong>:</strong> I had pretty good luck with this one, and  have used it on my primary router. I was able to play Diablo 2 with some VPN&#8217;ed in while talking to them on Skype with no problems, although I wasn&#8217;t able to do anything else while bittorrent was running (this was probably due to limitations of the hardware i.e. it ran at 200 mhz) The DD-WRT project itself has weird issues with trying to make money, and their last stable release was almost a year ago. That being said, it runs on a lot of different consumer-grade routers, and it runs pretty well.</p>
<p><a href="http://openwrt.org/"><strong>OpenWRT</strong></a><strong>:</strong> &#8220;Linux is free if your time is worth nothing.&#8221; That saying sums up my experience with OpenWRT pretty well. Getting this installed and running was a pain in the ass. That&#8217;s not saying it isn&#8217;t a good product, but the project itself was in the process of un-forking when I looked at it, and I found the whole thing generally confusing. I was new to the Linux scene when I tried it, and was barely able to get it working. I have not looked at it in a couple years, so maybe it has improved. The OpenWRT also supports a side project called <a href="http://www.x-wrt.org/">X-Wrt</a> which aims to improve the usability of OpenWRT.</p>
<p><a href="http://www.polarcloud.com/tomato"><strong>Tomato</strong></a><strong>:</strong> I had moved beyond consumer devices by the time I discovered Tomato. But from what I read and heard from Sam, this would probably be my first choice in upgrading my router to new firmware. The most recent update was less than a month ago. As I have never used it, I asked Sam for his thoughts:</p>
<blockquote><p><strong>Sam here.</strong> I&#8217;ve been using Tomato for quite a while now, on a WRT54GL (which Edwin gave to me, no less). It has served me well. I don&#8217;t think I&#8217;ve ever had to power cycle the router. The programmers did a great job, especially with the web interface (think AJAX gizmos).</p>
<p>Some of my favorite features are the usual port forwarding, static DNS, spiffy real-time bandwidth graphs, and tables of daily/weekly/monthly bandwidth usages. You also get SSH and telnet access. You can even write custom scripts that execute when you press the Cisco button on the front of the router.</p>
<p>There&#8217;s a lot of other stuff that I have no clue about. My only complaint is that the firmware is updated pretty frequently, yet there is no auto notification of any updates.</p>
<p>There&#8217;s definitely enough features here to satisfy even the most hardcore network nerds. But it also works for someone like me, who just wants more than the commercial firmware.</p></blockquote>
<p>There are a couple other distributions of home router software that deserve mention. The aforementioned firmwares run on hardware people already are using as routers. But if you need something with a little more horsepower, you could recycle an old PC and run m0n0wall (or it&#8217;s derivative, pfSense) on it.</p>
<p><strong><a href="http://m0n0.ch/wall/">m0n0wall</a>:</strong> A modified barebones version of FreeBSD with a slick web interface. It provides an amazing amount of features, including VPN and QoS. And as it&#8217;s FreeBSD, it can run on probably any older computer you have just lying around, or a specially designed system such as the <a href="http://www.pcengines.ch/alix.htm">PCengines ALIX</a>. The m0n0wall platform has also been used as a base for other projects, such as <a href="http://www.freenas.org/">FreeNAS</a>, <a href="http://www.askozia.com/pbx/">AskoziaPBX</a>, and&#8230;.</p>
<p><strong><a href="http://www.pfsense.com/">pfSense</a>:</strong> A modified version of m0n0wall, and my current favorite. Not intended as a competitor to m0n0wall, it boast more features, as well as a much larger footprint. I would suggest that you start with m0n0wall and upgrade to pfSense if you feel the need.</p>
<p>NOTE: The first three flavors mentioned are intended to run on your standard home router, and include immediate support of the wireless functionality you expect out of your home router. m0n0wall and pfSense are intended to run on actual computers, so other arrangements will have to be made to add wireless, such as adding a separate wireless access point behind the router.</p>
<p>I&#8217;m not going to give instructions here on upgrading your home router. Each project mentioned has extensive documentation on their website, along with a hardware compatibility list and installation instructions.</p>
<p>Some warnings: Installing new firmware on a home router can be a marginally harrowing process, involving TFTP, blinking lights, and properly timed hard resets. Also, there is potential to completely brick the device (render the device as useful to you as a brick.) So if you are curious about any of these, spend some time on their wikis and forums. Make sure your home router is supported, or, better yet, get a new home router based on the project community&#8217;s recommendations. This way, if you mess up, you will still have internet access with your old router.</p>
<h2 style="text-align: center;"><strong>My Setup: &#8220;The K&#8217;nexus&#8221;<br />
</strong></h2>
<div id="attachment_739" class="wp-caption aligncenter" style="width: 490px"><img class="size-full wp-image-739" title="knexsus" src="http://www.sector930.com/blog/wp-content/uploads/2009/06/knesus.jpg" alt="This took me 25 minutes in Gimp." width="480" height="640" /><p class="wp-caption-text">This took me 25 minutes in Gimp.</p></div>
<p>On a completely unrelated note, if anyone with computer graphics skillz would like to join our team, please do so. There is no application process. You are now a member. Get to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sector930.com/blog/2009/06/17/3rd-party-router-firmware-a-brief-guide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
