From owner-freebsd-questions@FreeBSD.ORG Thu Jul 23 15:09:44 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 2429C106564A for ; Thu, 23 Jul 2009 15:09:44 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mail.gmx.com (unknown [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 6BBED8FC08 for ; Thu, 23 Jul 2009 15:09:43 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: (qmail invoked by alias); 23 Jul 2009 15:09:41 -0000 Received: from ipa27.81.91.tellas.gr (EHLO [169.254.0.10]) [91.140.81.27] by mail.gmx.com (mp-eu002) with SMTP; 23 Jul 2009 17:09:41 +0200 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1+4TRYKWJq4ofscUAhREms5Nx+qSV05pQdakme5U9 aKjm0i4/PLcK3l Message-ID: <4A687D21.5050603@gmx.com> Date: Thu, 23 Jul 2009 18:09:21 +0300 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: "Lucian@lastdot.org" References: <5a3c8f450907230721y65b6c87as2a38a01efcdb649b@mail.gmail.com> In-Reply-To: <5a3c8f450907230721y65b6c87as2a38a01efcdb649b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 Cc: freebsd-questions@freebsd.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:09:44 -0000 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