Emergency cloud server

39
11/07/14 1 Jesse Alexander, WB2IFS/3 Emergency Cloud System Jesse Alexander, WB2IFS/3 Prince George's County ARES/RACES, Clinton CERT, SKYWARN [email protected] This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

Transcript of Emergency cloud server

Page 1: Emergency cloud server

11/07/14 1Jesse Alexander, WB2IFS/3

Emergency Cloud System

Jesse Alexander, WB2IFS/3Prince George's County ARES/RACES, Clinton

CERT, [email protected]

This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

Page 2: Emergency cloud server

11/07/14 2Jesse Alexander, WB2IFS/3

It's (been) alive!!!

Page 3: Emergency cloud server

11/07/14 3Jesse Alexander, WB2IFS/3

It all started with a troll I put on linkedin.com..

Page 4: Emergency cloud server

11/07/14 4Jesse Alexander, WB2IFS/3

Then I got...

Page 5: Emergency cloud server

11/07/14 5Jesse Alexander, WB2IFS/3

Basic Idea: when all else fails “send in the Cloud”

● Mesh Web server connected in a true cloud: mesh of diverse devices providing diverse services

● Survivable

– Self healing

– Low power consumption (battery/solar operated)

● Deployable

– Mobile

– Portable

– Battery backed solar

– Small and lightweight

Page 6: Emergency cloud server

11/07/14 6Jesse Alexander, WB2IFS/3

Uses

● Emergency management site

● Winlink.org/Mesh Gateway

● Digital Resource net: Knowledge for deployed volunteers (manuals, ICS forms, private email and chat, etc.)

● 3rd responder Situational Awareness

● VoIP and messaging server (D-RATS, Echolink, etc.)

● Health and welfare site ( Red Cross safe and well, Ushahidi mapping)

Page 7: Emergency cloud server

11/07/14 7Jesse Alexander, WB2IFS/3

Web server

Use case: Situational Awareness

Triage site Web cam

● Blog running on Raspberry PI provides history/status

● Chat using D-RATS, file transfer via telnet, etc.

● Remote video feeds● Health and welfare beacon● WX telemetry

Incident command

Page 8: Emergency cloud server

11/07/14 8Jesse Alexander, WB2IFS/3

Web server

Use case: Shared Paclink email server

Mobile Triage

Incident command

Winlink.org station

● Stations set up throughout a large shelter/site

● Mobile/portable stations● Multiple hams use one

Paclink email server● Access to social media

through email gateways

Web cam

Page 9: Emergency cloud server

Jesse Alexander, WB2IFS/3

ECSECS

Use Case: D-Rats over Hamnet

● DD-WRT router: provides access to Raspberry Pi backend

● Configured as AP

● D-rats client running● Running D-rats client on

Raspberry Pi via VNC● Sending messages

between clients on same router

Standard Wi-Fi

Web server

● D-rats client● Ratflector

Page 10: Emergency cloud server

Jesse Alexander, WB2IFS/3

ECSECS

Use Case: D-Rats over Hamnet

● D-rats client running locally on laptop● Sending messages between clients on

different routers● Using VNC to run Ratflector on PI's GUI

● D-rats client● Ratflector

HSMM-MESH

Web server

Page 11: Emergency cloud server

Jesse Alexander, WB2IFS/3

Use Case: over Hamnet

Page 12: Emergency cloud server

11/07/14 12Jesse Alexander, WB2IFS/3

Use case: Overlay Network Tiers

5 or 3 GHz BOARNet● Backhaul/long distance● Long range● P2P connections● Highspeed >10Mbps● Optional mesh mode for emcomm

2.5 GHz Broadband Hamnet● Campus/Intranet● Short range● mesh mode● <10Mbps

Page 13: Emergency cloud server

11/07/14 13Jesse Alexander, WB2IFS/3

DisasterDisasterDisasterDisasterDisasterDisasterDisasterDisaster

Disaster – Response – Recovery Cycle

A B

D

C

Islands begin to interconnect (Mesh) as recovery process continues

Recovery Islands reappear as response starts

E

Islands stand down as response becomes recovery

Normal operation: high speed point-to-point

A B

D

C

E

G

Normal point-to-point operation resumes

Mobile nodes arrive to support response

Page 14: Emergency cloud server

11/07/14 14Jesse Alexander, WB2IFS/3

Recovery Island

● Safe and Well message board● Volunteer processing● Games● Inspiration

ECS

