From: Felix Fietkau Date: Thu, 23 Jun 2022 08:46:19 +0000 (+0200) Subject: example: create wireguard and tunnel device X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e8fbeaec1373268fffd9d6a16a412304ba61a0c;p=project%2Funetd.git example: create wireguard and tunnel device Signed-off-by: Felix Fietkau --- 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"'" }'