Jail network access - ping: socket: Operation not permitted - 6.4-RELEASE

Mayu Inc. pomomayu at gmail.com
Mon Apr 3 07:07:08 PDT 2023


After commenting out all related variables, and bringing up the jail
manually from scratch, it was able to access the network.

Apologies for firing off that last email on a whim.

Still researching the inability to initiate a networked jail during
startup. Since the host system gets is IP address via DHCP, maybe something
is conflicting.

Best



On Sun, Apr 2, 2023 at 4:42 PM Mayu Inc. <pomomayu at gmail.com> wrote:

> Unable to get network access from a jail.
>
> DragonflyBSD 6.4-RELEASE
>
> # ping 8.8.8.8
>   ping: socket: Operation not permitted
>
> Listen sockets are configured on the host machine per the manpage
>
>   /etc/sysctl
>     jail.defaults.allow_raw_sockets=1
>     jail.defaults.allow_listen_override=1
>
> Tail is enabled via /etc/rc.conf
>
>   jail_enable="YES"
>   jail_list="myjail"
>   jail_myjail_devfs_enable="YES"
>   jail_myjail_rootdir="/path/to/myjail"
>   jail_myjail_hostname="myjail"
>   jail_myjail_ip="10.0.0.1"
>
> ifconfig was configured as shown:
>   # ifconfig lo0 127.0.0.2 alias
>   # ifconfig re0 10.0.0.1 alias
>
> The host IP is 192.168.10.2
>
> The jail devfs is mounted in /etc/fstab
>
>   devfs     /path/to/myjail/dev     devfs    rw     0     0
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20230403/cd7c5e6c/attachment.htm>


More information about the Users mailing list