NetVM: fix wg setconf to take config filename (not stdin)
This commit is contained in:
@@ -12,7 +12,7 @@ chmod 600 "$CONF"
|
||||
ip netns add "$NETNS" 2>/dev/null || true
|
||||
ip link add "wg-${NODE}" type wireguard 2>/dev/null || true
|
||||
ip link set "wg-${NODE}" netns "$NETNS"
|
||||
ip netns exec "$NETNS" wg setconf "wg-${NODE}" < "$CONF"
|
||||
ip netns exec "$NETNS" wg setconf "wg-${NODE}" "$CONF"
|
||||
ip netns exec "$NETNS" ip link set lo up
|
||||
ip netns exec "$NETNS" ip link set "wg-${NODE}" up
|
||||
# NOTE: addresses/routes come from the generated config (wgcf carries them).
|
||||
|
||||
Reference in New Issue
Block a user