From 1fb06d8081be1b4d15360e9a687645047000d3a2 Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Sat, 4 Nov 2023 19:17:19 +0100 Subject: wgsd: add package Adds WGSD, a service that enables use cases such as: - Building a mesh of WireGuard peers from a central registry - Dynamic discovery of WireGuard Endpoint addressing (both IP address and port number) - NAT-to-NAT WireGuard connectivity where UDP hole punching is supported. Provides two packages: - wgsd-coredns - a DNS-SD server, which allows clients to discover other wireguard peers - wgsd-client - a client, which query DNS server and update wireguard peers endpoints Signed-off-by: Vladimir Ermakov --- net/wgsd/files/Corefile | 5 +++++ net/wgsd/files/wgsd-coredns.init | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 net/wgsd/files/Corefile create mode 100644 net/wgsd/files/wgsd-coredns.init (limited to 'net/wgsd/files') diff --git a/net/wgsd/files/Corefile b/net/wgsd/files/Corefile new file mode 100644 index 000000000..0dee396ab --- /dev/null +++ b/net/wgsd/files/Corefile @@ -0,0 +1,5 @@ +.:5353 { + log + #whoami + wgsd coredns.lan. vpn_wg +} diff --git a/net/wgsd/files/wgsd-coredns.init b/net/wgsd/files/wgsd-coredns.init new file mode 100644 index 000000000..59421444d --- /dev/null +++ b/net/wgsd/files/wgsd-coredns.init @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +START=99 + +USE_PROCD=1 +PROG=/usr/bin/wgsd-coredns + +start_service() { + procd_open_instance + procd_set_param command "$PROG" -conf /etc/Corefile + procd_close_instance +} -- cgit v1.2.3