● Safe and Well message board● Situational Awareness● Emergency management● Tactical net

Public Cloud System

Public Services CloudPublic Services Cloud EmComm CloudEmComm Cloud

Mesh backhaul

Page 15: Emergency cloud server

11/07/14 15Jesse Alexander, WB2IFS/3

Raspberry Pi Installation

1.Install basic firmware and remote login support

2.Move main partitions from Flash Card to HDD

3.Install Hardware and software for GPS/RTC support

4.Install web server and Content Management System

5.Configure HSMM nodes

6.Create content for web site

http://www.raspberrypi.org/

Page 16: Emergency cloud server

11/07/14 16Jesse Alexander, WB2IFS/3

Install basic firmware software and remote login support

● Connected the PI to TV analog input and used USB keyboard and mouse

– http://www.raspberrypi.org/faqs Has instructions.● Installed & configured PuTTy client on test laptops (except for

the MacBook which doesn't need it)

● Configured static IP on the PI

– http://www.penguintutor.com/blog/viewblog.php?blog=6306● Installed tightvncserver (Optional)

Page 17: Emergency cloud server

11/07/14 17Jesse Alexander, WB2IFS/3

Move main partitions from Flash Card to HDD

● I tried other instructions but these worked best for me: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=275750#p275750

Page 18: Emergency cloud server

11/07/14 18Jesse Alexander, WB2IFS/3

Pi doesn't have a real time clock!

– Adafruit GPS provides battery backed RTC function

– Network Time Server capabilities

– Location telemetry!

– See https://www.adafruit.com/blog/2012/08/28/adafruit-ultimate-gps-on-a-raspberry-pi/

https://www.adafruit.com/products/746

Page 19: Emergency cloud server

11/07/14 19Jesse Alexander, WB2IFS/3

Install Hardware and software for GPS/RTC support

● Configured Pi to allow use of /dev/ttyAMA0

● Installed minicom to test Adafruit Ultimate GPS

● Installed ntp

● Installed gpsd

– Configured it to use /dev/ttyAMA0

– Configured gpsd.php in /var/www

● See the following sites:

– http://www.akadia.com/services/ntp_synchronize.html

– http://www.catb.org/gpsd/index.html

– http://open.konspyre.org/blog/2012/10/18/raspberry-pi-time-server/

Page 20: Emergency cloud server

11/07/14 20Jesse Alexander, WB2IFS/3

GPS Status Screen-shot

Page 21: Emergency cloud server

11/07/14 21Jesse Alexander, WB2IFS/3

Install web server and Content Management System

● I used instructions from this site: http://mitchtech.net/wordpress-on-raspberry-pi/

● I also configured WordPress.org with a “child Theme” so I could hack it without losing configuration during upgrades

● Configured gpsd.php to display localized information with gps status

● Used the WebMail/Paclink install instructions from Active Ham to set up the webmail system

Page 22: Emergency cloud server

11/07/14 22Jesse Alexander, WB2IFS/3

Configure HSMM-MESH node● Took several tries to find the right configuration for

the HSMM-MESH node connected to the PI

● Wordpress.org is persnickety about IP addresses—especially when it comes to pictures

● The 5-host DMZ mode worked best

● Needed the “search and replace” WP plug-in to clean out unroutable addresses from first pass Wordpress.org configuration on the PI

– Noticed that the pictures didn't load because of bad references

– Replaced IP address with “wb2ifs-103-rpi/wordpress” URL

Page 23: Emergency cloud server

11/07/14 23Jesse Alexander, WB2IFS/3

HSMM-Mesh Server Configuration

Page 24: Emergency cloud server

11/07/14 24Jesse Alexander, WB2IFS/3

HSMM Server Configuration (cont.)

Page 25: Emergency cloud server

11/07/14 25Jesse Alexander, WB2IFS/3

HSMM Server Configuration (cont.)

Page 26: Emergency cloud server

11/07/14 26Jesse Alexander, WB2IFS/3

Mesh Server Schematic

12-13vdc 5vdc @ 1A

5vdc @ 2A

USB

Serial Port0

10.1.224.217

10.1.224.218

WRT54GS running HSMM-MESH

250GB Laptop HD

GPS Receiver/Real Time ClockCompact USB

Charger

Jesse Alexander, WB2IFS1/28/2013

MausBerrySwitch

Page 27: Emergency cloud server

11/07/14 27Jesse Alexander, WB2IFS/3

Bill of MaterialsITEM Quantity Price subtotal Model #

