From owner-freebsd-questions@FreeBSD.ORG Thu Jul 23 15:24:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5568F106567C for ; Thu, 23 Jul 2009 15:24:03 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2108FC16 for ; Thu, 23 Jul 2009 15:24:02 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yxe11 with SMTP id 11so1709822yxe.3 for ; Thu, 23 Jul 2009 08:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Vi3D1R8XQEaI1zhsZ5Uzn3f+xfeL2JorhQn026EnIyY=; b=fi1t6masCffbwKirVvh4Gay5XfYHCzuok2lJQnrQxdRxCDtYtcT4k8AmGHBsr3tywp PMpl8lc5ys7LkKPb3qGaYBd0RQ1UYOPtB1rndT9WoQmjKiINE5/ippXyJvPQSG3C91RD l4E8Xe/WUhvv1Z9gNcf+JVVyPvqD81l7URmXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ha5AGgy8KXnkryHS32cV+QzzLrgpPxFszr1zhVU/T7WM1GiOZS9owMyUzCouzBnUrF 1CWfH3Sd/O+jRCeJ1C1Mri2o34CaFqF1b2Zl4QPCiyTo5UyjNftNROS2ajkyTgNIR4rt RR20+Sf+NRUM36vzJGAAl20TCFf/ytXMs5rn4= MIME-Version: 1.0 Received: by 10.150.92.18 with SMTP id p18mr3381222ybb.299.1248362642183; Thu, 23 Jul 2009 08:24:02 -0700 (PDT) In-Reply-To: <4A687D21.5050603@gmx.com> References: <5a3c8f450907230721y65b6c87as2a38a01efcdb649b@mail.gmail.com> <4A687D21.5050603@gmx.com> Date: Thu, 23 Jul 2009 10:24:02 -0500 Message-ID: <6201873e0907230824r4c996d60n1095e88dacf79981@mail.gmail.com> From: Adam Vande More To: Nikos Vassiliadis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, "Lucian@lastdot.org" Subject: Re: How to change default source address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 15:24:03 -0000 On Thu, Jul 23, 2009 at 10:09 AM, Nikos Vassiliadis wrote: > Lucian@lastdot.org wrote: > >> Hi guys, >> >> I need to change the default source address on a freebsd server. >> My situation is somehow similar to this >> (http://marc.info/?l=freebsd-questions&m=122535960804508&w=2). >> In linux i can easily do it like: >> >> ip ro replace default via 10.10.10.1 src a.b.c.d (where a.b.c.d is em0 >> alias). >> >> Any ideas? >> > > The most straightforward solution would be to call > your ISP and tell them to change the PPP IP to the > IP you want from your network. For example: > 10.0.0.1/24 on your lan0 > and 10.0.0.1 on the ppp interface. > > Other than that, perhaps jail to fool the system > to use another address or some form of NAT. > > There is no such thing as in the Linux example, as far > as I know. > > Nikos > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > man 8 route -- Adam Vande More