How do I set the source address on a multi-homed host?

Jan Grant Jan.Grant at bristol.ac.uk
Wed Feb 16 08:57:44 GMT 2005


On Tue, 15 Feb 2005, Daniela wrote:

> Well, if the OS selects the source IP, can't I just modify the code that 
> selects it? Will this work all the time, or just when the application lets 
> the OS select an address for it?

It should "just work" - that is, the source address for internal packes 
should already _be_ that of the internal interface. Your routing table 
looked good, too, IIRC. What does your NAT / ipfw configuration look 
like?

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287864 or +44 (0)117 9287088 http://ioctl.org/jan/
"NOP" is a trivial implementation of an executable Z subset.


More information about the freebsd-questions mailing list