I've created bridge and epair interface:
Changed devfs_rules to:
Started the jail with current configuration:
But for some reason, .. the network can't go outside the jail why is this?
edit:
FreeBSD 10.1-RELEASE-p2 #3 r275861
Code:
ifconfig bridge create
ifconfig epair create
ifconfig bridge0 addm re0 addm epair0a
Changed devfs_rules to:
Code:
# Devices usually found in a jail.
#
[devfsrules_jail=4]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path zfs unhide
add path 'bpf*' unhide
Started the jail with current configuration:
Code:
path = "/usr/jail/${name}";
host.hostname = "${name}.domain.net";
exec.consolelog = "/var/log/jail_${name}_console.log";
exec.start = "sleep 2";
allow.mount;
mount.devfs;
test {
vnet;
vnet.interface = "epair0b";
devfs_ruleset = "4";
exec.clean;
exec.system_user = "root";
exec.jail_user = "root";
exec.start += "/bin/sh /etc/rc";
exec.poststart = "/sbin/ifconfig lo0 up 127.0.0.1/8";
exec.stop = "/bin/sh /etc/rc.shutdown";
persist;
}
But for some reason, .. the network can't go outside the jail why is this?
edit:
FreeBSD 10.1-RELEASE-p2 #3 r275861