https://github.com/lss233/fuzzy-bassoon
Automatic peering system for dn42 using wg-quick and bird2
https://github.com/lss233/fuzzy-bassoon
bird dn42 wireguard
Last synced: 7 months ago
JSON representation
Automatic peering system for dn42 using wg-quick and bird2
- Host: GitHub
- URL: https://github.com/lss233/fuzzy-bassoon
- Owner: lss233
- Created: 2021-02-25T17:23:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-07T08:45:02.000Z (over 4 years ago)
- Last Synced: 2025-01-16T07:57:00.140Z (9 months ago)
- Topics: bird, dn42, wireguard
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```shell
git clone https://github.com/lss233/fuzzy-bassoon
cd fuzzy-bassoon
mkdir data/{wireguard, bird} .ssh
```
Next, create a file named `node.json`:
```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.
```shell
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
```