From owner-freebsd-virtualization@freebsd.org Sat May 21 12:06:12 2016 Return-Path: Delivered-To: freebsd-virtualization@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 03F50B44525 for ; Sat, 21 May 2016 12:06:12 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) Received: from nm13-vm5.bullet.mail.ne1.yahoo.com (nm13-vm5.bullet.mail.ne1.yahoo.com [98.138.91.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C3C0713CC for ; Sat, 21 May 2016 12:06:11 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1463832205; bh=feUTMJlivVVqC5Ixde8D4IgBQjeVmfPIk1cq0ZDK8So=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=rPRCf9fAT3hFTnlzidawTIT4Tl5g2SX/cKrnCLD037QZKISlMbfOUD3Uw6O3ryRXZ1zIbQBxuML0MrBJ95rKrXufsUfgmDlYomus8qcoqQ481YhOjmKWBQi3zTz/zjcqGHw7sQz24C5HoEGaal/w0wF2LcZor+nos1YNjqxZedXTvpm5pIoejpv1IOTO9Dq9D+Y0GgdHU9So+6wVnLys+0RE4cVpYCiMr31WYsrMSBZv11Jt2eHOjeLXS0uu6yFx1mDC8+bxDTk0kXKmjkgjZMXFcUP2E/qm92iX2vJ3eBVvBFSiVk76HLgC0a8yqk4oMb1GQvG+MjAEqYU6J2Fx5w== Received: from [98.138.100.114] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 21 May 2016 12:03:25 -0000 Received: from [98.138.87.8] by tm105.bullet.mail.ne1.yahoo.com with NNFMP; 21 May 2016 12:03:25 -0000 Received: from [127.0.0.1] by omp1008.mail.ne1.yahoo.com with NNFMP; 21 May 2016 12:03:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 653416.52221.bm@omp1008.mail.ne1.yahoo.com X-YMail-OSG: fV98joEVM1lc8fffpomqrPTb5QM_eMsieQuRAaeNElOYYQ5K0Z6nQB82M6f5U1R FQf.mLmRYfg3Lt5DnPkYtxQ3WOSlnloqo_ClmjZH4R6AqwrRcoh7iprIdwTPaV2CSJ5SnvH8j2Ah WnYuTqq8LvY4m.XnmBm2tTUHOlkjjm60F37NHqwKZhqKJS2yCV4.6Z5YseI29E_374p8dzWaz0.j q.BTRhbmhwRbVwot9tACw4VTv6_o16bxnk1mo7Xi5wfIUWUp5V8_kfqU5RWu05V.iXD1LT3oaO9W mzS_BKSgHUzA0mqz.t9DgyAHytls4qN57zjhUhfSD_tzJI7g5tfeIKlRM4en8C44AT7K.w1ip1Ys cU9HzBUDr3t8y8QwH5OIxDr_uwkjh54gcWG_I5NL0tUVzIgAkI6M3LL4IsPMNVgCx4Ih1U6UgOod iktGHWAFOnD9fX8h1d7iNzYWHjZIT2f9oACQhEpRPKyWYzDCq8KfDMpJqyNz3AQZ05DmLlYv8SXq IegnQ6k_nJA-- Received: from jws100170.mail.ne1.yahoo.com by sendmailws152.mail.ne1.yahoo.com; Sat, 21 May 2016 12:03:25 +0000; 1463832205.203 Date: Sat, 21 May 2016 12:03:20 +0000 (UTC) From: Fehmi Noyan ISI Reply-To: Fehmi Noyan ISI To: Trent Thompson , FreeBSD virtualization Message-ID: <882809015.206236.1463832200301.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: <231368807.5153885.1463691015944.JavaMail.yahoo.ref@mail.yahoo.com> <231368807.5153885.1463691015944.JavaMail.yahoo@mail.yahoo.com> Subject: Re: Cannot forward traffic over wlan0 with bhyve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2016 12:06:12 -0000 Thanks Trent! I found sometime (leftover time from a full-time work, a newborn and certificate study :/) today to give a try your advise. This is what I ended up with; - assigning an static IP address to tap0 on the host machine - assigning an static IP address to vtnet0 on the guest machine - use pf(4) to forward traffic from tap0 to wlan0 This works, but, as you pointed out, definitely not the optimum way of doing it. I updated the forum entity [1] I created previously, in the hope that that would be useful for some googlers (I have some couple of people having a similar issue) [1] https://forums.freebsd.org/threads/56285/ ________________________________ From: Trent Thompson To: Fehmi Noyan ISI ; FreeBSD virtualization Sent: Friday, May 20, 2016 5:25 PM Subject: Re: Cannot forward traffic over wlan0 with bhyve Fehmi, I noticed in your forum post that you were trying to get a DHCP lease on your bhyve VM. Personally, I set my VM's over WiFi statically. I have written a quick guide to set this up on the iohyve wiki. It should work even if you do not use iohyve. https://github.com/pr1ntf/iohyve/wiki/Using-iohyve-over-WiFi This set up may not be the most optimal, as it uses your host as a gateway, but it gets the job done for me. In the setup provided, my host (now a gateway) has an IP address of 10.10.123.1 on the "hyve" network, and my FreeBSD VM has an IP of 10.10.123.10, and a Windows VM with an IP address of 10.10.123.11 Note that I must set those IP Addresses statically inside of the VM for the internet to work. I hope you found this helpful, -Trent