From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32ADAC0650F for ; Mon, 5 Aug 2019 23:00:40 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 769492147A for ; Mon, 5 Aug 2019 23:00:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lipidity.com header.i=@lipidity.com header.b="rXk0g9x4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 769492147A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=lipidity.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: from krantz.zx2c4.com (localhost [IPv6:::1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 29ba44a7; Mon, 5 Aug 2019 23:00:37 +0000 (UTC) Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 4d7b545d for ; Mon, 5 Aug 2019 23:00:35 +0000 (UTC) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 6e522ec9 for ; Mon, 5 Aug 2019 23:00:35 +0000 (UTC) Received: (Migadu outbound); Mon, 05 Aug 2019 22:59:28 +0000 Authentication-Results: out.migadu.com; auth=pass (plain) Received: from sapient.be ([167.179.142.93]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 3AE60F79-7FBC-4204-8987-D803E8CC907B.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Mon, 05 Aug 2019 22:59:27 +0000 From: Ankur Kothari To: wireguard@lists.zx2c4.com Subject: [PATCH v2] wg-quick: openbsd: fix alternate routing table syntax Date: Tue, 6 Aug 2019 08:57:28 +1000 Message-Id: <20190805225728.43358-1-ankur@lipidity.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: References: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; bh=UBVbtPozixgmVmireudxuznpiFt2pdlI3sz1z68Kr80=; c=relaxed/simple; d=lipidity.com; h=from:subject:date:to; s=default; b=rXk0g9x4XY+YYna4D7AACTCcypedBGtS7sRU6IDisn5ygM8T56PAmyarFDA885ETSfPhGw+8QUJtxhX5gjP9oHV9j9CXNsvhmsaaKxuMEh4S5bSsElAdsZf0mex+euW/roWcsPWCVHI5wcSU1QQuMA4WIWZn8CikM12hI0YB1tk= X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" route(8) has always used the `-T` option to specify the routing table; there is no `rdomain` option. Signed-off-by: Ankur Kothari --- src/tools/wg-quick/openbsd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/wg-quick/openbsd.bash b/src/tools/wg-quick/openbsd.bash index b234609..2cadeec 100755 --- a/src/tools/wg-quick/openbsd.bash +++ b/src/tools/wg-quick/openbsd.bash @@ -293,7 +293,7 @@ add_route() { fi if [[ -n $TABLE && $TABLE != auto ]]; then - cmd route -q -n add "-$family" -rdomain "$TABLE" "$1" -iface "$ifaceroute" + cmd route -q -n -T "$TABLE" add "-$family" "$1" -iface "$ifaceroute" elif [[ $1 == */0 ]]; then if [[ $1 == *:* ]]; then AUTO_ROUTE6=1 -- 2.22.0 Sent via Migadu.com, world's easiest email hosting _______________________________________________ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard