1
0
Fork 0

mediaserver: configure nameserver

This commit is contained in:
Daniel Kempkens 2023-04-19 01:07:49 +02:00
parent 3a9e83d818
commit 713259bb90
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -48,8 +48,6 @@
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
@ -76,8 +74,6 @@
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!"
'';
};