16

Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders
Page 2: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

Backend: Sidedoor

Sidedoorim

LoRaWAN BackendWeinheim (7.9.2019)

Hayati Aygün

Email: [email protected]

GPG Fingerprint:558E C9EF 3EAB 05E8 76AF 61DC D44C 9772 6FA1 CC0B

Page 3: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

3

Überblick

● LoRaWAN, Hoster & Betreiber

● Firewall !?

● Fernzugriff per SSH?

● Sidedoor

● Andere Anwendungen

Page 4: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

4

LoRaWAN

Temperatur

Nodesoft Sensoren:

Maschinen

Bienenstock

..

RFFunk

868 MHz

LoRaWANGateway(s):

Raspberry Pi+ iC880A-SPIConcentrator

Raspberry Pi+ iC880A-SPIConcentratorFeinstaub

Internet TTN(T)he

(T)hings(N)etwork

Server 1

Server 2

..

Page 5: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

5

LoRaWAN: Hoster & Betreiber

Temperatur

Nodesoft Sensoren:

Maschinen

Bienenstock

..

RFFunk

868 MHz

LoRaWANGateway(s):

Raspberry Pi+ iC880A-SPIConcentrator

Raspberry Pi+ iC880A-SPIConcentratorFeinstaub

Internet

TTNServer

BetreiberWartung

& Updates@ Hoster mit guter Position

Page 6: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

6

LoRaWAN: Firewall “für” Betreiber

LoRaWANGateway

Raspberry Pi+ iC880A-SPIConcentrator

Internet

TTNServer

BetreiberWartung& Updates

InternetRouter

z.B.FritzBox

mit Firewall

HeimNetz

Wartung& Updates

Firewalldes Routers!

Notebook(s)

PC(s)

..

Firewall unterbindet

Verbindungs-aufbau.

Nicht Daten-fluss

Page 7: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

7

LoRaWAN Gateway

Foto vonMichael, DC1PAA

Page 8: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

8

LoRaWAN Gateway

Foto vonMichael, DC1PAA

Page 9: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

9

Wartungszugang ?

● Im Gateway ist ein Raspberry Pi mit einem Linux OS

● Standard Fernzugriff für Linux: SSH

● SSH – Secure ShellErfordert (üblicherweise) Freigabe des TCP Port,damit sich “Betreiber” von außen verbinden kann.

Sicherheit (Passwort → Digitaler (RSA) Schlüssel, Verschlüsselung) gegeben

Page 10: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

10

SSH

● Linux: ssh, Standard in jeder Linux Distribution

● Windows: PuTTY, ?

● Windows 10: Windows Subsystem for Linux (WSL)(Ubuntu) aus dem Windows Store installierbar

● Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders Bandbreite schonend und damit sehr schnell

● GUI (X – Weiterleitung, ähnliche Remote Desktop) möglich,aber oft unerwünscht, da Grafik mehr Bandbreite benötigt

Page 11: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

11

Lösung: Reverse SSH – ohne Portfreigabe

● Gateway baut ständige Verbindung zu einem “Jumpserver” auf

● Jumpserver bietet SSH Zugang:Firewall ist deaktiviert, relevanter Port ist freigeschaltet

● Betreiber verbindet sich über den Jumpserver(über die stehende Verbindung) zum Gateway

● Fertiges Paket “sidedoor” in debian basierten Distributionenwie z.B. Raspbian für Raspberry Pi

Page 12: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

12

LoRaWAN: Reverse SSH / Sidedoor

LoRaWANGateway

Raspberry Pi+ iC880A-SPIConcentrator

Internet

Betreiber

Wartung& Updates

InternetRouter

z.B.FritzBox

mit Firewall

HeimNetz

Wartung&

Updates

Jump-Server

Page 13: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

13

Anderen Nutzungsmöglichkeiten

Andere Raspberry Pi Anwendungen

z.B. FMList Scannerhttps://codingspirit.de/fmlist_scan_Step-by-Step.pdf

Support für (wenige) AnwenderWartung für Hoster, die “nur” den Raspi bereitstellen

Page 14: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

14

Sidedoor Konfigurations Hilfe

Mglw. demnächst unterhttps://github.com/hayguen/sidedoor-config

ggf. per Email nachfragen!

Page 15: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

15

Alternativen ?

● Einrichtung eines VPN – Virtual Private Network

Page 16: Backend: SidedoorWindows 10: Windows Subsystem for Linux (WSL) (Ubuntu) aus dem Windows Store installierbar Shell / Texteingabe-Steuerung – ähnlich Command Shell – ist besonders

16

ENDEund

Danke für die Aufmerksamkeit!