Language Selection

English French German Italian Portuguese Spanish

Software: WireHub, PipeWire, Teleirc, Futatabi and Knot Boards With Inkscape

Filed under
Software
  • wirehub - decentralized, peer-to-peer and secure overlay networks built with WireGuard

    Hello,

    I've been giving my free time on a side project called WireHub
    (https://github.com/gawen/wirehub), which is a simple tool to build
    decentralized, peer-to-peer and secure overlay networks. It dynamically
    configures WireGuard tunnels, discoverying peers' endpoints via a
    authenticated
    DHT, going through NATs, and relaying the WireGuard traffic if no P2P
    communication is possible.

    Overlay networks are defined by a single human-readable file which lists the
    hostname and public key for each nodes of the network. Here's an example:

    name test # network name is 'test'
    subnet 10.0.42.0/24 # overlay subnetwork is 10.0.42.0/24
    workbit 8 # PoW parameter for DHT security

    # a public bootstrap node
    boot P17zMwXJFbBdJEn05RFIMADw9TX5_m2xgf31OgNKX3w bootstrap.wirehub.io

    # Add trusted node 'a.test' to the overlay network.
    # Each trusted node are at least identified by an human-readable
    hostname
    # and a base64 public key.
    trust a.test KJ7YGrBeqLLm_JJ1huIS26OnqAVFy57z5UJqjyMagW4

    # If the endpoint of a peer is static, it might be set after the public
    key.
    # Note that this is optional, as endpoints can be dynamically found in
    the
    # DHT.
    trust b.test eIix5ldvqDzOIrG9ViKTe9TSBlF4g9nUwKi20C06hFM 12.34.56.78

    # By default WireHub assigns nodes an (overlay) private IP, but a static
    # private IP might be defined
    trust c.test 10.0.42.254 kKZzuIm11zkBSHL9ETRwEthIBbLTvz840F_k4mhI_Hs
    ...

    To start a peer,

    # wh up ./config private-key ./sk

    When a network is up, the node's hostnames are resolved in userland.

    # ping b.test
    PING 10.0.42.2 (10.0.42.2): 56 data bytes
    64 bytes from 10.0.42.2: seq=0 ttl=64 time=106.801 ms
    64 bytes from 10.0.42.2: seq=1 ttl=64 time=49.778 ms

    WireGuard and WireHub uses the same Curve25519 key. WireHub keys must be
    generated with `wh genkey`, which adds a Proof-of-Work to the generation of
    the
    Curve25519 key, in order to mitigate Sybil attacks on the DHT. A high
    workbit
    will require more work to generate a valid key.

    # wh genkey workbit 8 # fast
    MFaqLuutFvNs79Xc9zhOUofIbL3xSLz1uo+RB1xB73s=
    # wh genkey workbit 8 | wh pubkey | wh workbit
    8
    # wh genkey workbit 16 # will take more time to generate
    kLfotsCIfB/7OcDGeLenptfy2Dzav9wmVZjVQ0Gvnk0=
    # wh genkey workbit 16 | wh pubkey | wh workbit
    16

    # wg genkey | wh pubkey | wh workbit # WireGuard keys have 0 workbit
    0

    Under the hood, WireHub runs its own UDP protocol, binding the same UDP port
    than the WireGuard interface (for NAT trasversal technique reasons). It
    does so using
    libpcap. The first byte of a WireHub packet is 0xff, which corresponds to an
    invalid WireGuard packet with message type outside the valid range
    0x00-0x03.

    WireHub currently authenticates its packets with a custom cryptographic
    scheme
    based on the node's keys. In the future, it might be better to tunnel
    WireHub
    packets through WireGuard, yet I'm not sure how to do that simply at the
    moment,
    as WireHub packets are not IP packets but more like authenticated messages.

    There's much room for improvement (security, allowed-ips management, more
    UDP
    hole punching techniques, faster relaying), but it's usable. Docker images
    are
    provided to ease quick starting.

    Feel free to test and give some feedbacks!

    Also, I'll be at FOSDEM 2019 next week-end, so see you there!

    Gawen

  • WireHub Is Building Off WireGuard With Decentralized, P2P Secure Overlay Networks

    WireHub is a new open-source project aiming to provide decentralized, peer-to-peer and secure overlay networks that is tooled around the WireGuard secure VPN software.

    Thanks to building off WireGuard tunnels, in less than ten thousand lines of code itself supports creating secure overlay networks while being decentralized with peer discovery, peer-to-peer and relayed communication, and other features.

  • PipeWire Should Be One Of The Exciting Linux Desktop Technologies For 2019

    One of the Linux desktop technologies that is quite exciting and will hopefully see more widespread adoption this year is the Red Hat backed PipeWire initiative.

    PipeWire has been in development now for two years to overhaul the Linux desktop's audio/video processing in trying to fulfill the roles currently handled by PulseAudio and HACK, among others, while handling video input too and also tieing into the Wayland desktop/screen remote capabilities too. Oh yeah, and supporting Flatpaks as part of its design.

  • Teleirc v1.3: Developers map out next release

    On Saturday, February 2nd, 2019, the Teleirc community in Rochester, NY held the first developers’ meeting. Starting this month, weekly meetings are held to discuss blocking issues and plan ahead for the future of the project. Current project lead Justin W. Flory met with Tim Zabel and Nic Hartley to finish planning the v1.3 milestone for Teleirc. Notably, this marks the next feature-release of Teleirc since v1.2 in October 2018.

    Read on to learn more about what’s coming in Teleirc v1.3.

  • Futatabi: Multi-camera instant replay with slow motion

    I've launched Futatabi, my slow motion software! Actually, the source code has been out as part of Nageru for a few weeks, so it's in Debian buster and all, but there's been a dash the last few days to get all the documentation and such in place.

  • Knot Boards

    First step is to pull out Inkscape and design the graphics. I grabbed a rope border from Open Clipart and grabbed some knot graphics from a Scouting PDF (which I can't find a link to). I put those together to create the basic design along with labes for the knots. I also added a place for each Scout to sign their name as a Thank you to the Den Leader. I then make some small circles for the laser cutter to cut out holes for the ropes. I made a long oblong region on the right so the board would have a handle and a post to tie the hitches around. Then lastly I added the outline to cut out the board.

    To get the design into the laser cutter I exported it from Inkscape in two graphics. I exported the cut lines as a DXF and I exported the etching as a 300 DPI PNG. The cut lines were simpler and the laser cutter software was able to handle those and create simple controls for the cutter. The knots on the other hand were more complex vector objects and the laser cutter software couldn't handle them. Inkscape could, so I had it do the rendering to a bitmap. The laser cutter can then setup scans that use the bitmap data which worked very well.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.