From 7e8fbeaec1373268fffd9d6a16a412304ba61a0c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 23 Jun 2022 10:46:19 +0200 Subject: [PATCH] example: create wireguard and tunnel device Signed-off-by: Felix Fietkau --- examples/test-net0.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/test-net0.sh b/examples/test-net0.sh index 5089ee1..06de301 100755 --- a/examples/test-net0.sh +++ b/examples/test-net0.sh @@ -2,10 +2,15 @@ ifname="${1:-wg0}" host="${2:-ap1}" +ip link add dev $ifname type wireguard > /dev/null 2>&1 + ../unetd -d -h $PWD/hosts -N '{ "name": "'"$ifname"'", "type": "file", "key": "'"$(cat ./net0-${host}.key)"'", "file": "'"$PWD/net0.json"'", + "tunnels": { + "vx0": "l2-tunnel" + }, "update-cmd": "'"$PWD/../scripts/update-cmd.pl"'" }' -- 2.30.2