Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2009 18:09:21 +0300
From:      Nikos Vassiliadis <nvass9573@gmx.com>
To:        "Lucian@lastdot.org" <lucian@lastdot.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to change default source address?
Message-ID:  <4A687D21.5050603@gmx.com>
In-Reply-To: <5a3c8f450907230721y65b6c87as2a38a01efcdb649b@mail.gmail.com>
References:  <5a3c8f450907230721y65b6c87as2a38a01efcdb649b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A687D21.5050603>