You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
633 B
Bash

3 weeks ago
#!/bin/sh
set -eu
2 weeks ago
. ./lib.shs
3 weeks ago
# typically: bring up the networks
3 weeks ago
ip link set dev lo up
3 weeks ago
# Uplink
# Technically, the IPv4 is also some link-local thing at Hetzner, but no need to make that more complex I think
3 weeks ago
ip addr add 100.100.0.2/29 dev up_ve
3 weeks ago
ip addr add 2a01:4f8:c0c:36b8:ff01::2/96 dev up_ve
ip addr add fe80:ff01::2/64 dev up_ve scope link
3 weeks ago
ip link set dev up_ve up
3 weeks ago
ip route add default via 100.100.0.1 dev up_ve
ip route add default via fe80:ff01::1 dev up_ve
2 weeks ago
2 weeks ago
wireguard wg1 ./machines/$mach/wg1.conf 2a01:4f8:c0c:36b8:ff01:8000:10:f06/108
wireguard wg-vms ./machines/$mach/wg-vms.conf 2a01:4f8:c0c:36b8:ff01:8000:0:0001/112