On Feb 5, 2008 11:23 AM, Albert Shih <[EMAIL PROTECTED]> wrote: > Hi all > > I've a server to run FreeBSD 7.0 with jail. > > On the server the are two physical interfaces. > > This two interfaces are on two different ip subnet. > > All jail are on the second interface > > How can I make > > all traffic from the server/for the server pass through the first > interface > > all traffic from the jail /for the jail pass through the second > interface. > > In fact : How can make two «default router» on for the server, another for > all jail. > > Regards >
What I did on a test server was use 1 interface for tx/rx data, and a 'dummy' device, a physical, unattached card, and assigned it an IP in /etc/rc.conf. ## LAN ifconfig_ndis0="DHCP" ## Jail LAN ifconfig_bfe0="inet 10.0.0.2 netmask 255.255.255.255" ifconfig_bfe0_alias0="inet 10.0.0.3 netmask 255.255.255.255" I then used pf to route data. I wrote a small tutorial on this, perhaps the concept will help you: http://www.dev-urandom.com/freebsd/jail_conf HTH -- Glen Barber _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[EMAIL PROTECTED]"
