From 28c7c00149959ece6d8db9fd1f1b20572d21628e Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 6 May 2023 08:53:55 +0900 Subject: [PATCH] enable derp server --- compose.yml | 1 + etc/headscale/config.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/compose.yml b/compose.yml index 6c1cac5..ad15c97 100644 --- a/compose.yml +++ b/compose.yml @@ -81,6 +81,7 @@ services: image: headscale/headscale:0.23.0@sha256:a02592e70c12b77b7f3b99c142818f7636a44c97bfa38f678b8c9c3ae5f82895 restart: unless-stopped ports: + - "3478:3478/udp" - "127.0.0.1:9200:9200" volumes: - ./etc/headscale:/etc/headscale diff --git a/etc/headscale/config.yaml b/etc/headscale/config.yaml index 804ec86..5ac919a 100644 --- a/etc/headscale/config.yaml +++ b/etc/headscale/config.yaml @@ -9,3 +9,10 @@ noise: ip_prefixes: - fd7a:115c:a1e0::/48 - 100.64.0.0/10 +derp: + server: + enabled: true + region_id: 999 + region_code: "headscale" + region_name: "Headscale Embedded DERP" + stun_listen_addr: "0.0.0.0:3478"