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.
19 lines
548 B
Bash
19 lines
548 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
. ./lib.shs
|
|
|
|
# typically: bring up the networks
|
|
ip link set dev lo up
|
|
|
|
# Uplink
|
|
# Technically, the IPv4 is also some link-local thing at Hetzner, but no need to make that more complex I think
|
|
ip addr add 100.100.0.2/29 dev up_ve
|
|
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
|
|
ip link set dev up_ve up
|
|
ip route add default via 100.100.0.1 dev up_ve
|
|
ip route add default via fe80:ff01::1 dev up_ve
|
|
|
|
wireguard wg1 ./machines/$mach/wg1.conf 2a01:4f8:c0c:36b8:ff01:8000:10:f06/128
|