aboutsummaryrefslogtreecommitdiff
path: root/net/wgsd/files
diff options
context:
space:
mode:
authorVladimir Ermakov <vooon341@gmail.com>2023-11-04 19:17:19 +0100
committerVladimir Ermakov <vooon341@gmail.com>2024-03-06 16:38:57 +0000
commit1fb06d8081be1b4d15360e9a687645047000d3a2 (patch)
treeb3a773933b2fc645e0d194812dbed2e0900d7ec0 /net/wgsd/files
parent032d566ccf457043104bdfeb6b3f9deee1a631d1 (diff)
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 <vooon341@gmail.com>
Diffstat (limited to 'net/wgsd/files')
-rw-r--r--net/wgsd/files/Corefile5
-rw-r--r--net/wgsd/files/wgsd-coredns.init12
2 files changed, 17 insertions, 0 deletions
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
+}