Iasen Kostov wrote:
> > Here is an configuration example:
> >
> > vmbsd# routed
> > vmbsd# ifconfig
> > lnc0: flags=8843 mtu 1500
> > inet 192.168.201.143 netmask 0xff00 broadcast
> > 192.168.201.255
> > ether 00:50:56:ac:c9:7a
> > lnc1: flags=8843 mtu 1500
> > inet 19
> Here is an configuration example:
>
> vmbsd# routed
> vmbsd# ifconfig
> lnc0: flags=8843 mtu 1500
> inet 192.168.201.143 netmask 0xff00 broadcast
> 192.168.201.255
> ether 00:50:56:ac:c9:7a
> lnc1: flags=8843 mtu 1500
> inet 192.168.202.143 netmask 0xff00 broadc
Bellow is a patch that enables all outgoing sessions to always use the
same source IP address by default, no matter what outbound interface is
used. If on a multi-homed host the source IP address always originates
from an "always-up" internal virtual interface, than the established TCP
sessions wo