From owner-freebsd-net@FreeBSD.ORG Sat Dec 28 22:05:57 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6FFF5AF8 for ; Sat, 28 Dec 2013 22:05:57 +0000 (UTC) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [IPv6:2607:f8b0:400c:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F9761E73 for ; Sat, 28 Dec 2013 22:05:57 +0000 (UTC) Received: by mail-ve0-f169.google.com with SMTP id c14so5555777vea.28 for ; Sat, 28 Dec 2013 14:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=WWwGmOrmNy04HFzIEI5JcQ3R7ZKegOaJC/0Dmz/MzyM=; b=oT0j6VTsVYgXpYerUphcOx2tpWxJODVPtuQCoiLjXHwS6dz/BEZT4ePoay7NK9cN/P WKk8Ko1c85wcLMJZrDCL8L+Fh2fnOjZAZpcncHNp2fFdtKZesPvm6Lbp1gz05i/MU4pp 4kdDxPDZ2DQTU9PFxrFF81UDsEokLyzO04fNu0spMRv/lYAG5chHa4y4qGaDSpSPRZSL Ql7Oq+0LA659/glPDJZ+0hdKwL66MrfjbPfHTR1z0phydpMuTesSJAVbw9PT7qoDWYwC KK9Rda2ksAt5hiTrvZ8y0aHRp+j3bAekGWhYH9h+Stz1LxLfFPuefeF+7nPGqCF9jihQ bNpg== X-Received: by 10.58.181.165 with SMTP id dx5mr128030vec.52.1388268356326; Sat, 28 Dec 2013 14:05:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.180.9 with HTTP; Sat, 28 Dec 2013 14:05:36 -0800 (PST) From: Andrew Klaus Date: Sat, 28 Dec 2013 15:05:36 -0700 Message-ID: Subject: Issues putting jails on their own subnet To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Dec 2013 22:05:57 -0000 Hello, I'm trying to segregate some of my jails onto their own (DMZ) subnet. Internal subnet: 10.0.3.0/24 DMZ subnet: 10.0.4.0/24 Both of these subnets are on my FreeBSD host, but I'm using a second routing table for my DMZ jails as seen here: --------------- setfib 1 netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.0.4.1 UGS 0 2393945 vlan4 10.0.3.0/24 link#12 U 0 0 vlan3 ---------------- The problem I'm facing, is when I try to connect to the DMZ'd jail from the 10.0.3.0 network, traffic comes in on vlan4 like it's supposed to, but replies back through on the vlan3 interface. I guess this makes sense, because of that second route entry (that I can't override). I've tried using PF to force the packets back through to 10.0.4.1, but it doesn't seem to want to work. Is the only other way to use the experimental vnet/vimage? Any ideas would be helpful. Thanks, Andrew