58 lines
1.2 KiB
Bash
58 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
echo Installing bird and wireguard. Confirm!
|
|
|
|
apt install wireguard-tools bird2
|
|
systemctl stop bird
|
|
|
|
###########################################
|
|
|
|
echo Generating WG keypair
|
|
|
|
wg genkey > /etc/wireguard/privkey
|
|
cat /etc/wireguard/privkey | wg pubkey > /etc/wireguard/pubkey
|
|
|
|
cp etc/wireguard/* /etc/wireguard/
|
|
|
|
###########################################
|
|
|
|
echo Now installing sysctl
|
|
|
|
cp etc/sysctl.d/* /etc/sysctl.d/
|
|
sysctl --system
|
|
|
|
###########################################
|
|
|
|
echo Now installing ROA updater
|
|
|
|
cp etc/systemd/system/* /etc/systemd/system
|
|
systemctl enable --now dn42-roa.timer
|
|
|
|
###########################################
|
|
|
|
echo Now installing networkd templates you will edit later
|
|
|
|
cp etc/systemd/network/* /etc/systemd/network
|
|
|
|
###########################################
|
|
|
|
echo Now installing bird configs
|
|
|
|
cp -r etc/bird/* /etc/bird
|
|
|
|
###########################################
|
|
|
|
echo Now installing pingfinder
|
|
|
|
cp usr/local/bin/* /usr/local/bin
|
|
systemctl enable pingfinder.timer
|
|
|
|
###########################################
|
|
|
|
echo Don\'t forget to configure networkd!
|
|
echo And add some peers!
|
|
echo And configure pingfinder in /etc/systemd/system/pingfinder.service
|
|
echo
|
|
echo After done configuring, do:
|
|
echo sudo ./finish.sh
|
|
echo
|