This document provides examples of setting up source and destination nodes for various communication methods.
This example shows how to set up a source and destination node to perform a ping test.
- Source code:
ping/src/source.go
- Destination code:
ping/dest/destination.go
This example demonstrates setting up nodes with custom key pairs.
Generate key pairs using the Wireguard CLI:
wg genkey | tee source.privatekey | wg pubkey > source.publickey
wg genkey | tee destination.privatekey | wg pubkey > destination.publickey
-
For the source node, use
source.privatekey
anddestination.publickey
with the-private-key
and-peer-public-key
flags. -
For the destination node, use
destination.privatekey
andsource.publickey
with the same flags. -
Source code:
keys/src/source.go
-
Destination code:
keys/dest/destination.go
This example illustrates setting up nodes for TCP communication.
- Source code:
tcp/src/source.go
- Destination code:
tcp/dest/destination.go
This example demonstrates setting up nodes for GRPC communication.
- Source code:
grpc/src/source.go
- Destination code:
grpc/dest/destination.go