1
0
Fork 0

mediaserver: configure nameserver

This commit is contained in:
Daniel Kempkens 2023-04-19 01:33:58 +02:00
parent f2baa135e2
commit c07c3946a0
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -48,6 +48,8 @@
RemainAfterExit = true;
ExecStart = with pkgs; writers.writeBash "wg-up" ''
set -e
echo "Setting lo to up ..."
${iproute}/bin/ip -n wg link set lo up
echo "Creating veth bridge ..."
${iproute}/bin/ip link add name vethwghost0 type veth peer name vethwgns0
${iproute}/bin/ip link set vethwgns0 netns wg
@ -74,6 +76,8 @@
echo "Tearing down veth bridge ..."
${iproute}/bin/ip -n wg link del vethwgns0
${iproute}/bin/ip link del vethwghost0
echo "Setting lo to down ..."
${iproute}/bin/ip -n wg link set lo down
echo "Done!"
'';
};