Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Mar 2005 10:07:42 -0800
From:      "Mark A. Garcia" <mag@hamletinc.com>
To:        patrick <gibblertron@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP aliases and forcing outbound IP
Message-ID:  <422F3B6E.2080205@hamletinc.com>
In-Reply-To: <b043a485050303130463eab028@mail.gmail.com>
References:  <b043a485050303130463eab028@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
patrick wrote:

>I have a FreeBSD 4.11 box whose ethernet card has several IP address. 
>
>        inet 10.0.1.254 netmask 0xffffff00 broadcast 10.0.1.255
>        inet 10.0.1.111 netmask 0xffffffff broadcast 10.0.1.111
>
>Is there a way I can cause outbound connections to certain hosts to be
>from 10.0.1.111 instead of the default 10.0.1.254? I used to be able
>to do this fairly easy in Linux because each alias is actually a
>separate ethernet device (eg. eth0:0, eth0:1, etc.), but I haven't
>figured out how to do this in FreeBSD.
>
You can try ipnat and set rules to rewrite your source address when 
attempting to contact specific hosts remotely.

-.mag



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?422F3B6E.2080205>