From owner-freebsd-questions@FreeBSD.ORG Tue Aug 27 23:19:27 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AB9BA77C for ; Tue, 27 Aug 2013 23:19:27 +0000 (UTC) (envelope-from gibblertron@gmail.com) Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 76D592AD6 for ; Tue, 27 Aug 2013 23:19:27 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id j17so2037137oag.14 for ; Tue, 27 Aug 2013 16:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C38PZs6U4c9K6hkoVENhTyrZtRjOVtcZYHRjY+nGI3E=; b=GMACw2kJTw1zxZZlLeBfSczvpQTWIK8g6/FGhUAP9ecfHKBaDpSzszwLq9pZL5VHPG u8ZIT6JVbphWNwzlVHbkiT2tiE6QqNMJ22BjHFrmhMJzkT49vmYJI+cykLy4S2CGA0/y OpD3qNriXlIDpSquLTK6hnsi945WJStAnD97n6Wj/PKjxi2YQs6acPV/ayqXO2O9lKJl UUf7RSSfp3vxj+6u+RINRjHjj1yWuoB0SzgRZM/gzk+NA9inAZrrOP8WeAqrH813jx+9 QDP240M83C7ev0MflGQpcoGVz8v6FEjrb9Q1YyW9cBlSxUsUxMntYZhvUAc9Y1KdsXiq lwrw== MIME-Version: 1.0 X-Received: by 10.182.225.134 with SMTP id rk6mr9522844obc.40.1377645566780; Tue, 27 Aug 2013 16:19:26 -0700 (PDT) Received: by 10.182.45.228 with HTTP; Tue, 27 Aug 2013 16:19:26 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Aug 2013 16:19:26 -0700 Message-ID: Subject: Re: Jail with public IP alias From: Patrick To: Alejandro Imass Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2013 23:19:27 -0000 Hi Alejandro, That's how I've got things setup, too, but I'm not seeing the same behaviour. So I was wondering if there was something different about your setup such as using NAT to allow a jail with a private IP to access the internet at large. Patrick On Tue, Aug 27, 2013 at 3:42 PM, Alejandro Imass wrote: > On Tue, Aug 27, 2013 at 6:28 PM, Patrick wrote: >> That's not the behaviour I see. My jail has a private and public IP. >> > > Hi Patrick, thanks for your reply. > > The issue is actually more basic and it's because the same network > card has multiple IPs on the same subnet so the routing table always > chooses the primary IP assigned to that interface. > > I'm trying to figure out if I can fix it in the routing table or will > need IPFW to re-write the source address. > > Thanks, > > -- > Alejandro Imass