Compact USB Charger 1 $20.00 $20.00 USBCC-COMPX2

HDD enclosure 2 $15.99 $31.98 IM25COM-BK

WD Notebook Hard Drive 1 $58.99 $58.99 WDBABC3200ANC-NRSN

USB to Micro-USB cable 2 $10.00 $20.00

all-in-one Card reader 1 $10.99 $10.99

Raspberry PI B 2 $35.00 $70.00 RASPBERRY-PCBA

Serial GPS/RTC unit 1 $39.95 $39.95 Adafruit Ultimate GPS

1220 Lithium battery 1 $5.00 $5.00MausBerry Shutdown switch 1 $20.00 $20.00 Shutdown switch with rocker

HSMM-MESH access point 1 $3.99 $3.99 WRT54GStotals $280.90

Page 28: Emergency cloud server

11/07/14 28Jesse Alexander, WB2IFS/3

List of Wordpress.org Plugins

Plugin Why it's installed

List Yo' Files Package support for e-gokit

Quick Chat Allow operators at multiple stations to collaborate in real time

Search & Replace Allows the changing of the servers IP address in all the wordpress tables

Vasaio QR Code Allows easy data transfer from Wordpress pages to smart phones and tablets

PHP Code widget For the “on line” detection widget

Updraft + Backup and restore

Page 29: Emergency cloud server

11/07/14 29Jesse Alexander, WB2IFS/3

Next steps● Add system status page for vitals telemetry (CPU temp, usage, memory and disk

capacity, etc.) DONE

● Add Paclink integration for Webmail via ham radio DONE: RPi is web server and Paclink running on Laptop with Kantronics modem and VHF Radio (Rpi may not have enough “horse power” to run it all)

● Set power budget for solar array and battery capacity (Calculated need for 100W PV array, very expensive)

● Determine best way to package system

– Using outdoor box

– Considering using Rootenna enclosure

– Using an old plastic tool box

– Inverted 5-gal jug “bell-jar” vs. briefcase vs. NEMA box

– Pi components are rated for commercial temperature range 0-70deg C will it work outside?

Page 30: Emergency cloud server

11/07/14 30Jesse Alexander, WB2IFS/3

Next steps● R&D on integration with Commotion Wireless and Project Byzantium

● Replace AP with 2nd Raspberry PI running Broadband-hamnet

● Considering replacements for Raspberry PI because I'm maxing out RAM and the Hard drive latency is increased because of its connection to the USB port:

Page 31: Emergency cloud server

Jesse Alexander, WB2IFS/3

Shameless plugs● Project site: https://sites.google.com/site/ecsmesh/

● These slides: http://www.slideshare.net/jessenalexander/emergency-cloud-server

Page 32: Emergency cloud server

11/07/14 32Jesse Alexander, WB2IFS/3

THE ENDTHE END

Page 33: Emergency cloud server

11/07/14 33Jesse Alexander, WB2IFS/3

Test Configuration

WB2IFS-10044.128.60.25

WB2IFS-103-RPi44.128.60.27

10.1.224.217

10.1.224.218 (Static)

172.27.0.148 (DHCP)

172.27.0.1 10.1.224.220 (DHCP)

CLIENTCLIENT

Primary Web serverPrimary Web server

WAN port to Internet (DHCP)

Console,Console,2nd Web server2nd Web server

WL2K modemWL2K modemVHF radioVHF radio

Page 34: Emergency cloud server

11/07/14 34Jesse Alexander, WB2IFS/3

Client test Configuration

Page 35: Emergency cloud server

Test Case: Internet Relay Chat (IRC) over Hamnet

● Xchat clients running locally on laptops● Sending messages between clients on

different routers

HSMM-MESH

WB2IFS-102

Instructions: http://www.broadband-hamnet.org/applications-for-the-mesh/118-internet-relay-chat-irc.html

WB2IFS-100IRC server

WB2IFS-113IRC Server

Page 36: Emergency cloud server

Test Case: Internet Relay Chat (IRC) over Hamnet @Toughbook

Instructions: http://www.broadband-hamnet.org/applications-for-the-mesh/118-internet-relay-chat-irc.html

Page 37: Emergency cloud server

Test Case: Internet Relay Chat (IRC) over Hamnet @Notebook

Page 38: Emergency cloud server

Test Case: Internet Relay Chat (IRC) over Hamnet @Toughbook

Page 39: Emergency cloud server

Test Case: Internet Relay Chat (IRC) over Hamnet @Notebook