From owner-freebsd-net@freebsd.org Wed Jul 19 09:27:10 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97F7EC312F8 for ; Wed, 19 Jul 2017 09:27:10 +0000 (UTC) (envelope-from m.muenz@spam-fetish.org) Received: from mailout-02.maxonline.de (mailout-02.maxonline.de [81.24.66.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5808F72D57 for ; Wed, 19 Jul 2017 09:27:10 +0000 (UTC) (envelope-from m.muenz@spam-fetish.org) Received: from web03-01.max-it.de (web03-01.max-it.de [81.24.64.215]) by mailout-02.maxonline.de (Postfix) with ESMTPS id 6CCE34F for ; Wed, 19 Jul 2017 11:27:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by web03-01.max-it.de (Postfix) with ESMTP id 5F71928B847 for ; Wed, 19 Jul 2017 11:27:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at web03-01.max-it.de Received: from web03-01.max-it.de ([127.0.0.1]) by localhost (web03-01.max-it.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7hYHBma6URJX for ; Wed, 19 Jul 2017 11:27:08 +0200 (CEST) Received: from [81.24.66.132] (unknown [81.24.66.132]) (Authenticated sender: m.muenz@spam-fetish.org) by web03-01.max-it.de (Postfix) with ESMTPA id 3A5D928AB1C for ; Wed, 19 Jul 2017 11:27:08 +0200 (CEST) Subject: Re: NAT before IPSEC - reply packets stuck at enc0 To: freebsd-net@freebsd.org References: <459d59f7-2895-8aed-d547-be46a0fbb918@spam-fetish.org> From: "Muenz, Michael" Message-ID: <1c0de616-91ff-a6f9-d946-f098bc1a709f@spam-fetish.org> Date: Wed, 19 Jul 2017 11:27:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 09:27:10 -0000 Am 19.07.2017 um 10:32 schrieb Andrey V. Elsukov: > > What about reverse NAT rule? You need to translate decrypted packets > back to 10.26.2.0, otherwise they will still have 10.26.1.1 IP address > as final destination and will not be forwarded to 10.26.2.0. > Hi Andrey, I'm not really familiar with ipfw syntax, I'm more the linux guy and there the state you be tracked. How should I build the rules to do the reverse nat? I'm googling for 2 days now but I only found port redirects for this. Thanks for taking the time! Michael