From 777429428b87a73a90437307e472669dd0e616dc Mon Sep 17 00:00:00 2001 From: oooo-ps Date: Fri, 27 Jun 2025 18:35:35 +0300 Subject: [PATCH] Updated Yggdrasil (markdown) --- Yggdrasil.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Yggdrasil.md b/Yggdrasil.md index fad18e1..9e181d8 100644 --- a/Yggdrasil.md +++ b/Yggdrasil.md @@ -1,9 +1,9 @@ -## Run using the subnet address +## Run using subnet address > [!TIP] > See also `http://[222:a8e4:50cd:55c:788e:b0a5:4e2f:a92c]/yggdrasil:subnet_setting` -Get your subnet address for the current Yggdrasil instance: +Get your current subnet prefix for the current Yggdrasil instance key: ``` bash sudo yggdrasilctl getself @@ -12,6 +12,13 @@ sudo yggdrasilctl getself Create address using free `0200::/7` range, e.g. `300:xxxx:xxxx:xxxx::1` +``` bash +/bin/ip address add 300:xxxx:xxxx:xxxx::1/64 dev tun0 +``` +* this address will be reset on the next Yggdrasil service (or system) restart + +### Persist subnet address + Add new address into `yggdrasil.service`: ``` /etc/systemd/system/yggdrasil.service @@ -19,7 +26,7 @@ Add new address into `yggdrasil.service`: ExecStartPost=/bin/sleep 5s ExecStartPost=/bin/ip address add 300:xxxx:xxxx:xxxx::1/64 dev tun0 ``` -* to get current `systemd` service location, just run `systemctl status yggdrasil` +* to get current `systemd` service location, run `sudo systemctl status yggdrasil` * apply the changes: * `sudo systemctl daemon-reload` * `sudo systemctl restart yggdrasil` @@ -42,4 +49,4 @@ Run the server from `nexy` user: nexy --public /path/to/dir --bind [300:xxxx:xxxx:xxxx::1]:1900 ``` * replace `/path/to/dir` with your files location -* open `nex://[300:xxxx:xxxx:xxxx::1]` in your browser +* open `nex://[300:xxxx:xxxx:xxxx::1]` in your browser to test connection