Yesterday, I saw that FreeBSD 14.0-RELEASE was available for download and I've installed it on my desktop machine, I haven't seen any issues until I built a jail on it that I'm going to use for nginx. So, I've built a thick jail using vnet networking. I followed the handbook section precisely at this point: creating-vnet-jail. It works perfectly for a few minutes. I'm able to while in the jail, to ssh to any host on my subnet and from any host on my subnet, I can ssh into the jail. After a few minutes though, I can no-longer ssh into the jail as I get connection refused and while in the jail, I'm no longer able to ssh out to anything including the jail host. pings to and from the jail fail also. I've looked into the logs on the host and the jail console log and I don't see anything that would cause this behavior. When I restart the jail, it works for awhile but then the networking is kaput again after a few minutes. I don't have any ideas. Was wondering if anyone has seen this sort of behavior?
relevant portion of my rc.conf on the jail host:
my jail.conf:
relevant portion of my rc.conf on the jail host:
Code:
defaultrouter="192.168.1.1"
cloned_interfaces="bridge0"
ifconfig_bridge0="inet 192.168.1.2/24 addm igb0 up"
ifconfig_igb0="up"
my jail.conf:
Code:
nginx {
# startup/logging
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
# permissions
allow.raw_sockets;
exec.clean;
mount.devfs;
devfs_ruleset = 5;
# hostname/path
host.hostname = "${name}";
path = "/ztank/jails/containers/${name}";
# vnet/vimage
vnet;
vnet.interface = "${epair}b";
# network
$id = "4";
$ip = "192.168.1.${id}/24";
$gateway = "192.168.1.1";
$bridge = "bridge0";
$epair = "epair${id}";
# ADD TO bridge interface
exec.prestart += "ifconfig ${epair} create up";
exec.prestart += "ifconfig ${epair}a up descr jail:${name}";
exec.prestart += "ifconfig ${bridge} addm ${epair}a up";
exec.start += "ifconfig ${epair}b ${ip} up";
exec.start += "route add default ${gateway}";
exec.poststop = "ifconfig ${bridge} deletem ${epair}a";
exec.poststop += "ifconfig ${epair}a destroy";
}