From patchwork Mon Mar 5 03:19:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 1681 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.i.ipfire.org (Postfix) with ESMTP id 67DED6095C for ; Sun, 4 Mar 2018 17:20:14 +0100 (CET) X-Virus-Scanned: ClamAV at mail01.ipfire.org X-Spam-Flag: NO X-Spam-Score: -1.099 X-Spam-Level: X-Spam-Status: No, score=-1.099 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 26DB7111C4E6; Sun, 4 Mar 2018 16:20:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1520180413; x=1522772413; bh=G69fZaUYfYdUlPxH6qH4+MbP38W0gcLngnGiuaSanNI=; h=From:To:Subject:Date:Message-Id:Sender:From:To:Cc:Date: Content-Type:Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=D8P8mK8daKWV6cuHiNg7v5llE57r26YqSqJ0klDdLa5JMxwZYxLky4GYt0KVEykBL Aj72e6H6RqNxzSsOWEw6LNiXUxclnQfXXXBz3sWn57CMazslES1H7IODYl38ErGbqE xheUehplOGfbHRunKNCkqV1yHAG/PQ7fCRv3ooWW20S15uHIwyuZ2NQsDutB9X/L/k jkbo3JP6+dJY8p7toibgDZYZEuggFhLynlysHDThfiqipeuOv7bBjiIgc7UcfdZWv/ NPI3bZXY+Y3jSCJPO8dKYk3pKXRVmUzZRDT1vzDaq9EaSyx7ASmSf//bGLCFExNmjD 2UUO7p3/G3/6w== X-Virus-Scanned: ClamAV at mail01.ipfire.org Received: from localhost.localdomain (unknown [46.183.103.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 98582111C4E6; Sun, 4 Mar 2018 16:20:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1520180411; x=1522772411; bh=G69fZaUYfYdUlPxH6qH4+MbP38W0gcLngnGiuaSanNI=; h=From:To:Cc:Subject:Date:Message-Id:From:To:Cc:Date:Content-Type: Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=yqpIqJw6XjmBY2xfHszCw3UUb0bjnCbh37Dm+DhFBhy5FW0sKgJIcKEqxgCZUhiNL ZgUVb2lpbKEYfis6XJgQqpx47jRL6tljLV61GfsGF9dKXdgd3e82mTAwB1rI6FoEcU K3cvJAJeGBulDwcJwYvhS+z3M56ig/HBX/gPCtwFFfK8oWMj/HpLK2+iiwkqUYPnte cbPKKMT2hnlAaVtah+hva8yX1kaBT6gOrZWbQePBW3J6mV2pfitMc0QVZjM8NKkF7X rxK28SOaLAZlTCfTsq5V5zD7QKkLKpnOjIC5hI4Pi95nTK8x8pEQ+AJ+lyrlxmqsCq 5vJloV2FlzOUQ== From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH] IPsec: Fix routing in tunnel mode Date: Sun, 4 Mar 2018 16:19:55 +0000 Message-Id: <1520180395-4665-1-git-send-email-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.6.3 X-BeenThere: network@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List for the network package List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: network-bounces@lists.ipfire.org Sender: "network" Two syntax errors make the routing in tunnel mode non working Signed-off-by: Jonatan Schlag --- src/helpers/ipsec-updown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ipsec-updown b/src/helpers/ipsec-updown index 3764085..185c2c7 100644 --- a/src/helpers/ipsec-updown +++ b/src/helpers/ipsec-updown @@ -108,7 +108,7 @@ case "${PLUTO_VERB}" in fi else # Get the device which we use to peer with the other site. - ME_DEVICE = "$(device_get_by_ip_address "${PLUTO_ME}")" + ME_DEVICE="$(device_get_by_assigned_ip_address "${PLUTO_ME}")" # We can only go on if we found a device. if isset ME_DEVICE; then