I have a server running numerous jails which I set up using Bastille. All of my jails use VNETs for networking and are attached to a shared bridge alongside my network interface
Here you can see that the jail times out when trying to bootstrap the package manager:
It's not a DNS issue, though, because we can resolve the name, however we are unable to talk to the address:
What's weird about this is that the jail does have Internet connectivity. For example, we can ping various IP addresses:
To get a few common things out the way:
bge0
. Ever since updating to FreeBSD 14, my jails are unable to install packages, even though they do have network connectivity.Here you can see that the jail times out when trying to bootstrap the package manager:
Code:
root@nextcloud:~ # pkg-static bootstrap -f
pkg-static: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
pkg(8) is already installed. Forcing reinstallation through pkg(7).
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/Latest/pkg.txz: Operation timed out
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
It's not a DNS issue, though, because we can resolve the name, however we are unable to talk to the address:
Code:
root@nextcloud:~ # host pkg.FreeBSD.org
pkg.FreeBSD.org is an alias for pkgmir.geo.FreeBSD.org.
pkgmir.geo.FreeBSD.org has address 192.158.248.8
pkgmir.geo.FreeBSD.org has IPv6 address 2001:500:6b:d::50:2
pkgmir.geo.FreeBSD.org mail is handled by 0 .
root@nextcloud:~ # ping pkg.FreeBSD.org
PING pkgmir.geo.FreeBSD.org (192.158.248.8): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- pkgmir.geo.FreeBSD.org ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
root@nextcloud:~ # ping 192.158.248.8
PING 192.158.248.8 (192.158.248.8): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- 192.158.248.8 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
What's weird about this is that the jail does have Internet connectivity. For example, we can ping various IP addresses:
Code:
root@nextcloud:~ # ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=55 time=16.701 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=55 time=13.684 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=55 time=10.083 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=55 time=13.356 ms
^C
--- 1.1.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.083/13.456/16.701/2.344 ms
root@nextcloud:~ # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=116 time=13.406 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=9.935 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=13.833 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=19.241 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 9.935/14.104/19.241/3.329 ms
To get a few common things out the way:
- There is no firewall running on the jail
- There is no firewall running on the host
- The host is able to ping the jail and vice-versa
- The host and jail have the same
resolv.conf
Code:
user@home:~ $ ping pkg.FreeBSD.org
PING pkgmir.geo.FreeBSD.org (192.158.248.8): 56 data bytes
64 bytes from 192.158.248.8: icmp_seq=0 ttl=54 time=13.707 ms
64 bytes from 192.158.248.8: icmp_seq=1 ttl=54 time=14.729 ms
64 bytes from 192.158.248.8: icmp_seq=2 ttl=54 time=12.332 ms
64 bytes from 192.158.248.8: icmp_seq=3 ttl=54 time=24.475 ms
^C
--- pkgmir.geo.FreeBSD.org ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 12.332/16.311/24.475/4.790 ms
user@home:~ $ doas bastille console nextcloud
[budget]:
root@nextcloud:~ # ping pkg.FreeBSD.org
PING pkgmir.geo.FreeBSD.org (192.158.248.8): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- pkgmir.geo.FreeBSD.org ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss