From owner-freebsd-net@FreeBSD.ORG Thu Sep 25 01:35:47 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD80116A4B3 for ; Thu, 25 Sep 2003 01:35:47 -0700 (PDT) Received: from postel.libkvm.org (euclyde.cwglobal.ch [144.85.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0EF04400B for ; Thu, 25 Sep 2003 01:35:45 -0700 (PDT) (envelope-from freebsd@libkvm.org) Received: from postel.libkvm.org (localhost [127.0.0.1]) by postel.libkvm.org (8.12.9/8.12.9) with ESMTP id h8P8aA11001266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Sep 2003 10:36:11 +0200 (CEST) (envelope-from freebsd@libkvm.org) Received: (from jma@localhost) by postel.libkvm.org (8.12.9/8.12.9/Submit) id h8P8aAxA001265 for freebsd-net@freebsd.org; Thu, 25 Sep 2003 10:36:10 +0200 (CEST) Date: Thu, 25 Sep 2003 10:36:10 +0200 From: julien mabillard To: freebsd-net@freebsd.org Message-ID: <20030925083610.GD757@postel.libkvm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: ipsec tunnel with same subnet in A and B X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2003 08:35:47 -0000 hi, i have some questions regarding an ipsec tunnel which i want to setup between to hosts (A, B), but I want A and B to be in the same subnet. what are the possiblilities? also, i might meet the following situation: a) A 10.0.0.10 <==> ipsec_gw <==> routers <==> ipsec_gw <===> B 10.0.0.1 b) A 10.0.0.10 <==> ipsec_gw <==> Layer-2(switches) <==> ipsec_gw <===> B 10.0.0.1 can anyone give me a clue on the 2 stiuations? in (a), i just want an ip sec tunnel, but the endpoint hosts being in the same subnet. in (b), same situation but i don't have routing between the ipsec boxes, only switching. can i tweak some bridging and netgraph setup for that? thank you very much. -- Key fingerprint = C549 46E1 1B75 116E 3321 BC0A E502 9457 319E B340