On Fri, Jul 18, 2008 at 1:46 AM, Wojciech Puchar
>> Just wondering if a box has 2 Ethernet cards with each card going to a
>> different gateway/network, is it possible to stick a jail on the machine
>> listening on one network interface and routing data out one
>> card/network/gatway while the rest of the system uses the other port and
>> gateway/network.
> yes - no problem

For most values of "yes".  For others, the answer is "It depends."

Yes, you can configure daemons running on the host to bind to one
interface, and configure daemons running on the jail to bind to a
different interface.   However, host <-> jail communications occur over
loopback and "routing data" between the two, if that's the question being
asked, has its limitations.

I brought up this problem just recently.


To sum up, if jail host running at connects to a jail running at, the traffic will occur over lo0, and BOTH endpoints of that
connection will use the jail ( address.  To my mind, that can be

You can modify the routing table so that a host -> jail connection exits
an actual interface (and uses that interface's IP address).  However, this
offers limited usefulness as you can't do the same on the jail side
(there's only one routing table to speak of), and return traffic won't be
seen on that interface.

The above applies irrespective of whether the jail host and the jail are
on the same or different network, or on the same or different NICs.
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to