How to change default source address?

Nikos Vassiliadis nvass9573 at
Thu Jul 23 15:09:44 UTC 2009

Lucian at wrote:
> Hi guys,
> I need to change the default source address on a freebsd server.
> My situation is somehow similar to this
> (
> In linux i can easily do it like:
> ip ro replace default via 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: on your lan0
and 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.


More information about the freebsd-questions mailing list