IP aliases and forcing outbound IP
Chuck Swiger
cswiger at mac.com
Mon Mar 7 12:58:35 PST 2005
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.
More information about the freebsd-questions
mailing list