wezm.net/v1/content/technical/2011/12/openwrt-on-alix.html

83 lines
3.4 KiB
HTML
Raw Permalink Normal View History

2016-12-30 07:02:03 +00:00
After ongoing issues maintaining a reliable Internet connection at home I
decided to add a custom built router to the network that would be in charge of
assigning IP addresses and sharing our Internet connection with the rest of the
network. I wanted something with at least two Ethernet ports so that all
Internet traffic would flow through the device and allow bandwidth hogs to be
identified at times when the connection appeared flooded.
2012-01-21 04:35:53 +00:00
After a bunch of research into appropriate hardware and software I
decided on a [PC Engines ALIX][alix] single board computer (alix2d13). The
ALIX is a small board about the size of a CD case with the following
features:
* 500Mhz AMD Geode (x86 compatible) CPU
* 256Mb RAM
* 2 × USB ports
* 3 × 10/100 Ethernet ports
* Mini-PCI socket (for WiFi if desired)
* RS-232 serial port
* CompactFlash socket
2016-12-30 07:02:03 +00:00
I also ordered one of [PC Engines cases][case] (case1s2u) to go with it.
2011-12-13 04:54:29 +00:00
[alix]: http://www.pcengines.ch/alix2d13.htm
2012-01-21 04:35:53 +00:00
[case]: http://www.pcengines.ch/case1d2u.htm
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
For the software I settled on [OpenWRT][openwrt]. I chose it for a number of
reasons:
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
* Good support for ALIX boards.
2016-12-30 07:02:03 +00:00
* Designed to run from Flash and read-only file systems.
2012-01-21 04:35:53 +00:00
* Great binary package manager that allows additional software to be
installed.
* Lightweight [Lua] based Web UI available ([LuCI][luci]).
2011-12-13 04:54:29 +00:00
[openwrt]: https://openwrt.org/
2012-01-21 04:35:53 +00:00
[luci]: http://luci.subsignal.org/
[Lua]: http://www.lua.org/
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
After learning to use the excellent OpenWRT build system I was able to
build a custom CompactFlash image for the board to run. I also created a
package for my [weather logging software][weather-software] so that the
ALIX can do all my [weather station][weather] logging.
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
[weather]: /personal/2010/09/weather-station/
[weather-software]: /technical/2010/09/weather-station-software/
2011-12-13 04:54:29 +00:00
2016-12-30 07:02:03 +00:00
I moved many of services that my ADSL modem and AirPort base station were
performing to the box and it's proven extremely reliable. This includes
maintaining the PPPoE connection to my ISP. I'd certainly recommend a set up
like this to anyone who is looking for a small, dedicated home router.
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
If you don't like the prospect of building your own custom OS image I'd
also highly recommend <tt>[m0n0wall]</tt>, which is a [FreeBSD] derived
router system. I ran this on the ALIX initially and it was very easy
to get up an running (write image to CF card, boot from card - default
settings worked fine but can be changed via a web UI) and very reliable.
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
[m0n0wall]: http://m0n0.ch/wall/
[FreeBSD]: http://www.freebsd.org/
2011-12-13 04:54:29 +00:00
2012-01-21 04:35:53 +00:00
<figure>
<img src="/images/2012/01/_MG_0562.jpg" width="600" height="258" alt="Front view" />
2012-01-21 04:35:53 +00:00
<figcaption>Front with three LEDs. The behaviour of the LEDs can
2016-12-30 07:02:03 +00:00
be customised in OpenWRT. I have the left one indicating power and
2012-01-21 04:35:53 +00:00
the middle one indicating activity on the WAN port. The other one is
currently unused.</figcaption>
</figure>
<figure>
<img src="/images/2012/01/_MG_0569.jpg" width="600" height="600" alt="Top view with CD for size comparison" />
2012-01-21 04:35:53 +00:00
<figcaption>Top of case, showing size in comparison to a CD case.</figcaption>
</figure>
<figure>
<img src="/images/2012/01/_MG_0567.jpg" width="600" height="600" alt="alix2d13 board" />
2012-01-21 04:35:53 +00:00
<figcaption>The ALIX board itself with the following connected: WAN
and LAN Ethernet, 8Gb [MosKeyto USB flash drive][moskeyto],
2016-12-30 07:02:03 +00:00
weather station USB cable and 32Mb CF card that the system boots from.</figcaption>
2012-01-21 04:35:53 +00:00
</figure>
[moskeyto]: http://www.lacie.com/au/products/product.htm?id=10425
2011-12-13 04:54:29 +00:00