From owner-freebsd-jail@freebsd.org Thu Jul 27 18:05:47 2017 Return-Path: Delivered-To: freebsd-jail@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 604B6DAC91B for ; Thu, 27 Jul 2017 18:05:47 +0000 (UTC) (envelope-from marcel.plouf@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7342223 for ; Thu, 27 Jul 2017 18:05:46 +0000 (UTC) (envelope-from marcel.plouf@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id 184so24661890wmo.3 for ; Thu, 27 Jul 2017 11:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=gYUXfALpBNiMT1bJW3G0eIs0aEZ/qujUxSoxU23PUQE=; b=iTzsI+weac2LAZEQ69/Q8nr2PU2t0Ygqw2gT7NsYgknjl0/GnYSKRNyH4AGjeRwVro qxzDp2soc2Y/Ia5BLXZYFOx/q0KKpolw4M1USdpdmgFSVS4IFcyUhA/kH2gXEr9Coqip D4Q7Nut7B4rMcINZWknrCt+CZQ707UtP1RSObklZYOZ4zCK7pZrSi2oltSA/C+6mtHGL A+SE7fkG9kv8rEnOEmIor0vU1mo0JY6g/JYzvOvP/keHU9UxIRq/YSxdgXfzX7P+S3B3 UTeS37KG4OlTqxrKO5F8V3sCUwUzmv02CV7D+zY2r+2Mu5AdrnMB06bvXNNg9BhbNlgc nDtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=gYUXfALpBNiMT1bJW3G0eIs0aEZ/qujUxSoxU23PUQE=; b=IXy5ZwMSoCsj66NujSFoG4vhk50VM/3gvGy/yA3vHXTsjXDnVJ+MSNhi53UgLPhfp0 DW1gsMBa3imMgRhTNezuhPkR2QPNVx0Y6E9AAtR9C4Fo0KrX+B4lQlq5CqEpn6M43w4u tXmhwMh/rFjoG31GSAOMPjnJUSmXHY7HsmvZSKciVlDLMVL1TYMTBSUxu/C8+Ulvkb2l 9OBg92+K/Ny2B0f7uWMVie/3dPrRjzUXIEdD54RCWGDsoygX1dkZIXHYDvQEMCwPAFAI u2VL5NMoiEGDgw0lUyAx9NijzJICDQCRrZFoH7Um5AGT4OegpG6NlI2rT7FL9HgbZdTC HSyg== X-Gm-Message-State: AIVw110gHW3I/xv7uwFVcgZinm6oO40iHQun4RdPq2XPHPAAA8xTxE+x QGACOusYF+Z2cCcm X-Received: by 10.28.129.70 with SMTP id c67mr3978939wmd.175.1501178745319; Thu, 27 Jul 2017 11:05:45 -0700 (PDT) Received: from marcel-laptop.lan (212-198-10-164.rev.numericable.fr. [212.198.10.164]) by smtp.gmail.com with ESMTPSA id 16sm12265338wrx.26.2017.07.27.11.05.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Jul 2017 11:05:45 -0700 (PDT) Date: Thu, 27 Jul 2017 20:05:40 +0200 From: marcel To: freebsd-jail@freebsd.org Subject: Trying to set up VLANs with jail Message-ID: <20170727200540.7e159499@marcel-laptop.lan> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2017 18:05:47 -0000 Hi, I try to set up VLANs following the howto of Shawn Debnath http://shawndebnath.com/articles/2016/03/27/freebsd-jails-with-vlan-howto.html Actually, I want to isolate each jails from the other so I thought assign a VLAN ID to each jail was a good solution. So, I correctly followed the howto of Shawn but my host can't no more communicate with anything, when I try to ping 8.8.8.8, it says "sendto: no route to host" while my netstat -r output is exactly the same as in the howto. re0 is up and vlan0 has 192.168.2.6 ip, like in the howto and my firewall is down. So I decided to assign to re0 the ip 192.168.2.6 and to vlan0 192.168.2.7 and my host is now available remotely (with my ipfw rules this time) and can ping 8.8.8.8 (but still doesn't resolve domain name...) but I don't know if vlan work and I don't know how I can verify it. I noticed thaht when I do ifconfig destroy vlan0, my host can resolv domain name... I am a little bit lost, can anyone give me some help or explanation please ? Thanks, marcel