Jail network access - ping: socket: Operation not permitted - 6.4-RELEASE
Mayu Inc.
pomomayu at gmail.com
Sun Apr 2 16:42:47 PDT 2023
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/20230402/134e4e40/attachment.htm>
More information about the Users
mailing list