Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2020 10:19:02 +0000
From:      =?UTF-8?Q?Goran_Meki=C4=87?= <meka@tilda.center>
To:        freebsd-net@freebsd.org,Andrea Venturoli <ml@netfence.it>
Subject:   Re: Help with VNET
Message-ID:  <432738E4-FBC6-4768-A898-3F82CAFDB533@tilda.center>
In-Reply-To: <dcbec45d-90e4-fe45-e413-e94799bcffdc@netfence.it>
References:  <dcbec45d-90e4-fe45-e413-e94799bcffdc@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On October 21, 2020 10:13:38 AM UTC, Andrea Venturoli <ml@netfence=2Eit> wr=
ote:
>Hello=2E
>
>I've been using jails for years with ezjail=2E Now I'm trying to=20
>experiment with VNET=2E
>I've looked for a tutorial, but found scarce (and possibly outdated)
>info=2E
>
>
>
>Box is a 12=2E1/amd64=2E
>Basic configuration involves wlan0 configured via DHCP
>(192=2E168=2E133=2E26)=2E
>Host networking works=2E
>For a start, let's get IPFW out of the way:
>#ipfw add 1 pass ip from any to any
>
>Then I setup the host:
># ifconfig epair create
>(Now I see epair0a and epair0b)
># ifconfig bridge create up
># ifconfig bridge0 addm wlan0 addm epair0a
>
>Now I start the jail and I don't see epair0b anymore on the host=2E
>
>In the jail I issue:
>#ipfw add 1 pass ip from any to any
>#ifconfig epair0b 192=2E168=2E133=2E27
>
>
>
>Now:
>_ pinging the host from the jail works;
>_ pinging the jail from the host works;
>_ pinging another host from the base system works;
>_ pinging another host from the jail does NOT work=2E
>
>tcpdump on wlan0 shows ARP packets from the jail (who tries to get the=20
>MAC address of the external host), but these do not reach the network
>(a=20
>tcpdump on the external host doesn't show them)=2E
>
>IPFW logging shows that it's not blocking anything=2E
>
>Any hint?
>
>  bye & Thanks
>	av=2E
>_______________________________________________
>freebsd-net@freebsd=2Eorg mailing list
>https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd=2Eorg"

Did you setup NAT?
--=20
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E
From owner-freebsd-net@freebsd.org  Wed Oct 21 10:20:23 2020
Return-Path: <owner-freebsd-net@freebsd.org>
Delivered-To: freebsd-net@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 37399448846
 for <freebsd-net@mailman.nyi.freebsd.org>;
 Wed, 21 Oct 2020 10:20:23 +0000 (UTC) (envelope-from kp@FreeBSD.org)
Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "smtp.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4CGRMW0mYGz47TW;
 Wed, 21 Oct 2020 10:20:23 +0000 (UTC) (envelope-from kp@FreeBSD.org)
Received: from venus.codepro.be (venus.codepro.be [5.9.86.228])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mx1.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK))
 (Authenticated sender: kp)
 by smtp.freebsd.org (Postfix) with ESMTPSA id D8DE62BCFA;
 Wed, 21 Oct 2020 10:20:22 +0000 (UTC) (envelope-from kp@FreeBSD.org)
Received: by venus.codepro.be (Postfix, authenticated sender kp) id 0540F20F9B;
 Wed, 21 Oct 2020 12:20:20 +0200 (CEST)
From: "Kristof Provost" <kp@FreeBSD.org>
To: "Andrea Venturoli" <ml@netfence.it>
Cc: freebsd-net@freebsd.org
Subject: Re: Help with VNET
Date: Wed, 21 Oct 2020 12:20:20 +0200
X-Mailer: MailMate (1.13.2r5673)
Message-ID: <40361B2B-50AD-474B-A5A7-654F5A958FE2@FreeBSD.org>
In-Reply-To: <dcbec45d-90e4-fe45-e413-e94799bcffdc@netfence.it>
References: <dcbec45d-90e4-fe45-e413-e94799bcffdc@netfence.it>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: 8bit
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.33
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>;
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Oct 2020 10:20:23 -0000

On 21 Oct 2020, at 12:13, Andrea Venturoli wrote:
> Hello.
>
> I've been using jails for years with ezjail. Now I'm trying to 
> experiment with VNET.
> I've looked for a tutorial, but found scarce (and possibly outdated) 
> info.
>
>
>
> Box is a 12.1/amd64.
> Basic configuration involves wlan0 configured via DHCP 
> (192.168.133.26).
> Host networking works.
> For a start, let's get IPFW out of the way:
> #ipfw add 1 pass ip from any to any
>
> Then I setup the host:
> # ifconfig epair create
> (Now I see epair0a and epair0b)
> # ifconfig bridge create up
> # ifconfig bridge0 addm wlan0 addm epair0a
>
This is your problem. You can’t bridge over wifi interfaces.
That’s a limitation of station mode wifi.

Try routing, or try with a wired interface.

Best regards,
Kristof



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?432738E4-FBC6-4768-A898-3F82CAFDB533>