Date: Mon, 07 Mar 2005 15:58:44 -0500 From: Chuck Swiger <cswiger@mac.com> To: patrick <gibblertron@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: IP aliases and forcing outbound IP Message-ID: <422CC084.5000804@mac.com> In-Reply-To: <b043a48505030711523fb47073@mail.gmail.com> References: <b043a485050303130463eab028@mail.gmail.com> <b043a48505030711523fb47073@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
patrick wrote: > Should I assume by the lack of replies that this just isn't possible > under FreeBSD? Seems like it should be doable. What happens if you do: route add certainhost 10.0.1.111 ...? What happens if you create a jail and run your task from inside there using the jail's IP as the aliased IP? Also, what happens if you bind the service that you care about to that IP rather than to all? It's not clear if this may applicable as you talk about outbound connections, but Apache, SMTP servers and the like can. -- -Chuck >>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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?422CC084.5000804>