Odroid Xu4 PortaLAN

From kipiki
Jump to: navigation, search

This is a WIP document

No the project has not died (if you even saw this page), its just slowly chugging along. The physical build has come along nicely and is nearly done, working on the gentoo build currently, hope to have it all done within the next few weeks. Also planning on having this be a talk at the next B-Sides and one of the JaxLUG meetings. Pic: https://photos.app.goo.gl/RuPiA1RPV6cVtKjy2

Summary

What I've been doing for a while is lug around a laptop -> pi -> odroid and external drive and switch and access point and power wall warts and power strips and long electrical cables and its heavy/takes a while to set up/is annoying.
To resolve this, I'm building this all into a box I can carry around and just plug in with one cable and it will start servicing clients.

Machine purpose

This is what the machine will do when its running/clients connect to it
It will connect to a pre-defined wireless internet connection then it will provide the following services:

  • DHCP - to clients inside it's network
  • DNS - local addressing along with blocking of virus/malware/porn/fakenews via Stephen black's hostfile https://github.com/StevenBlack/hosts
  • Routing - to allow clients to get to the interwebs and to each other
  • Access Point - spawn an access point using HostAP
  • TFTP/PXE - allow clients to boot off the network for things such as os images for local organizations+troubleshooting (like linux/windows images) and potentially things like vulnerable images that people could boot vm's of and attack.
  • Fileserver - allow clients to download (and potentially upload) material such as conference videos/audio/ctf and other material
    • FTP - proftpd
    • HTTP - apache/lighttpd
    • bittorrent - rtorrent/opentracker
    • <potential> emule?/other p2p host
  • <potential> irc server/other local chat server

Hardware

Harbor Freight knock off pelican case <insert size when determined>
Odroid Xu4: https://ameridroid.com/products/odroid-xu4
32GB EMMC: also from ameridroid
2x Wireless card TL-WN722N: https://www.amazon.com/gp/product/B002SZEOLG
1x 32GB MicroSD: https://www.amazon.com/gp/product/B073JWXGNT
60mm fan (cooling/airflow): https://www.amazon.com/gp/product/B00N1Y493Q
Lenovo advanced plug -> square (sacrafice) for power: https://www.amazon.com/gp/product/B00FYYOWVU (this will be used with one of the 20V 90W power bricks I have laying around)
2x USB3 SATA iii drive atapters with external power & UASP: https://www.amazon.com/gp/product/B06WWLCYC3
2x Buck 12V regulator - https://www.pololu.com/product/2855
Buck 5V regulator - https://www.pololu.com/product/2865
USB 3 hub I have laying around
USB 2 6" extensions I have laying around (for wireless cards)

Power

2x drive, adapters come with 12v2A bricks, drive manufacture says 7W read, bricks can deliver 24W, some say rule of thumb is 25W/Drive, so lets calculate in the max possible to not have brownout, 50W
xu4 - 5v up to 4A - 20W
5V 2A overhead on selected regulator for other devices (fans/whatever): 10W
Total required power from power brick (peak): 80W
Total power supplied from IBM standard (large) brick: 90W
<<put in wiring diagram>>

OS

Core OS: gentoo
Why Gentoo: You can optimize and customize gentoo very well, and their documentation and community support is better for the odroid then debian's seems to be
Build: Gentoo from scratch on Odroid

Applications

Maintaining

Backing up

You would probably want to back up this system before taking to things like defcon and restore it after you get back just to make sure noone has a long-term intrusion

Restoring

Updating