Hi,
I can't install a package in a jail with pkg, it blocks on the installation message.
My jail's configuration file: /etc/jail.conf
The tests I performed :
I can't install a package in a jail with pkg, it blocks on the installation message.
Code:
# jexec test
# pkg install nano
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+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
My jail's configuration file: /etc/jail.conf
Code:
exec.clean;
mount.devfs;
allow.noset_hostname;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
allow.raw_sockets;
allow.socket_af;
interface = "em0";
test {
path = "/var/jails/test";
host.hostname = "test.freebsd";
ip4.addr = 192.168.0.4;
}
The tests I performed :
Code:
# netstat -r
Routing tables
Internet:
Destination Gateway Flags Netif Expire
vfreebsd.home link#2 UH lo0
# ping www.google.com
PING www.google.com (142.250.201.164): 56 data bytes
64 bytes from 142.250.201.164: icmp_seq=0 ttl=112 time=6.412 ms
# route show default
route: route has not been found: No error: 0
# cat /etc/resolv.conf
nameserver 192.168.0.1
# service routing restart
delete host 127.0.0.1: gateway lo0 fib 0: Operation not permitted
delete host ::1: gateway lo0 fib 0: Operation not permitted
delete net fe80::: gateway ::1 fib 0: Operation not permitted
delete net ff02::: gateway ::1 fib 0: Operation not permitted
delete net ::ffff:0.0.0.0: gateway ::1 fib 0: Operation not permitted
delete net ::0.0.0.0: gateway ::1 fib 0: Operation not permitted
ifconfig: socket(family 28,SOCK_DGRAM): Protocol not supported
add host 127.0.0.1: gateway lo0 fib 0: Operation not permitted
sysctl: net.inet.icmp.bmcastecho=0: Operation not permitted
sysctl: net.inet.icmp.drop_redirect=0: Operation not permitted
sysctl: net.inet.icmp.log_redirect=0: Operation not permitted
sysctl: net.inet.ip.forwarding=0: Operation not permitted
sysctl: net.inet.ip.sourceroute=0: Operation not permitted
sysctl: net.inet.ip.accept_sourceroute=0: Operation not permitted
sysctl: net.link.ether.inet.proxyall=0: Operation not permitted
add host ::1: gateway lo0 fib 0: Operation not permitted
add net fe80::: gateway ::1 fib 0: Operation not permitted
add net ff02::: gateway ::1 fib 0: Operation not permitted
add net ::ffff:0.0.0.0: gateway ::1 fib 0: Operation not permitted
add net ::0.0.0.0: gateway ::1 fib 0: Operation not permitted
sysctl: net.inet6.ip6.forwarding=0: Operation not permitted