How to change default source address?

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


Lucian at 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


More information about the freebsd-questions mailing list