@node Yggdrasil
+@cindex yggdrasil
@unnumbered Yggdrasil support
NNCP is able to act as a node of
full-featured TUN network interface, there is pure Go built-in stack,
responsible for IPv6 and TCP protocols support. You do not need to think
about network interfaces, addressing and firewall setup at all:
-@ref{nncp-daemon} acts as Yggdrasil IPv6 reachable host, listening on
-single TCP port. You can reach it using ordinary non-Yggdrasil capable
-version of @ref{nncp-call}, calling corresponding 200::/7 IPv6 address
-through native Yggdrasil daemon created TUN interface.
-@ref{nncp-daemon}, @ref{nncp-call}* can freely peer with Yggdrasil
-nodes, reusing existing infrastructure.
+@command{@ref{nncp-daemon}} acts as Yggdrasil IPv6 reachable host,
+listening on single TCP port. You can reach it using ordinary
+non-Yggdrasil capable version of @command{@ref{nncp-call}}, calling
+corresponding 200::/7 IPv6 address through native Yggdrasil daemon
+created TUN interface. @command{@ref{nncp-daemon}},
+@command{@ref{nncp-call}}* can freely peer with Yggdrasil nodes, reusing
+existing infrastructure.
Only minor modifications were done to current NNCP's tools:
@itemize
-@item @ref{nncp-daemon} has @option{-yggdrasil yggdrasils://} option,
-making it also as a Yggdrasil listener network node. It can
+@cindex yggdrasils schema
+@item @command{@ref{nncp-daemon}} has @option{-yggdrasil yggdrasils://}
+option, making it also as a Yggdrasil listener network node. It can
automatically connect to other peers and participate in routing. It does
not have to answer NNCP's online protocol requests at all and just can
be some intermediate routing point in the whole mesh network.
-@item @ref{nncp-call}/@ref{nncp-caller} commands understand
+@cindex yggdrasilc schema
+@item @command{@ref{nncp-call}}/@command{@ref{nncp-caller}} commands understand
@code{yggdrasilc://} addresses, pointing to the desired Yggdrasil's
public key (that also acts as the destination host's address). Yggdrasil
background goroutine is automatically started, connecting to the
specified Yggdrasil entrypoints, calling remote NNCP node and initiating
NNCP's native @ref{Sync, online protocol} handshake on top of that.
-@item @ref{nncp-cfgnew} is able to generate ed25519 keypair.
+@item @command{@ref{nncp-cfgnew}} is able to generate ed25519 keypair.
@item @ref{CfgYggdrasilAliases, Configuration file} optionally contains
@code{yggdrasil-aliases} map.
You should share that public key with other NNCP peers.
@item
-Start @ref{nncp-daemon} listening on Yggdrasil's incoming connections.
+Start @command{@ref{nncp-daemon}} listening on Yggdrasil's incoming connections.
You have to specify:
@itemize
+@vindex PrivateKey
@item
Your private key (generated above). Yggdrasil's @code{PrivateKey} analogue.
@item
Optional non-default port you will listen on Yggdrasil's IPv6 address.
+@vindex Listen
@item
Optional list of bind addresses, used for peering between the nodes.
Yggdrasil's @code{Listen} analogue.
+@vindex Peers
@item
Optional list of peer addresses you should connect to.
Yggdrasil's @code{Peers} analogue.
+@vindex AllowedPublicKeys
@item
Optional list of allowed peer public keys, allowed for incoming peering
connections from. Yggdrasil's @code{AllowedPublicKeys} analogue.
"&pub=c6b7...9469"\
"&pub=eb2d...ca07"\
"&peer=tcp://example.com:2345"\
-"&peer=tcp://another.peer:3456%3Fkey=f879...2e9b"
-"&mcast=.*:5400"
+"&peer=tcp://another.peer:3456%3Fkey=f879...2e9b"\
+"&mcast=.*:5400"\
"&mcast=lo0"
@end example