Skip to content

Automatic peering system for dn42 using wg-quick and bird2

Notifications You must be signed in to change notification settings

lss233/fuzzy-bassoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Peer System

An automatic peer system using WireGuard and Bird2 for DN42.

Usage

First, clone this project on your server and create some folders.

git clone https://github.com/lss233/fuzzy-bassoon
cd fuzzy-bassoon
mkdir data/{wireguard, bird} .ssh

Next, create a file named node.json:

{
    "name": "The node name here",
    "asn": "Your ASN",
    "mpbgp": true,
    "wireguard": {
        "endpoint": "Tell them your endpoint",
        "publickey": "Your WireGuard Public Key",
        "privatekey": "Yourr WireGuard Private Key",
        "ipv4": "The DN42 IPv4 Address on this machine",
        "ipv6": "The DN42 IPv6 Address on this machine",
        "linkLocal": "The Link-Local Address on this machine"
    }
}

Where mpbgp informs whether your node supports Multiprotocol BGP.

Generate a ssh keypair for incoming connection.

ssh-keygen -t rsa -f ./.ssh/privkey

Open your bird.conf, and add following:

include "/path/to/fuzzy-bassoon/data/bird/*";

Start the server, you can write a supervisord configuration file, or systemd or tmux and something else. whatever.

node index.js

About

Automatic peering system for dn42 using wg-quick and bird2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published