From owner-freebsd-net@FreeBSD.ORG Tue Oct 16 22:03:46 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5CB381B7 for ; Tue, 16 Oct 2012 22:03:46 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from EXFESMQ04.datapipe-corp.net (exfesmq04.datapipe.com [64.27.120.68]) by mx1.freebsd.org (Postfix) with ESMTP id 101BC8FC1A for ; Tue, 16 Oct 2012 22:03:45 +0000 (UTC) Received: from nat.myhome (192.168.128.103) by EXFESMQ04.datapipe-corp.net (192.168.128.29) with Microsoft SMTP Server (TLS) id 14.2.318.1; Tue, 16 Oct 2012 18:02:35 -0400 Date: Tue, 16 Oct 2012 17:02:59 -0500 From: "Paul A. Procacci" To: Mariano Cediel Subject: Re: one physical interface -> n virtual interfaces Message-ID: <20121016220258.GI7125@nat.myhome> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [192.168.128.103] Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 22:03:46 -0000 On Tue, Oct 16, 2012 at 10:35:55PM +0200, Mariano Cediel wrote: > How do I create, from a physical interface, n virtual interfaces, but > all effects are real, their MAC different, on which we can do > individually NAT, etc, etc.? > > I need one external interface has 2 public IPs, and I'll do every NAT > over every (with ipfw and divert) > individually (each of them has its own gateway) > > A little help to start researching ..... > Greetings. http://freebsd.1045724.n5.nabble.com/Virtual-Network-Interface-Card-td40051= 09.html The above was posted in late 2010. It has one example of creating vitual i= nterfaces using the netgraph module. 3rd post from the top. I'm not entirely sure if this is the current _correct_ way, but I imagine i= s still accurate and can be used to get you started. ~Paul ________________________________ This message may contain confidential or privileged information. If you are= not the intended recipient, please advise us immediately and delete this m= essage. See http://www.datapipe.com/legal/email_disclaimer/ for further inf= ormation on confidentiality and the risks of non-secure electronic communic= ation. If you cannot access these links, please notify us by reply message = and we will send the contents to you.