Pages

8.27.2015

Setting up an Ubuntu router

Over the last week I scratched an geeky itch that I'd been having for a while.  I wanted to convert away from using SOHO networking equipment.  Instead I configured a Linux based PC to act as a router/firewall/DNS/DHCP server and another linux box to be a media server. This post will cover the setup procedures for the router box.

During the process I learned a lot about networking.  In the past I have always been able to avoid iptables, but this time I could not.  I bit the bullet and decided to read up on how iptables worked instead of just blindly copying and pasting commands and crossing my fingers.  What did I learn?  iptables really aren't that difficult conceptually, they're just not explained well by most tutorials on the internet.  I won't try to explain them in detail in this post.  Here is a link to a site that explains them really well.  Specifically, see section 3 for details about how packets actually traverse iptables.  Reading that section first will help you understand the commands that you will input later.

Here is a basic list of functionality that my router needed to have in order to be a viable replacement for my current SOHO wifi router:
  • NAT routing
  • firewall
  • DHCP
  • DNS
  • OpenVPN 
Additionally,  my router is configured to handle the PPPOE connection to my DSL provider. This step is only necessary if you have DSL or some other service which uses PPPOE to connect.  As a bonus feature, I also set up a script to automatically update dynamic DNS for the current external IP address of the router.

First, I recommend configuring your new router without exposing it to the internet.  Plug the WAN port of your new router into your existing LAN.  Then plug another computer into the LAN port of your router.  This way you will be able to test all of your configurations without taking down your internet connection. 

8.25.2015

Google Drive High CPU usage

Ummm, why does my computer sound like a scaled down jet airplane about to take off?  Oh, just Google Drive running away trying to upload files while I don't have an internet connection.

Google Drive building up pressure with no Intertubes to vent with

As soon as I restore my internet connection by tethering my phone, Google Drive calms down again.  

Google Drive with internet connection

For those interested in collecting bug samples from the wild:
Google Drive OSX App version: 1.24.9931.5480
OSX Version 10.10.4