Giter Site home page Giter Site logo

maciej-poleski / target-pxe-start Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 2 KB

A tool combining WoL, proxyDHCP, TFTP server and PXE enabling remote start of selected target machine using chosen boot image.

pxe pxe-boot pxe-server tftp-server tftp-protocol tftp dhcp-server wake-on-lan wakeonlan nas

target-pxe-start's Introduction

Target PXE start

A tool combining WoL, proxyDHCP, TFTP server and PXE enabling remote start of selected target machine using chosen boot image.

Critical user journey

  • You have a NAS (Network Attached Storage) in your network (or you can use VPN).
  • It's encrypted - both data as well as it's own software is encrypted at rest.
  • Due to the above, encryption is protecting your data only when NAS is powered off.
  • You also want to save on electricity and not run the NAS when nobody uses it, for example during nights.
  • Encryption key is stored separately - bundled with Operating System kernel (for example in initramfs image) and stored on client machines (machines which are supposed to have access to data stored in NAS).
    • Client machines vary from PC through laptops to smartphones.
    • Image can be stored as a plain file on encrypted partition (PC) or encrypted file using hardware supported key chain for key retrievel (Smartphone).
  • Maybe you also have a separate machine - backup. Organized in a similar way - fully encrypted.
  • A client can request NAS to be:
    1. Remotely powered on (using Wake on Lan)
    2. Pointed at client machine to fetch boot image (using proxyDHCP) .
    3. Start local TFTP server serving selected boot image to (only) selected target machine.
    4. Shut down TFTP and proxyDHCP as soon as the target machine has been booted.

The procedure should require minimal configuration and permissions. Preferably you only need to specify boot image and target MAC address and can run the tool using unprivileged local accout.

Architecture

The tool should eventually support three platfroms: Linux, Windows and Android. Support for Linux has priority. This repository contains only proof of concept and prototype. The desired solution consists of a few interchangeable modules enabling support and optimal code reuse across different platforms.

  • UI/command line gathers required configuration from the user and provides information about progress of remote boot process.
  • Wake on Lan issues WoL magic packet to selected target machine.
  • proxyDHCP issues DHCPOFFER packet with details about PXE environment such as address of local TFTP server serving selected boot image.
  • TFTP Server sends the boot image (only) to the target machine.
  • Image provider provides boot image for the TFTP server to be sent to the target machine.

While the general architecture and business logic remains the same across supported platforms, some modules might require dedicated implementation. It is especially foreseen that Android will require dedicated UI and most likely KeyChain based image provider (Smartphone is exceptionally vulnerable to unauthorized access attempts while the NAS encryption key has to be kept safe all the time). Hopefully network libraries can be implemented in a cross-platform way.

target-pxe-start's People

Contributors

maciej-poleski avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

wayneburlingame

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.