From owner-freebsd-questions@FreeBSD.ORG Tue Aug 27 20:59:12 2013 Return-Path: Delivered-To: freebsd-questions@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 ESMTP id AF865722 for ; Tue, 27 Aug 2013 20:59:12 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8CE8921CC for ; Tue, 27 Aug 2013 20:59:12 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id v10so5404062pde.10 for ; Tue, 27 Aug 2013 13:59:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=jWRQoOajPWOyqvOxL+p1RkV7ksDANokqO9I+JfUMFtE=; b=X+0WyC3Ek2FqQrdy2ByP4KcbffwaV7YrUR6EcUWb72LiigYflqxmmapc9F9Ah67QdR R/gwz3YXXSVpb//6X/XSY0Cb67gofoXZcBVy43+DCePEBTvTJP+pS6aDUM4HN5lB1BOh Z0siIMfuInOw1E/9ekzrJ9Px6JRKB3h4qG4JO9Png1yKW27xC7YM+b3WVSH+vjliGIws vW//dicYvytNBoY/RvllLW9xHHqgSwQlFMZvufqLSG3jxXlc4uqbR5eXXDmS67N3r2oT IA8FDoanPxCJJYj2BIaL73t3Fl+T4Jy4wcfxLbZjSUr8bH2bk+J2AsuWUygrctEjzo08 KZwg== X-Gm-Message-State: ALoCoQkAFQ6eLz7W/EvbWxPz3kTO5JuIY0x3Wb4xcEGchKPca/mtuBaB0bWm+BbmXzIeOzSplQFz MIME-Version: 1.0 X-Received: by 10.69.12.36 with SMTP id en4mr23443365pbd.54.1377637151839; Tue, 27 Aug 2013 13:59:11 -0700 (PDT) Received: by 10.66.240.5 with HTTP; Tue, 27 Aug 2013 13:59:11 -0700 (PDT) Date: Tue, 27 Aug 2013 16:59:11 -0400 Message-ID: Subject: Jail with public IP alias From: Alejandro Imass To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 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 20:59:12 -0000 Hi, I have a machine with several public IPs on the same NIC and I bound one of those IPs to a jail created with EzJail. Suppose the scenario is something like this: em0 190.100.100.1 190.100.100.2 190.100.100.3 190.100.100.4 In the jail we are bound only to 190.100.100.4 The default router is correctly set on the jail, etc. But when we ssh out of that jail, or send an email, the receiving end always sees 190.100.100.1 not 190.100.100.4 which is the IP the jail is bound to. Since I can't use traceroute or netstat I can only guess that it's using the base systems routing table for link#1 and that's why it's always going out of the first IP of that NIC. Is there any way to fix this? Besides adding another NIC which we currently can't do. Thanks, -- Alejandro Imass