Hello everyone,
I recently did a clean install of 10.3-RELEASE on my home server. I set up a jail and was puzzled to find that the jail's connection to the internet would randomly drop and would only be fixed by a restart of the jail from the host. The host system would never lose connection. I could not find anything in /var/log/messages that indicated why the connection dropped, so I left the issue and came back to it a few days later.
Once I started investigating it again, I found that when the connection went down, I would get kicked from ssh(8) connections established from outside the network and when I would try to reconnect, sshd(8) would refuse the connection. The strange thing is that if I try to ssh(8) to the jail from inside the network, while the connection is very slow (it takes about 15 seconds just to get to login(1)), it works. In addition to this, the only system I can ping from the jail is the host.
Here is my host's rc.conf:
and the jail.conf:
Both the host and the jail are running 10.3-RELEASE-p2. The jail was installed with bsdinstall(8). I'm sure that no other device on the network has 192.168.1.11 as its IP. I'm very confused as to why this is happening. Has anyone else experienced this issue before?
I recently did a clean install of 10.3-RELEASE on my home server. I set up a jail and was puzzled to find that the jail's connection to the internet would randomly drop and would only be fixed by a restart of the jail from the host. The host system would never lose connection. I could not find anything in /var/log/messages that indicated why the connection dropped, so I left the issue and came back to it a few days later.
Once I started investigating it again, I found that when the connection went down, I would get kicked from ssh(8) connections established from outside the network and when I would try to reconnect, sshd(8) would refuse the connection. The strange thing is that if I try to ssh(8) to the jail from inside the network, while the connection is very slow (it takes about 15 seconds just to get to login(1)), it works. In addition to this, the only system I can ping from the jail is the host.
Here is my host's rc.conf:
Code:
#Network
hostname="freebsd-server.home.net"
ifconfig_em0="inet 192.168.1.10 netmask 255.255.255.0"
# Clone of em0 for jails
ifconfig_em0_alias0="inet 192.168.1.11 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
Code:
# Global settings
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
test_jail {
host.hostname = "server.home.net";
path = "/usr/local/jails/test_jail";
interface = "em0";
ip4.addr = 192.168.1.11;
# For testing purposes
allow.raw_sockets;
}
Both the host and the jail are running 10.3-RELEASE-p2. The jail was installed with bsdinstall(8). I'm sure that no other device on the network has 192.168.1.11 as its IP. I'm very confused as to why this is happening. Has anyone else experienced this issue before?