Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Examples

This document provides examples of setting up source and destination nodes for various communication methods.

Simple Ping Test

This example shows how to set up a source and destination node to perform a ping test.

Using Your Own Key Pairs

This example demonstrates setting up nodes with custom key pairs.

Key Generation

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

Configuration

  • For the source node, use source.privatekey and destination.publickey with the -private-key and -peer-public-key flags.

  • For the destination node, use destination.privatekey and source.publickey with the same flags.

  • Source code: keys/src/source.go

  • Destination code: keys/dest/destination.go

Simple TCP Communication

This example illustrates setting up nodes for TCP communication.

Simple GRPC Communication

This example demonstrates setting up nodes for GRPC communication.