How can I make a jail use a particular network interface? I set up a jail (using CLI because current GUI only supports warden and new GUI is buggy):
When I try to make a connection from within the jail it appears to leave through the igb0 interface instead of igb2.
Network config:
igb0 is the correct gateway for regular traffic (everything except the jails), jails should use igb2. What do I need to configure so this jail uses the dedicated network adapter?
FreeNAS-11.1-U4
iocage create --name testjail -r 11.1-RELEASE ip4_addr="igb2|10.0.90.16/24" defaultrouter=10.0.90.10 boot="on" host_hostname=testjail
When I try to make a connection from within the jail it appears to leave through the igb0 interface instead of igb2.
Network config:
freenas:
igb0: 10.0.10.15
igb1: 10.0.50.15
igb2: 10.0.90.15
default gateway: 10.0.10.10
jail “testjail”:
igb2: 10.0.90.16
default gaweway: 10.0.90.10
igb0 is the correct gateway for regular traffic (everything except the jails), jails should use igb2. What do I need to configure so this jail uses the dedicated network adapter?
FreeNAS-11.1-U4