mirror of
https://github.com/YGGverse/nexy.git
synced 2026-04-01 09:45:29 +00:00
Updated Yggdrasil (markdown)
parent
8b9df8275b
commit
777429428b
1 changed files with 11 additions and 4 deletions
15
Yggdrasil.md
15
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue